Hi all, this is my first post.
How do I program if touching a costume of a sprite?
Also, how can I make sprites move towards another sprite?
Thanks if anyone can answer :-)
Offline
CainInACan wrote:
Hi all, this is my first post.
How do I program if touching a costume of a sprite?
Use this if you want a sprite to follow another.
Change the two sprites to change which sprite you want it to react to and change the # in the = block to change the costume.
Also, how can I make sprites move towards another sprite?
Use the first scipt here for glitchy movement and the one below it for less glitchy. To change the speed change the # in the move block.
Hope this helps you!
Scratch On!!!
Last edited by SSBBM (2011-05-14 14:24:28)
Offline
SSBBM wrote:
CainInACan wrote:
Hi all, this is my first post.
How do I program if touching a costume of a sprite?Use this if you want a sprite to follow another.
http://imageshack.us/m/862/4007/touchin … sprite.gif
Change the two sprites to change which sprite you want it to react to and change the # in the = block to change the costume.Also, how can I make sprites move towards another sprite?
http://imageshack.us/m/8/2239/followsprite.gif
Use the first scipt here for glitchy movement and the one below it for less glitchy. To change the speed change the # in the move block.
Hope this helps you!
Scratch On!!!
DARN! You beat me to it! XD Mine were almost the same...
Offline
Thanks everyone!!
Offline
Please help! I tried this and it didn't work:
When *flag* clicked
if touching sprite10 and costume # of sprite10=2
switch to costume explode
play sound correct
wait 0.1 secs
switch to costume fries
Any help would be awesome
Offline
CainInACan wrote:
Please help! I tried this and it didn't work:
When *flag* clicked
if touching sprite10 and costume # of sprite10=2
switch to costume explode
play sound correct
wait 0.1 secs
switch to costume fries
Any help would be awesome![]()
What exactly are you trying to do? Could you post a project?
Offline
CainInACan wrote:
Hi all, this is my first post.
How do I program if touching a costume of a sprite?
Also, how can I make sprites move towards another sprite?
Thanks if anyone can answer :-)
you have to do forever if, not if.
Offline
SSBBM wrote:
CainInACan wrote:
Please help! I tried this and it didn't work:
When *flag* clicked
if touching sprite10 and costume # of sprite10=2
switch to costume explode
play sound correct
wait 0.1 secs
switch to costume fries
Any help would be awesome![]()
What exactly are you trying to do? Could you post a project?
I'm trying to make it so that when one sprite touches the 2nd costume of another sprite, it switches to another costume and plays a sound, for 0.1 seconds, then switches back to the original costume.
Offline
Its ok, ive figured it out. thanks for the help and support everyone
Offline