Jumping and moving?

so i am making a game where u can move left to right. i want to add a jump button so i made and attribute that when jump=1 change actor position to (certain height)
the problem is when the actor is in the middle of jumping i dont want to be able to move left to right. i want to actor to of landed before u can move left to right.
anyone got any ideas?

Comments

  • zoopezoope Member Posts: 210
    Set a boolean attribute and enable it when you jump.
    Reset it when you land.

    In your left/right movement logic check for this flag, if set do not move.
    Hope that helps

  • ang0005ang0005 Member Posts: 15
    yeh i did something similar i did a int attribute when actor is pressed change int attribute to 1 and when landed change it to 0.
    but while in mid air i am still able to move left to right.
    i made an rule int attribute must = 0 and touch must be pressed on the move buttons but it still moves left to right :(
    i cant see why it does this the coding to me looks fine
  • zoopezoope Member Posts: 210
    edited July 2013
    Can you elaborate a bit more on your exact rules, maybe post a screenshot of the rules or something.
  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772
    There are a couple different movement and jumping tutorials at my website, linked in my signature below if you're interested in checking them out.
  • BoomshackBarryBoomshackBarry Member Posts: 712
    I second @Jamie_c 's tutorials, they're really well put together :)
  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922
    Ah I conjured this up just for you.

  • saw your table video

Sign In or Register to comment.