problem with movement
tblockpillar
Member Posts: 6
as you can see in the video i can only move when i havnt jumped. thats how i set it up because i dont want the player being able to walk in the air. but i wanted to somehow if possible make a seperate rule and seperate attributes to make it so when you've jumped and your in the air, the attributes will triger allowing you to move in the air onto the other platforms.. iv also made it so that you can only jump if on ground this way well yeh.
but is it possible for me to make the seperate rule and attributes? i gave it ago but it didnt work any help? thanks!
Comments
How are you going to allow the player to reach a platform? Will the player run and with sideways momentum jump diagonally onto a platform? Will the player run under a platform and then jump straight up through and onto the platform? Will the platform or the scene be moving?
You might try this:
When actor [player] collides with actor [platform]
.....[optional: change player's x and y positions to move onto the platform so it looks correct]
.....[rules for moving left and right]
Otherwise
.....[rules for gravity/falling]
You'd have to reset whatever attributes you're using to allow jumping (e.g. game.CanJump to true) once the player collides with a platform.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
what I was meant to say was: i want to be able to have a normal jumping system. like every other Plat-former game.
(I know how to make jump through platforms)
but that's basically what i want, normal plat-former controls.