Problem with sine behavior

Get help using Construct 2

Post » Sun Mar 22, 2015 7:57 am

On my menu layout i have a sprite font object with a sine behavior. The behavior is set to "active on start" and when first starting the game the behavior works fine. But if I go to my game layout and then back to the menu layout the sine behavior isn't active anymore, and it doesn't help if I make a "on start of layout - set sine active" event. Is this a bug, or am I just doing something wrong? Help me, please :(
B
5
S
1
Posts: 3
Reputation: 388

Post » Sun Mar 22, 2015 8:34 am

Do you have events where the sine is getting deactivated ?
Perhaps disable those to see if the sine still works when returning to the main menu.

You could use an event to see if the sine is active, and if inactive, reactivate it.

event
object sine active (inverted)
action
object set sine active
Who dares wins
B
57
S
17
G
21
Posts: 1,878
Reputation: 19,592

Post » Sun Mar 22, 2015 9:39 am

Hah, I'm stupid. I had an event that set the time scale to 0. Just had to set it to 1 again when going back to the main menu. Thanks for the help :)
B
5
S
1
Posts: 3
Reputation: 388


Return to How do I....?

Who is online

Users browsing this forum: Google [Bot], WesleyDeveloper9, Yahoo [Bot] and 8 guests