Hey hey,
I am working on a platform game where the player collects coins/fruits etc. Upon touching the fruit I have enabled a bullet behavior on a set angle. This gives me a crude version of the effect I want.
What I want to know is how would I set the bullet's angle of motion towards another object? I have tried setting its angle to the windowwidth/windowheight etc but that doesn't work after I start moving away from the initial start area, for obvious reasons.
Basically, when an item is collected, I want it to snap to the top left hand corner and make the UI number go up by +1. Im sure most people here have seen this effect.
Any help is greatly appreciated.
Thank You,
Stephen