Pages: 1
Topic closed
How do I get a sprite when it touches a certain colour to bounce off it??
Offline
This is a slightly complex but extremely accurate method of doing it:
Make the ball have a separate costume with a certain color on it's left and right and a certain color on it's top and bottom. Make everything else black or some other color.
Like this:
(Note: Make the size of this costume the same as the size of your ball)
Now put a script like this in your movement script for the ball:
(Note: This must be put into your movement script, or at least into a forever loop).
(Second note: The 'switch to costume "normal"' block switches the costume to the ball's regular costume, so it looks normal. Make "normal" the name of the ball's regular costume)
Last edited by Kileymeister (2011-03-31 19:23:53)
Offline
Topic closed
Pages: 1