Changing Character Every level?
Snowleapord
Member Posts: 77
Hello i am making a zombie game with multiple levels. What i am trying to do is have a different character fighting the zombies each level(different guns, rate of fire, speed ect) I tried making a character and replacing it with the main in level 2, but when i preview, the character just goes back to the first one. Help?
Comments
If game.level = 1
Change Image; first lvl image
If game.level = 2
Change Image; 2nd lvl image
You can have a counter or something update the integer game.level attribute each level.
Have a 'control' actor in each level - it's just a blank looking actor that you can put off-screen and use to control stuff.
In the control actor, have a rule for each level.
So on level 1, the control actor would have the bahaviour:
Change attribute level to 1
And on level 2, the control actor would have the bahaviour:
Change attribute level to 2
Then in your character have the rules:
If level =1
Change image to (whatever the first character is)
f level =1
Change image to (whatever the second character is)
Hope that helps!
QS
Dr. Sam Beckett never returned home...
Twitter: https://twitter.com/Quantum_Sheep
Web: https://quantumsheep.itch.io