Gravity Switch

Hey everyone, I´m trying to create a gravity based game. The basic idea is to have gravity´s direction switched between 270 and 90 degrees when the screen is touched. Any suggestions on how to achieve this behavior?

Comments

  • bjandthekatzbjandthekatz Orlando, FlMember Posts: 1,375
    Create a boolean attribute called Gravity, ill also make an actor called BG and stretch it over the screen

    When Touch is pressed and Gravity is false, change Gravity to true
    When touch is pressed and gravity is true, change Gravity to false

    In your character
    When gravity is true accelerate 270
    otherwise
    accelerate 90
  • RThurmanRThurman Member, Sous Chef, PRO Posts: 2,880
    edited September 2013
    Edit: Beat to it by @bjandthekats! (Guess I gotta learn to type faster.)
Sign In or Register to comment.