Hi, I need a script that will allow me to jmp on uneven platforms. plz help.
Eg.
Even:
______________________________
______________________________
Uneven:
_ - _ ___________ _______ __
_ ____ _________ ___________________
Offline
So, you mean falling is dependent on touching the platform, not the y position? You can do that pretty easily by telling the y position to decrease unless touching a certain color. For example, if the platforms were green:
That's the basic premise!
Offline
You could even combine "y position" and "color sensing" to make the sprites stay on top of platforms instead of stalling inside. Make a seperate block that continually checks the player's sprite against visible sprites to see which is closest. If touching color set y to closest sprites y. Then you could have platforms that move any which way and sprites always on top. Maybe, I dunno, just thinking out loud >=P
Offline
Locomule wrote:
You could even combine "y position" and "color sensing" to make the sprites stay on top of platforms instead of stalling inside. Make a seperate block that continually checks the player's sprite against visible sprites to see which is closest. If touching color set y to closest sprites y. Then you could have platforms that move any which way and sprites always on top. Maybe, I dunno, just thinking out loud >=P
Well, at that point, you might as well just make a sensor. I was just trying to give a solution that is easy to understand for a beginner.
Offline
meew0 wrote:
Just search for "Perfect Platformer Engine" in the search box.
Or click here - it's faster.
Offline