What is wrong
Hey
I have a problem, with the game i try to make to iPhone, the problem is that, I have made 2 actors with will move a figure op and down, but when i touch e.g. op it continues op, and I have to press down to make it stop again, but then the figure can't move op or down, and I don't know what I have to do, so the figure goes op and down then you press the button, and stops when you don't hold you finger down on the button anymore. I hope you can help me?
From Emil
I have a problem, with the game i try to make to iPhone, the problem is that, I have made 2 actors with will move a figure op and down, but when i touch e.g. op it continues op, and I have to press down to make it stop again, but then the figure can't move op or down, and I don't know what I have to do, so the figure goes op and down then you press the button, and stops when you don't hold you finger down on the button anymore. I hope you can help me?
From Emil
Best Answer
-
UtopianGames Posts: 5,692
What are you using to move the actors, move to, interpolate, accelerate?
Sounds like you need a boolean in the up and down buttons...make a game.boolean called up and also one called down then in the up button have a rule if touch is pressed and down is false change attribute game.up to true then in the otherwise do a change attribute game.up to false.
Now in the actor do if up = true move up.
Darren.
Answers