Hi, I am new to Scratch. I am doing a game where a sprite has to move according to the co-ordinates given by the player. I want the cat to carry a hockey stick - another sprite - but how can I get the second sprite to move along with the first Sprite? Thanks for any info!
Offline
just import the hockey stick on the scratch cat, by copying the first sprite, then click on paint, then import, and find the hockey stick. now move it to where you want the scratch cat to hold it.
Offline
Blayer98 wrote:
just import the hockey stick on the scratch cat, by copying the first sprite, then click on paint, then import, and find the hockey stick. now move it to where you want the scratch cat to hold it.
As the hockey stick is a different script, this won't work. Instead, use this:
forever set x to (([x position v] of [scratch cat v]) + (a)) set y to (([y position v] of [scratch cat v]) + (b))^^ for the hockey stick sprite, and change the values of a and b until it looks correct.
Last edited by Prestige (2012-09-27 12:41:52)
Offline
Thank you folks for the help!!
Offline
You could also do this:
forever go to [cat v]And change the cat's costume center until it works. The costume center is where a sprite goes when it is told to go to that sprite. You can change it using 'set costume center [ + ]' in the paint editor.
Offline