Changing Character Every level?

SnowleapordSnowleapord Member Posts: 77
edited November -1 in Working with GS (Mac)
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

  • DrGlickertDrGlickert Member Posts: 1,135
    Are you replacing it via an image? I would make a game.attribute then a rule on the actor

    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.
  • SnowleapordSnowleapord Member Posts: 77
    how? more prescice please
  • quantumsheepquantumsheep Member Posts: 8,188
    Welcome back!

    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 :D

    Dr. Sam Beckett never returned home...
    Twitter: https://twitter.com/Quantum_Sheep
    Web: https://quantumsheep.itch.io

  • SnowleapordSnowleapord Member Posts: 77
    ha! noticed i was gone awhile!
Sign In or Register to comment.