rotate plateform according to two buttons(clock wise and counter clock wise)
troynall
Member Posts: 15
touch button A. add +1 to variable(plat_angle). touch button B. subtract -1 to variable(plat_angle).
as long a button A is pressed it will cumulative add +1 to variable(plat_angle).
as long a button B is pressed it will cumulative subject +1 to variable(plat_angle).
only one button can be pressed at once.
do i use Boolean for the touch state?
how do I make it when button A is pressed, button B ignores pressing. and vice-versa.
how to i sum up the touches ? game.plat_angle = game.plat_angle + 1 ?
i also wanna limit the plat_angle to +45 degrees to +135degrees.
This basically limits the angle of the platform.
Now I want to rotate and object called PLATFORM according to plat_angle.
i understand the basics, just having a hard time doing it VIA GAMESALAD.
Am I over thinking this ?
as long a button A is pressed it will cumulative add +1 to variable(plat_angle).
as long a button B is pressed it will cumulative subject +1 to variable(plat_angle).
only one button can be pressed at once.
do i use Boolean for the touch state?
how do I make it when button A is pressed, button B ignores pressing. and vice-versa.
how to i sum up the touches ? game.plat_angle = game.plat_angle + 1 ?
i also wanna limit the plat_angle to +45 degrees to +135degrees.
This basically limits the angle of the platform.
Now I want to rotate and object called PLATFORM according to plat_angle.
i understand the basics, just having a hard time doing it VIA GAMESALAD.
Am I over thinking this ?
Comments