This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#26 2011-11-20 11:46:05

midnightleopard
Scratcher
Registered: 2007-09-13
Posts: 1000+

Re: ◄Hidden Feature► Cloning Sprites in Flash Player

how did you figure that out? Is the flash source posted?


http://pwp.wizards.com/5103673563/Scorecards/Landscape.png

Offline

 

#27 2011-11-20 11:56:51

roijac
Scratcher
Registered: 2010-01-19
Posts: 1000+

Re: ◄Hidden Feature► Cloning Sprites in Flash Player

nope, but there are decompilers to swf files, so it isn't that hard

Offline

 

#28 2011-11-20 12:10:06

midnightleopard
Scratcher
Registered: 2007-09-13
Posts: 1000+

Re: ◄Hidden Feature► Cloning Sprites in Flash Player

take a screen shot of it and use a text-scanner maybe?
MathWizz, JS and AS are nearly identical. Think of the progress of our viewer!


http://pwp.wizards.com/5103673563/Scorecards/Landscape.png

Offline

 

#29 2011-12-15 19:39:26

flashgocrazy
Scratcher
Registered: 2011-01-12
Posts: 500+

Re: ◄Hidden Feature► Cloning Sprites in Flash Player

bump


◕‿◕

Offline

 

#30 2011-12-16 18:01:24

rubiks_cube_guy238
Scratcher
Registered: 2009-07-02
Posts: 100+

Re: ◄Hidden Feature► Cloning Sprites in Flash Player

MathWizz wrote:

rubiks_cube_guy238 wrote:

How did you find this? Did you decompile the Flash player? Can you post a link to the decompiled source?

Sadly, no.  sad  I have a trial version of an SWF decompiler and cannot export anything.

Where did you get it? I searched for it, but I don't know which ones are viruses and which aren't.


The glass is never half full nor half empty; it is twice as large as it needs to be.

Offline

 

#31 2011-12-16 18:02:04

MathWizz
Scratcher
Registered: 2009-08-31
Posts: 1000+

Re: ◄Hidden Feature► Cloning Sprites in Flash Player

rubiks_cube_guy238 wrote:

MathWizz wrote:

rubiks_cube_guy238 wrote:

How did you find this? Did you decompile the Flash player? Can you post a link to the decompiled source?

Sadly, no.  sad  I have a trial version of an SWF decompiler and cannot export anything.

Where did you get it? I searched for it, but I don't know which ones are viruses and which aren't.

http://www.sothink.com/


http://block.site90.net/scratch.mit/text.php?size=30&text=%20A%20signature!&color=333333

Offline

 

#32 2011-12-16 18:15:39

rubiks_cube_guy238
Scratcher
Registered: 2009-07-02
Posts: 100+

Re: ◄Hidden Feature► Cloning Sprites in Flash Player

Thanks!  smile


The glass is never half full nor half empty; it is twice as large as it needs to be.

Offline

 

#33 2011-12-17 07:48:24

scratcher7_13
Scratcher
Registered: 2011-02-09
Posts: 1000+

Re: ◄Hidden Feature► Cloning Sprites in Flash Player

This is epic. It means that the flash player has more Scratch 2.0 to it than previously thought.


♫ 90% of teens can't do math. If you are one of the 40% of teens who can, copy and paste this into your signature. ♫♪
http://dl.dropbox.com/u/6273449/BlockLibraryTitle.pnghttp://i.imgur.com/mr9Hf.gif

Offline

 

#34 2011-12-19 15:48:36

Hitechcomputergeek
Scratcher
Registered: 2010-11-21
Posts: 47

Re: ◄Hidden Feature► Cloning Sprites in Flash Player

The Flash Player used to let you shift-click a sprite and get a pop-up menu that has menu options to clone or delete a sprite, but the Scratch Team unfortunately removed that.


http://scratch.mit.edu/static/projects/Hitechcomputergeek/1687140_sm.png

Offline

 

#35 2011-12-19 15:49:13

MathWizz
Scratcher
Registered: 2009-08-31
Posts: 1000+

Re: ◄Hidden Feature► Cloning Sprites in Flash Player

Hitechcomputergeek wrote:

The Flash Player used to let you shift-click a sprite and get a pop-up menu that has menu options to clone or delete a sprite, but the Scratch Team unfortunately removed that.

yikes  I never knew that...


http://block.site90.net/scratch.mit/text.php?size=30&text=%20A%20signature!&color=333333

Offline

 

#36 2011-12-19 18:17:02

ImagineIt
Scratcher
Registered: 2011-02-28
Posts: 1000+

Re: ◄Hidden Feature► Cloning Sprites in Flash Player

Clone isn't working for me.

Last edited by ImagineIt (2011-12-19 21:21:58)

Offline

 

#37 2011-12-19 19:34:16

rabbit1131
Scratcher
Registered: 2009-10-16
Posts: 1000+

Re: ◄Hidden Feature► Cloning Sprites in Flash Player

ImagineIt wrote:

clone isn't working for me.

Did you edit your scratch.image file?


The Intergalactic Adventures of Revesilia! I hope you will partake in this gigantic undertaking, to build the sequel to the hit map The Adventures of Revesilia! The Intergalactic Adventures of Revesilia Map Builders Application thread! http://internetometer.com/image/35004.png

Offline

 

#38 2011-12-19 21:21:48

ImagineIt
Scratcher
Registered: 2011-02-28
Posts: 1000+

Re: ◄Hidden Feature► Cloning Sprites in Flash Player

rabbit1131 wrote:

ImagineIt wrote:

clone isn't working for me.

Did you edit your scratch.image file?

Yes.

Last edited by ImagineIt (2011-12-20 15:46:40)

Offline

 

#39 2011-12-23 18:23:48

ProgramCAT
Scratcher
Registered: 2011-12-13
Posts: 500+

Re: ◄Hidden Feature► Cloning Sprites in Flash Player

GP1 wrote:

This is really nice! Finally, a custom block that will work online!

Its not working...?
Could anyone send me the IMAGE file they use (with the cloning?) (t_temp34@yahoo.com)?
Somehow it doesn't work online, tested it about three times in Flash.
Please  smile


Programming is an art...
Goodbye, Scratch. I am leaving because of the exams coming up at our school, though I'll check the forums once or twice a week.

Offline

 

#40 2011-12-28 20:57:44

flashgocrazy
Scratcher
Registered: 2011-01-12
Posts: 500+

Re: ◄Hidden Feature► Cloning Sprites in Flash Player

MathWizz wrote:

I just discovered that there are two hidden blocks in the flash player. If you make a block with the selector 'createClone' and run it in the flash player, it will create a clone of that sprite! The selector 'deleteClone' deletes the sprite it runs in. I made an example here.

To make the cloning blocks in Scratch, you need to add two blocks called 'clone me' and 'delete me' to the sprite blockspecs. Here is a tutorial on installing block.

http://img845.imageshack.us/img845/6443/cloneme.gif

Code:

Blockspec:
('clone me' #- #createClone)

Code:
createClone
    | t2 t3 |
    t2 _ self ownerThatIsA: ScratchFrameMorph.
    t2 ifNil: [t2 _ (self ownerThatIsA: OffscreenWorldMorph) frame].
    t2 ifNil: [^ self].
    t3 _ self fullCopy.
    t3 objName: objName , ' clone'.
    t3 isClone: true.
    t3 blocksBin
        allMorphsDo: [:t4 | (t4 isKindOf: BlockMorph)
                ifTrue: [t4 stop]].
    t2 workPane addMorph: t3

http://img209.imageshack.us/img209/6596/deleteme.gif

Code:

Blockspec:
('delete me' #- #deleteClone) 

Code:
deleteClone
    self undoableDeleteSprite

There is also a hat block that is called when a clone is created and it's selector is 'whenCloned' and I am to lazy to create code for it ATM. Feel free to donate some code if you want.  tongue

how do you detect if a sprite is a clone or not?


◕‿◕

Offline

 

#41 2011-12-29 02:24:00

wolvesstar97
Scratcher
Registered: 2011-08-31
Posts: 1000+

Re: ◄Hidden Feature► Cloning Sprites in Flash Player

LS97 wrote:

MathWizz wrote:

LS97 wrote:

It's said that we can only use this until the team finds out.
I wish they'd keep it...  sad

...?

I'm 80% sure they will remove the feature/disable it.

Anyhow, how do you explain this?

:'(
*cries*


https://dl.dropbox.com/u/33551365/psyko.png

Offline

 

#42 2012-01-11 00:17:08

ProgramCAT
Scratcher
Registered: 2011-12-13
Posts: 500+

Re: ◄Hidden Feature► Cloning Sprites in Flash Player

ProgramCAT wrote:

GP1 wrote:

This is really nice! Finally, a custom block that will work online!

Its not working...?
Could anyone send me the IMAGE file they use (with the cloning?) (t_temp34@yahoo.com)?
Somehow it doesn't work online, tested it about three times in Flash.
Please  smile

PLEASE????


Programming is an art...
Goodbye, Scratch. I am leaving because of the exams coming up at our school, though I'll check the forums once or twice a week.

Offline

 

#43 2012-01-12 11:31:00

Servine
Scratcher
Registered: 2011-03-19
Posts: 1000+

Re: ◄Hidden Feature► Cloning Sprites in Flash Player

How do we control the clones?


http://bluetetrarpg.x10.mx/usercard/?name=Servine

Offline

 

#44 2012-01-12 18:59:56

zippynk
Scratcher
Registered: 2011-07-23
Posts: 500+

Re: ◄Hidden Feature► Cloning Sprites in Flash Player

Servine wrote:

How do we control the clones?


https://dl.dropbox.com/u/60598636/trifocal_interlude_soundcloud_button.png

Offline

 

#45 2012-01-12 19:19:45

MathWizz
Scratcher
Registered: 2009-08-31
Posts: 1000+

Re: ◄Hidden Feature► Cloning Sprites in Flash Player

zippynk wrote:

Servine wrote:

How do we control the clones?

http://scratch.mit.edu/projects/MathWizz/2135031


http://block.site90.net/scratch.mit/text.php?size=30&text=%20A%20signature!&color=333333

Offline

 

#46 2012-07-11 16:18:01

SFollis
Scratcher
Registered: 2012-03-04
Posts: 76

Re: ◄Hidden Feature► Cloning Sprites in Flash Player

how do i get the blocks?


http://blocks.scratchr.org/API.php?user=SFollis&action=projects&type=newest&return=image&num=1 is a picture of my project http://blocks.scratchr.org/API.php?user=SFollis&action=projects&type=newest&return=text&num=1 which has http://blocks.scratchr.org/API.php?user=SFollis&action=projects&type=newest&return=views&num=1 views

Offline

 

#47 2012-07-12 10:49:04

Servine
Scratcher
Registered: 2011-03-19
Posts: 1000+

Re: ◄Hidden Feature► Cloning Sprites in Flash Player

1s1s0c

Lol. 1 Sprite, 1 Script 0 Clones XD


http://bluetetrarpg.x10.mx/usercard/?name=Servine

Offline

 

#48 2012-07-16 09:15:37

Mokat
Scratcher
Registered: 2011-12-08
Posts: 1000+

Re: ◄Hidden Feature► Cloning Sprites in Flash Player

Whoa, this has been suggested a lot! If I see another suggestion for it i'll link here!


http://www.eggcave.com/egg/977371.pnghttp://www.eggcave.com/egg/977376.pnghttp://www.eggcave.com/egg/1005291.pnghttp://www.eggcave.com/egg/996745.png

Offline

 

#49 2012-07-20 18:32:06

Jonathan50
Scratcher
Registered: 2011-07-06
Posts: 100+

Re: ◄Hidden Feature► Cloning Sprites in Flash Player

I think it's because of Scratch 2.0. See what happens with

when I receive [Scratch-CloneEvent v ]
That's just a guess.


Jonathan50
big_smile  http://scratch.mit.edu/img/pages/credits/cat-face-bullet.gif http://blocks.scratchr.org/API.php?user=Jonathan50&action=onlineStatus&type=square         http://blocks.scratchr.org/API.php?user=Jonathan50&action=projects&type=newest&return=image&num=1

Offline

 

#50 2012-07-20 19:48:16

MathWizz
Scratcher
Registered: 2009-08-31
Posts: 1000+

Re: ◄Hidden Feature► Cloning Sprites in Flash Player

Jonathan50 wrote:

I think it's because of Scratch 2.0. See what happens with

when I receive [Scratch-CloneEvent v ]
That's just a guess.

I don't think so... The scratch events change in Scratch 2.0...


http://block.site90.net/scratch.mit/text.php?size=30&text=%20A%20signature!&color=333333

Offline

 

Board footer