# How do I Rotate exactly 90 degree LITE TWEEN

Get help using Construct 2

### » Tue Jan 12, 2016 1:51 pm

Hi, i have Arrow set to change angle exactly 90 degree when touched, but when you touch again before the tween ended, it will rotate again but will not keep the 90 degree angle anymore. How to fix this please
B
14
S
4
G
1
Posts: 436
Reputation: 1,993

### » Tue Jan 12, 2016 2:03 pm

ex32 wrote:Hi, i have Arrow set to change angle exactly 90 degree when touched, but when you touch again before the tween ended, it will rotate again but will not keep the 90 degree angle anymore. How to fix this please

I suggest disabling the button touch(in other words locking) while rotating using a globalvariable or localvariable

for example:

On Touched Button1 & Variable = 0 then
---->"Rotate to 90 degrees"(The one you worked at)
---->Set Variable to 1

If Arrow is equal to 90 degrees then set Variable to 0
The Things you can create is only limited by your imagination. If you don't have the skills then use your motivation as a natural force to exceed all expectations. Chadori RebornXD
B
78
S
27
G
93
Posts: 1,152
Reputation: 62,415

### » Tue Jan 12, 2016 2:15 pm

Hey @ex32 Hi.
Just add a boolean to your arrow and set it to true.
When Arrow touched and boolean is true then triger once while true -set boolean to false and litetween start from the beginning .
(Dont forget to set the target mode on litetween to absolute.)
Cheers.
B
39
S
17
G
1
Posts: 59
Reputation: 3,683

### » Tue Jan 12, 2016 3:45 pm

thank, you guys, it would ne easier if construct had Disable touch input function
B
14
S
4
G
1
Posts: 436
Reputation: 1,993