I am following the Game Tutorials series and I got to tutorial 3 - Adding a player (http://orkframework.com/tutorial/game-tutorial/3-adding-the-player/). When I got down to the variable settings part I could not find out where to add a game variable at in the ORK Framework.

Jason
Post edited by blueFire on
  • I took a look at the recommended tutorial but it still does not tell me where in the ORK Framework I can set the variable with its initial value.

    After some fumbling around I think I found it. In the ORK Framework it is under Combatants > Combatants. If this is wrong please tell me. This was not stated in either of the two tutorials.

    Jason
  • edited November 2015
    blue fire-- are you talking about adding a variable in your event that spawns the player for the first time? You do that in your scene where your player will spawn for the first time.

    Make the event to add your player to the battle group and spawn him/her. Then in the scene where you're going to spawn, usually the first scene---

    Make an empty game object --add an event interaction component to it as in the tutorial, then choose the event you created to spawn the player there.

    The variable is added in the interaction event so the event fires only once. If this isn't clear let me know.

    Don't use the tab for the Ork Framework but for the Ork Scene Wizard. Click on the empty game object, select the tab ORK Scene Wizard, click on add component and select the first one which I think is event interaction.

    You set the variable right there in the event interaction drop down. Go down from autostart and you'll see a section where you can set the variable just like in the tutorial. The "Variable Conditions Setting".

    Don't set it in Combatant Combatants for this part of the tutorial. That's for something else like spawning a conditional prefab in battle.

    I can put up a screenshot if you need it.
    Post edited by Catacomber on
  • each tutorial has a explanation at the top it will tell you to follow something else before doing the tutorial if you read the top you will see a link to setting a combatant. follow the how to and you will understand.

    but normally it goes by just setting up your first character ie the player , in the main menu settings theres a bunch of settings that need to be filled out for new game start menu ect then you would set up your start event where you would spawn the player this event gets added to the main menu settings.
    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
  • You don't need to add variables anywhere in ORK - you can just use them at the place where you need them by defining the variable key right there.

    When a game variable isn't defined before that, it'll have a default value when used:
    - bool: false
    - float: 0
    - string: empty (i.e. no letters at all)
    - Vector3: X=0, Y=0, Z=0
    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!
  • I see what I was doing wrong. I was using Option 1 in the tutorial to set the start event instead of option 2. I thought the section on Variable Settings also applied to Option 1.

    Now I am back on track. Thanks everyone for the help.

    Jason
Sign In or Register to comment.