They either used arrays, that I don't want or they had hard to configure (or bad) weapon system.
They also didn't let me add more than just weapons very easily.
Hello!
I'm in the lookout for a function that receives the following parameters:
(p, angle, distance)
It will knock back the player
pto the distance
distanceusing the angle
angle.
That's all I need, I can (probably) make the rest of the calculations alone.
Note: It shouldn't let a player enter somewhere he can't get out of.
Note: It should be efficient (no arrays please).
Note: Distance should be in pixels, of course.
Thank you!