Movement Problem

ForteForte Member, PRO Posts: 297
edited November -1 in Working with GS (Mac)
Hi there everyone,

I have two buttons, one points left and one points right. I have an actor that reacts when they are pressed. But when It goes right, everything is fine, when it goes left everything is alright, but when i go right i again, (i have the actor rotate the direction they are heading) it rotates, then goes left again! Why?

These are the attributes for the buttons and the actor

Left button:

Rule/

Actor event, touch, inside

event, touch, pressed

change attribute
game.moveleft = true

otherwise
change attribute
game.moveleft = false

right button is opposite to left

Rule

Actor move left attribute

attribute, move.left = true

then

move ---> speed 100

thats the attributes
Sign In or Register to comment.