Pages: 1
Topic closed
Hello, I'm new to scratch.
Is there a function here to create an object via the script?
Sort of like in Java:
Robot a = new Robot
whereas a would have the same scripts and costumes as the original object.
Offline
Do you mean duplicating or cloning? Currently scratch does not support cloning. However, Scratch 2.0 will most likely. You can download modifications of Scratch such as Panther, BYOB, or Slash. They all support cloning. However, in BYOB you must make a new block called clone. Make it a stack block. Go under operators then make the script:
if <(clone) = (0)> be sure to put nothing here! endExcept the "clone" block will not be orange, it will be green. Then you have your BYOB cloning block.
Offline
Yes it was about cloning.
I wanted to use vanilla scratch.
I was making an RTS game, I pretty much have the diagrams and charts ready to actually start making it but the question came "How do I create new buildings/units? That's essential to the game"
Otherwise I would have created an isometric tactics game.
Well I'm going with that... for now.
Offline
Could you link those modifications?
Offline
byob.berkeley.edu is for BYOB
patherprogramming.weebly.com is for Panther
I don't recommend Slash at all, and besides I don't know the link.
Offline
LS97 wrote:
byob.berkeley.edu is for BYOB
patherprogramming.weebly.com is for Panther
I don't recommend Slash at all, and besides I don't know the link.
![]()
Slash is good (it is based on BYOB and has tons of new blocks) but it's so tacky! Your mod is REALLY good when it comes to graphics and such. I have it, but I'm not completely sure if it supports cloning .
Offline
Topic closed
Pages: 1