How do I Rotate exactly 90 degree LITE TWEEN

Get help using Construct 2

Post » 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
11
S
3
G
1
Posts: 419
Reputation: 1,782

Post » 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
65
S
21
G
90
Posts: 1,124
Reputation: 59,857

Post » 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
36
S
15
G
1
Posts: 59
Reputation: 3,441

Post » Tue Jan 12, 2016 3:45 pm

thank, you guys, it would ne easier if construct had Disable touch input function
B
11
S
3
G
1
Posts: 419
Reputation: 1,782


Return to How do I....?

Who is online

Users browsing this forum: batto, Yahoo [Bot] and 27 guests