Unusual use of "On frame changed"

Get help using Construct 2

Post » Tue Apr 16, 2013 11:09 am

Hi there everyone,

I'm having a problem with the function "On frame changed".
It seems to be effective only when the animation is playing and I need it while the animation is stopped.

In fact the user has to click on the object so the frame changes. Then the value of the frame is used in another part of my prototype (to add a physic force on another object).

Is there any way to bypass this limitation ?
B
8
S
3
G
2
Posts: 35
Reputation: 2,177

Post » Tue Apr 16, 2013 6:47 pm

Hi,

why not set a instance variable to the current frame number, then check the variable.
B
45
S
15
G
9
Posts: 1,096
Reputation: 11,038

Post » Mon Jun 24, 2013 10:22 am

It worked, thank you !
Sorry for the delay, i'm working on several projects ...
B
8
S
3
G
2
Posts: 35
Reputation: 2,177


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 0 guests