playMaker

Author Topic: Trigger event and global variables  (Read 1688 times)

Tomasz

  • Playmaker Newbie
  • *
  • Posts: 34
Trigger event and global variables
« on: August 19, 2016, 05:29:20 AM »
Hello again! :)
This time I struggle with variable verification.

On the scene I have:

- Point A which is in the center of the scene.
- Points B, C, D, E and they are located from different sides of the point A.
- Layout looks like:

    B
    |
C-A-D
    |
    E

At the start I am standing at point A.
I can't go to E because door is closed. Of course, the door is imaginary.
I have to go to B, then I get a key that will open this door.

Moving the player to point B, I would give it a value in a global variable.
Then when I am going back to point A would check it and, if appropriate value then I can go to the point E.

I do not know what actions to do so.
I ask for any hints.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7618
    • jinxtergames
Re: Trigger event and global variables
« Reply #1 on: August 19, 2016, 06:34:31 AM »
Hi,
A good way to start is to watch the basic tutorials here :)

Tomasz

  • Playmaker Newbie
  • *
  • Posts: 34
Re: Trigger event and global variables
« Reply #2 on: August 22, 2016, 08:00:49 AM »
Thanks! These videos I've watched and they inspired me to the array subject. It seems that the using of the array will be the best option for me.