Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: The Almighty Metroid on Sat 25/10/2008 04:16:30

Title: Winning the game! (SOLVED!)
Post by: The Almighty Metroid on Sat 25/10/2008 04:16:30
Hello again!
Ok i need to know, once the total score is reached the game goes to a "You win!" screen with "replay" and "quit"
How ,once the maximum total score is reached, do i change the room to another?

Thanks 8)
TAM
Title: Re: Winning the game!
Post by: on Sat 25/10/2008 04:31:44
game.score is the variable you want, I think. It holds the current score- so you could simply check if game.score == whatever_your_max_score is in the repeatedly_execute function, and once you reach it, use player.changeRoom.
Title: Re: Winning the game!
Post by: The Almighty Metroid on Sat 25/10/2008 04:39:07
cool thanks Ghost! Your a very big help.