Playmaker Forum

PlayMaker News => General Discussion => Topic started by: kentcheung2000 on April 13, 2019, 12:00:06 AM

Title: Wait Problem...
Post by: kentcheung2000 on April 13, 2019, 12:00:06 AM
Hi,

When I reload the scene the second time, the wait action got stuck....Is it a bug in playmaker or I didn't do something...

KC
Title: Re: Wait Problem...
Post by: djaydino on April 13, 2019, 04:27:22 AM
Hi.
Can you show the wait state?

The send event will not reload a scene are you reloading the scene somewhere else?
Title: Re: Wait Problem...
Post by: kentcheung2000 on April 13, 2019, 08:14:57 AM
Thank you so much for your reply.  When I reload back to the level scene, it stops at the wait state.  Is it because I haven't check the real time?...

KC
Title: Re: Wait Problem...
Post by: kentcheung2000 on April 13, 2019, 08:20:08 AM
When I check the real time in the wait state, it works.  What is real time in the wait state?....I thought it has no difference....It works the first time when I load the scene without real time box check.

KC
Title: Re: Wait Problem...
Post by: Thore on April 13, 2019, 09:06:49 AM
Here‘s how wait time works:

Unity has its own internal clock, which can be manipulated to do e.g. slo-motion effects, pausing the game etc. This clock is called time scale, and you normally use this. But some stuff still needs to wait, but should not be affected by Unity’s internal time, which is “real-time”.

Say a puzzle must be solved in 30 seconds, but the game is paused. Of course, the 30s timer should be paused, too. But the UI has 2 second delay for some effect, and this should always be 2 seconds, in “real-time” no matter what.
Title: Re: Wait Problem...
Post by: jeanfabre on April 14, 2019, 11:22:57 PM
Hi,

 don't use the delay value of the sendEvent in this case,

instead use a regular wait action.

Let me know if that doesn't help.

 Bye,

 Jean