Game Level Events
rlrcstr
Member Posts: 0
Just started working with GS and I've been through many videos and such, but I just want to be sure...
It seems to me that everything that makes the game function has to be tied to an actor. Is that correct? I have two scenarios that seem to be game level events, rather than actor, or even scene, specific.
When the game is started you see two large iron doors and after a second, they need to open. I created a game level attribute called DoorsOpen, defaulted to false. I have logic on each door in my initial scene that animates (slides) the door open when the value of DoorsOpen is True.
At the moment, I have another attribute called GameStarted. I added logic to one of the doors that on GameStarted = False will wait one second and then set DoorsOpen to True.
It works, but attaching the delay logic to the door seems a bit odd, to me.
Also, the doors closing and opening is the transition between almost every scene. Do I just add the same actors to each scene or is there a way to create a game level actor?
I thought of creating a GameController actor to handle the game level stuff, but still you have to add it to each scene...
Any technical advice is appreciated...
Thanks.
It seems to me that everything that makes the game function has to be tied to an actor. Is that correct? I have two scenarios that seem to be game level events, rather than actor, or even scene, specific.
When the game is started you see two large iron doors and after a second, they need to open. I created a game level attribute called DoorsOpen, defaulted to false. I have logic on each door in my initial scene that animates (slides) the door open when the value of DoorsOpen is True.
At the moment, I have another attribute called GameStarted. I added logic to one of the doors that on GameStarted = False will wait one second and then set DoorsOpen to True.
It works, but attaching the delay logic to the door seems a bit odd, to me.
Also, the doors closing and opening is the transition between almost every scene. Do I just add the same actors to each scene or is there a way to create a game level actor?
I thought of creating a GameController actor to handle the game level stuff, but still you have to add it to each scene...
Any technical advice is appreciated...
Thanks.
Answers
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User