Navigation

    Fuze Arena Logo
    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Users
    • Groups
    • Help
    • Discord

    buttons presses and combos

    Beginners
    2
    3
    154
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • waldron
      waldron F last edited by

      (for skater kid game)
      one thing i'm learning doing prince of persia is the lifelike
      animation, so for my skater kid game i am looking to add a slight delay on the left and right movement

      Also i can't wrap my head around the if statements to do combos (like tonyhawks)
      something like

      if c.a then state = jump then 
       if c.y and c.right state = kick flip 
        endif
          endif
      
      1 Reply Last reply Reply Quote 0
      • R
        Richard F last edited by Richard

        I would have thought something like

        if c.a then state = jump endif
        if state == jump then
           if c.y and c.right then state = flipkick endif
           //check for other button combinations for tricks
        endif 
        
        waldron 1 Reply Last reply Reply Quote 1
        • waldron
          waldron F @Richard last edited by

          @Richard i need to set up a test map and complete the rest of the statements/animations i'l see how it go's
          as for the delay i think i can change the placement of the sprite for the first 2 frames so it doesn't screw the rest of the controls to get the delay

          1 Reply Last reply Reply Quote 0
          • First post
            Last post