Modal layouts don't pause timer and reset trigger once event

For questions about using Classic.

Post » Tue Oct 14, 2008 9:48 pm

I'm making a shooter and have tried to set it up to use both the timer and a variable for timer based events, but both don't work when it comes to pausing via a modal layout.

The timer doesn't pause when using a modal layout, so that won't work. Neither does using a variable and 'trigger once' because the modal layout resets the events so after closing the modal layout, all the trigger once events activate again even when they shouldn't.

Are either of these bugs? It seems like they shouldn't work that way. Using timers, a whole bunch of the level will suddenly appear (whatever passed while it was paused) and using variables, the level up to that time appears at once. I can think of a clunky way around this that involves deactivating all the behaviors and sticking almost all of the events into a couple subevents, but it seems like they shouldn't work that way.
Moderator
B
87
S
32
G
33
Posts: 3,005
Reputation: 27,397

Post » Tue Oct 14, 2008 10:39 pm

Yeah, it shouldn't work like this. Submit it as a bug to the tracker.
Scirra Founder
B
359
S
214
G
72
Posts: 22,949
Reputation: 178,544

Post » Tue Oct 14, 2008 10:45 pm

Will do, thanks.
Moderator
B
87
S
32
G
33
Posts: 3,005
Reputation: 27,397

Post » Thu Oct 16, 2008 6:49 pm

[quote="Arima":1l1z53qc]the modal layout resets the events so after closing the modal layout, all the trigger once events activate again even when they shouldn't.[/quote:1l1z53qc]
this may also be related to my small issue --



if i sustain my run animation, it will basically add a new instance of the animation on top of the one already there.. one duplicate for each time i create and close a modal layout (options screen). switching animations corrects the problem.
B
2
S
2
G
4
Posts: 254
Reputation: 1,958


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 3 guests