So we have set vector X and set vector Y, which are kinda Apply force, but for Platform behavior. Speaking of physics, The Physics objects have a command called 'apply force at angle'.Is there any way to do that in Platform? I just have no idea how to convert an angle into X's and Y's.
You have the speed and angle, that is the vector X and Y:
VectorX = speed*(cos(angle))
VectorY = speed*(sin(angle))
Develop games in your browser. Powerful, performant & highly capable.
Huh? Too much maths.
Should have been more clear. The Hero you control have the angle of 0( always), and when he collides with enemies from Super Metroid he gets sent to the opposite direction of where the enemy is. I don't alter the angle of the Hero sprite in any way. So, must I alter the Hero's angle for a fraction of a second, use vector X and vector Y stuff and then set his angle to 0?