Gravity & Button Direction

Discussion in 'How Can I...?' started by Jsaetern1297, Apr 17, 2016.

  1. Jsaetern1297

    Jsaetern1297 Boxer

    Joined:
    Feb 19, 2016
    Messages:
    17
    Likes Received:
    3
    1. How do I make it so Gravity only affects the map / objects and not my character, for example I want the screen to go downwards at a pace as if it were falling but if I try to jump the gravity also affects my character. Is the only way to fix that by countering gravity with higher Jump Force?

    2. Can I make it so if you tap one side of the screen you jump left and if you tap the other side you jump right? I can tweak the jump force (x,y) for jumping each direction but if I wanted to have the ability to jump both directions depending on the side of screen tapped, how would I go about that?
     
  2. kalvopit

    kalvopit Boxer

    Joined:
    Apr 18, 2016
    Messages:
    1
    Likes Received:
    0
    I'm trying to do a Ping Pong effect up and down and move to the left and right, but i can't find it. Anyone can help me out?.
     
  3. duncan22

    duncan22 Boxer

    Joined:
    Jun 2, 2016
    Messages:
    4
    Likes Received:
    0
  4. heathclose

    heathclose Miniboss Boxer

    Joined:
    Jan 28, 2016
    Messages:
    1,810
    Likes Received:
    1,026
    If you want the world to move and not the character, constrict your game frame to almost nothing
     

Share This Page