Android movement with buttons question

Hi,

Ok this one is probably easy,

How do I replace the Rotate X towards MouseX and MouseY with a set of two buttons, when left is pressed it should rotate to the left and when right is pressed it should rotate to the right.

THanks!

Haha, you’re telling us exactly how the events should be, literally:

[code]Conditions: Left mouse button pressed
Actions: Rotate Object at -90 degrees/second

Conditions: Right mouse button pressed
Actions: Rotate Object at 90 degrees/second[/code]

Now, if you want it to stop when reaches the mouse direction, that may take some extra work :neutral_face:

Got any android specific tutorials ? I’m trying to modify my game in order for it to be playable on android and I have tons of doubts and questions.

Thanks.

The events are the same for any OS.

The only problem with android is that there is no “Right click”, also it gets a bit complex if you want to support multitouch and want to do fancy things.
You’ll have to think how you would like to control it with a touch screen, maybe rotate to the left if the left side of the screen is touched and to the same for the right?