Pages: 1
Hello fellow scratchers, I ask for help to fix a script
I need help to make an algorithm which will make a sprite turn the closest way away from the edge so if the sprite was near the top edge and its was going diagonal at the angle of this / then it would turn right and vice versa. This needs to happen to all of the side of the edge.
The current code is in this project - http://www.scratch.mit.edu/projects/arthurz/2700286
I have labelled the neccersary code and is explained. its in the ant sprite
Thanks for anyhelp )))
Offline
I want the turning motion to be smooth but that has given me a idea if I was to calculate the 'bounced angle' then I can make it turn towards that! This thread is solved
Offline
Pages: 1