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
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
- Change All Change Attributes To Constrain Attribute, leave Everything The Same Though.
Lemme Know If It Helps.
Need Help? Email Me | Templates | Full Game Source Code