playMaker

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

kentcheung2000

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

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 4620
    • View Profile
    • jinxtergames
Re: Wait Problem...
« Reply #1 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?

kentcheung2000

  • Playmaker Newbie
  • *
  • Posts: 37
    • View Profile
Re: Wait Problem...
« Reply #2 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

kentcheung2000

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

Thore

  • Sr. Member
  • ****
  • Posts: 344
    • View Profile
Re: Wait Problem...
« Reply #4 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.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 14703
  • Official Playmaker Support
    • View Profile
Re: Wait Problem...
« Reply #5 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