problem with movement


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

  • tblockpillartblockpillar Member Posts: 6
    bump....
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    The lack of sentence structure and spelling mistakes causes me to want to ignore your question (I'm a teacher, though), but I'll give it a shot. It's hard enough to understand a question about game design from someone else when their writing is clear.

    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

  • sparkaniasparkania Member, PRO Posts: 300
    I'm lost.. I too.. do not understand the question.
  • beefy_clyrobeefy_clyro Member Posts: 5,394
    The lack of sentence structure and spelling mistakes causes me to want to ignore your question
    Agreed ... Ciao
  • tblockpillartblockpillar Member Posts: 6
    The lack of sentence structure and spelling mistakes causes me to want to ignore your question (I'm a teacher, though), but I'll give it a shot. It's hard enough to understand a question about game design from someone else when their writing is clear.

    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.
    I'm terribly sorry for my bad English.
    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.

Sign In or Register to comment.