berberberber wrote:
No, I want it to bounce off of any angle...
Offline
coolhogs wrote:
I need a script that allows a sprite to jump off angles, as well as straight lines.
Help!
By jump off angle, do you mean jump straight up from a slope, or do you mean jump perpendicular to the slope?
Offline
Well you could have some sort of sensor that rotates around until it detects the correct slope. Then you could easily retrieve the angle, and then have the player jump in that direction.
Offline
Wes64 wrote:
Well you could have some sort of sensor that rotates around until it detects the correct slope. Then you could easily retrieve the angle, and then have the player jump in that direction.
Um...
What sensor should I use?
Circle sensor, square sensor, etc.?
Offline
Okay. So you have a detector with red on one end and blue on the other end. It rotates until around you untilboth of them are touching the color of your ground. Then, it stores the direction in a variable, and when you jump, you go in the opposite of that variable.
Offline