I am making a scratch game for a high school project. I am making a game consisting of various sprites. The game is sort of like playing pool with animals but without a turn structure. I want to make it so that whenever an animal is selected and a key is pressed, it will moves at a variable speed and stop whenever it touches another sprite. I have a very rudimentary understanding of variables, but is there any way for me to configure a variable that includes all sprites found in the game? This is what I have for a given sprite, but it does not stop when it touches another sprite. All help would be appreciated.
Offline
Okay, if the animals all have a black outline of their sprite, [blocks]
<when I receive[ Move ]
<repeat until><touching color[ black ]
<move( variable )steps>
<end>
[/blocks]
If you are still confused, ask more questions or post the project of what you have so far.
Offline