playMaker

Author Topic: Wait Problem...  (Read 3070 times)

kentcheung2000

  • Playmaker Newbie
  • *
  • Posts: 37
Wait Problem...
« on: April 13, 2019, 03: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
« Last Edit: April 13, 2019, 03:04:44 AM by kentcheung2000 »

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: Wait Problem...
« Reply #1 on: April 13, 2019, 07: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?

kentcheung2000

  • Playmaker Newbie
  • *
  • Posts: 37
Re: Wait Problem...
« Reply #2 on: April 13, 2019, 11: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

kentcheung2000

  • Playmaker Newbie
  • *
  • Posts: 37
Re: Wait Problem...
« Reply #3 on: April 13, 2019, 11: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
« Last Edit: April 13, 2019, 11:30:18 AM by kentcheung2000 »

Thore

  • Sr. Member
  • ****
  • Posts: 480
Re: Wait Problem...
« Reply #4 on: April 13, 2019, 12:06:49 PM »
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.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Wait Problem...
« Reply #5 on: April 15, 2019, 02:22:57 AM »
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