Need Help: Selecting A then B then C then getting Desired event?
Hello,
Trying to set up a action that allows a Actor to touch three or more other actors then to gain a point. Then moving on to the next level or wave without changing the scene.
Kinda like games that are waves of enemies then once you get a certain number of points it moves to next wave.
I have used true and false statements that are working but I am a bit stuck due to the fact that once the actor touches the three actors i needed i want to change the mission to touch a different set of actors required.
I hope that makes some sense.
Thank
Trying to set up a action that allows a Actor to touch three or more other actors then to gain a point. Then moving on to the next level or wave without changing the scene.
Kinda like games that are waves of enemies then once you get a certain number of points it moves to next wave.
I have used true and false statements that are working but I am a bit stuck due to the fact that once the actor touches the three actors i needed i want to change the mission to touch a different set of actors required.
I hope that makes some sense.
Thank
Best Answer
-
jonmulcahy Posts: 10,408
have an attribute called levelComplete.
when A,B,C is true levelComplete is true
when levelComplete is true
after .25 sec
change currentLevel to currentLevel+1
and when currentLevel is something new clear all current objectives and set the new one.
so if currentLevel = 1
objects = a, b, c
if currentLevel = 2
objectives = d,e,f
Answers
But once the player gets all three I want to change the need to say once player gets D, G, F etc...
Kinda like missions changing once the player achieves the first and second and so on.
Also Sorry if i am not using the correct terms. Im learning Slowly
Thanks
So There are elements on the screen that I need to change once ABC is true.
I want to Change A.B.C ( Three Actors) to D.E.F ( Three Actors) . Also Change Spawn Actor A to Spawn Actor B all with out leaving the Current Screen.
I tried to change Attribute A to Attribute D but that did not work.
Could you further explain currentLevel+1 and how the elements on the screen change when current level changes?