I have my character pinned to a rotating platform and has bullet disabled until key is pressed. On key press/tap, how do I set the angle of motion of my character to go away from the platform? Thank you!
I unpinned and enabled bullet on tap and set angle of motion to angle(platform.x,platform.y,character.x,character.y) but its still not working correctly.
Trying to move like barrels in donkey kong?
So, because an object lying flat is technically at 0 degrees, when you want your character to fly off perpendicularly, you actually want to travel at -90 degrees, or 270. So rather than set the angle of motion to that angle, you want [RotatingObject.Angle-90]
Here's a .capx that does, I think, what you want.
-90 = 270... gotcha. Thanks!
Develop games in your browser. Powerful, performant & highly capable.
just like up down left and right
Right = 0
Left = 180
up = 270
down - 90
down is simple "90" not "-90"
sorry typo should be Down = 90