Level complete instantly after replaying a previous level

g0doneg0done Member Posts: 9
edited November -1 in Working with GS (Mac)
After a level in my game is completed I send the player back to the level selection screen and it works perfectly going to the next level, BUT if a previos level is replayed you see the end of the last time it was played:

I.E the score & the level complete actor just before your are sent back to the level selection

The level is done through the normal

Button to Level;
Rule{
Att. game.level complete > self.LevelNumber
Act. touch is pressed
Att. game.level complete > self.Level
Change Scene
(Level 1)}

Spawner after all are killed:
Rule{
Att. game.Dead = 0
Timer
After 0.6 secs
Spawn actor Level Complete...
Timer
After 0.3
Change Scene
Level Select

Change Attribute
Att game.Level Complete to game.Level Complete=1}

I have tried using reset screens in every combination and nothing is working for me when it comes to stoping the replay and completion circle im in.

Ant

Comments

  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    You need to add a change attribute to make game.dead ≠ 0

    You can put it in the timer right before the change scene back to the level select or you can put it in the touch rule for your level icons.

    Let me know if that fixes your problem.

    ___________________________________________________________________________________
    Project Help from Tenrdrmer Click Here

    GS BubbleBall Template HERE!!
    Stacks Level Selection Template HERE!!
    Expanding Option Menu Template HERE!!
    Tenrdrmer's Menu # 3 HERE!!
    AppSolute Entertainment on Facebook
    AppSolute Entertainment on iTunes
  • g0doneg0done Member Posts: 9
    tenrdrmer said:
    You need to add a change attribute to make game.dead ≠ 0

    You can put it in the timer right before the change scene back to the level select or you can put it in the touch rule for your level icons.

    Let me know if that fixes your problem.

    Thanks for the response

    If I add it to the touch rule when I try to replay the level I am locked out of the button, The event, touch is pressed no longer works and nothing happens when I add it im the timer.

    Ant
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    Well something that triggers that level complete spawning has to not be reseting with out picking through your code.

    The rules you listed that attribute shouldn't have anything to do with it. so it sounds like you have some rules crossed somewhere.

    ___________________________________________________________________________________
    Project Help from Tenrdrmer Click Here

    GS BubbleBall Template HERE!!
    Stacks Level Selection Template HERE!!
    Expanding Option Menu Template HERE!!
    Tenrdrmer's Menu # 3 HERE!!
    AppSolute Entertainment on Facebook
    AppSolute Entertainment on iTunes
Sign In or Register to comment.