How do I Make Forever loop when object clicked ?

Get help using Construct 2

Post » Thu Jan 26, 2017 4:44 pm

so i want to make, when an object clicked.. the "forever loop" run.. even when the mouse is not clicked on the object anymore...
so when my sprite is clicked the sprite will always set the position to the mouse position.. even when i dont click the mouse anymore.. i tried to use every tick.. and it didnt work.. please help :c
B
8
S
3
Posts: 46
Reputation: 708

Post » Thu Jan 26, 2017 5:05 pm

What do you mean by "forever loop" ?
Could you elaborate or post capx?
Image Image Image
B
29
S
11
G
27
Posts: 729
Reputation: 16,995

Post » Thu Jan 26, 2017 5:06 pm

You need to make a variable and say, start of layout set variable to 0, if object clicked set variable to 1, if variable is 1 set object to mouse.
B
43
S
22
G
20
Posts: 735
Reputation: 11,977

Post » Fri Jan 27, 2017 2:15 am

thx alot
B
8
S
3
Posts: 46
Reputation: 708


Return to How do I....?

Who is online

Users browsing this forum: apalm1341, blissfulwizard, Yahoo [Bot] and 17 guests