Cannot get my actor to run and jump at the same time

I have tried about 5 different ways to get my character to move (left right jump) and every time, the run/jump at the same time doesn't work with the on screen controls. It works if i have it set to the keyboard keys but not when on the actual device.

Right now I have 3 different boolean game attributes (left right jump)

the character rules are

if game.right is true
self.motion.linearvelocity.x = 100
otherwise
self.motion.linearvelocity.x = 0


and a similar setup for left and jump

then i have the jump button rules

when touch is pressed and mouse is inside
game.right = true
otherwise = false


And like I said, I've tried 3 or 4 other ways to get him to jump and move at the same time
I've gone through templates and used their way and I've tried rules I made myself. I dont know what to do

Comments

  • blorschblorsch Member Posts: 248
  • bjandthekatzbjandthekatz Orlando, FlMember Posts: 1,375
    I have tried about 5 different ways to get my character to move (left right jump) and every time, the run/jump at the same time doesn't work with the on screen controls. It works if i have it set to the keyboard keys but not when on the actual device.

    Right now I have 3 different boolean game attributes (left right jump)

    the character rules are

    if game.right is true
    self.motion.linearvelocity.x = 100
    otherwise
    self.motion.linearvelocity.x = 0


    and a similar setup for left and jump

    then i have the jump button rules

    when touch is pressed and mouse is inside
    game.right = true
    otherwise = false

    I Have Had This Problem Before, This Is How You Fix.

    - Change All Change Attributes To Constrain Attribute, leave Everything The Same Though.

    Lemme Know If It Helps.

  • digitalzerodigitalzero Member, BASIC Posts: 639
    simple fix.. if its left or right do a text attribute if its a jump use a boolean :) this !@#$% pissed me off when i was trying to figure it out forever!!!
Sign In or Register to comment.