playMaker

Author Topic: Int Add  (Read 1040 times)

ArctheLad

  • Playmaker Newbie
  • *
  • Posts: 24
    • View Profile
Int Add
« on: April 11, 2014, 04:28:06 AM »
So, I have a game that gives you 4 questions with 4 possible answers for each question. It is set up so out of the 16 possible answers, if you get 6 incorrect choices. So in Q1 if the answer was 4 and you pressed 1, 2, and 3, it will add to the Int making the int 3. It then comparees that int to 6 and on 6 it loads a game over.

The problem is, when you choose to reload the scene, the Int value is still 6 so if you get another wrong answer it loads the game over after 1, rather than 6. Is there any way that I can reset the Int value to 0 when the scene reloads in Playmaker or will I need to script it? (I can't write script by the way xD)

Regards,

~ArctheLad

ArctheLad

  • Playmaker Newbie
  • *
  • Posts: 24
    • View Profile
Re: Int Add SOLVED
« Reply #1 on: April 11, 2014, 04:34:39 AM »
Moments after I posted this, I realised I could just used Set Int Value and set it to 0 in my start up state when the level reloads. I added in a Wait of 0.1 just to move the state over.