Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: Tangled Rays 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 :)
-
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.
-
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 ;)
-
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 (http://www.hutonggames.com/tutorials_game_design_with_playmaker.php) page to get familiar with playmaker.
You can also have a look to this course Playmaker 101 (http://jonathan-oduffy.thinkific.com/courses/playmaker-101-the-complete-course) (it's free by the way)
-
It works! Thankyou for pointing me in the right direction, here are the final actions I set up to get it working. Thanks again! :)