Hi Gil,
Is there any way in ORK to detect a Variable so that when it has reached a certain Number it automatically fires, and we enter another scene, but without a TRIGGER or a COLLISION or any intervention from the Player.

If I were programming I would place it in a loop, waiting for the variable to meet the desired number.

Thanks
  • dont know if u can in ork right out but u can grab the variable from ork and use a delegate to check it for you then when it reaches the number u want do something....
    new website can be found here http://www.fore-loregames.com

    Follow the game Development on Twitter https://twitter.com/Fore_Lore_Games

    or check out the face book page here https://www.facebook.com/ForeLoreGames
  • Another way is to just create an event with say variable. Let's say I have a variable changeScene type float. I'll do...
    Example:
    (Check Variable node, if float is 3, change scene, if not, keep going) -> (Wait 1 sec node) -> change variable node (add 1 to changeScene).

    After that, put it in an auto global event. That is what I would do anyway, and have done a couple of times.
  • You can register to be notified by variable changes by adding your function to the ORK.Game.Variables.Changed event handler. Otherwise you'll have to do repeated checks (either using the event system or a custom script).
    Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found.
    If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
  • Thank you All,

    I managed to make the Global Variable work, but It took me a long time to
    understand how the process worked, so I made this Image to help anybody
    with the same problem.

    Many Thanks
    [IMG]http://i66.tinypic.com/2zdx8y9.jpg[/IMG]
Sign In or Register to comment.