playMaker

Author Topic: Video timer-Unity freezing on play[SOLVED]  (Read 1130 times)

Tangled Rays

  • Playmaker Newbie
  • *
  • Posts: 42
Video timer-Unity freezing on play[SOLVED]
« on: January 15, 2019, 08:45:46 AM »
Hi trying to create a timer so that when the video stops playing, it goes to the next scene, logically it should work but Unity doesn't seem to like it, any ideas? Thanks for any help :)
« Last Edit: January 18, 2019, 03:08:06 AM by jeanfabre »

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: Video timer-Unity freezing on play
« Reply #1 on: January 15, 2019, 08:50:35 AM »
Hi.
How are you setting the introStop value.

as wait will get the value of that variable when the state became active (once), it will not check the value every frame.

but if the introStop runs down to 0 you can use a float compare and set to every frame.

Tangled Rays

  • Playmaker Newbie
  • *
  • Posts: 42
Re: Video timer-Unity freezing on play
« Reply #2 on: January 15, 2019, 09:04:44 AM »
Hey :) Thanks for getting back so quick! IntroStops seems to fire correctly at the end of the video, which logically means it should move to the next state, however I have given no value to IntroStops, it just seems to work. How would I go about giving it a value? It is set as a variable obviously, but I have no idea how to set a value to it in PlayMaker, would it require a seperate script and globalising? Unity has only started freezing since I added the state GoToState2, so I'm a bit confused at this point. I'll have another look and get back to you ;)

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: Video timer-Unity freezing on play
« Reply #3 on: January 15, 2019, 09:48:11 AM »
Hi.
You should enable debug (check box below on your image)

Then you can see what is inside the variable. on your actions.

You should have a look at the tutorials page to get familiar with playmaker.

You can also have a look to this course Playmaker 101 (it's free by the way)

Tangled Rays

  • Playmaker Newbie
  • *
  • Posts: 42
Re: Video timer-Unity freezing on play
« Reply #4 on: January 15, 2019, 09:58:47 AM »
It works! Thankyou for pointing me in the right direction, here are the final actions I set up to get it working. Thanks again!  :)