Victory Screen

My question is this: I had recently made a game and right now I am in the Ad-Hoc testing stage. When I made the game, I made it so that the victory screen pops up whenever a player gets a certain score or passes that score, per level. For the sake of guessing, let's say the score was 1,000. When I would press a button and the score was at 100 or even 10 for that matter, the victory screen would pop up without warning. Is there any way to fix this issue?

Answers

  • tintrantintran Member Posts: 453
    edited August 2015

    what is your victory screen just an actor right?
    you could add a rule to say
    when all conditions are happening.
    - if score >= 1000
    do
    - spawn the victory screen

    then your victory screen actor can destroy itself after 1 second or something.

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949

    Without seeing your rules, it's impossible to know. Can you post a screenshot of them?

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • Professor CaineProfessor Caine Member, PRO Posts: 15


    My apologizes, The Victory screen is an actor that appears under certain rules. I uploaded the screenshot.

  • Professor CaineProfessor Caine Member, PRO Posts: 15

    Would you need to see a screen shot of the scoring system or no?

  • Professor CaineProfessor Caine Member, PRO Posts: 15

    Any Suggestions on what I should do?

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    edited August 2015

    The rule you showed is triggered when game.Play... is greater than or equal to 45,000.

    1. What happens if you turn that rule off and score ≥ 45,000? Does it still change scenes when the score is "100 or even 10"?
    2. What happens when you have that rule turned on and add a Log Debugging Statement to that rule? Does it show up in the Debugger window when that rule should trigger?

    I would add game.Play... to the expression in the Log Debugging Statement so that you can see what value is actually triggering that rule (it could be different then you think). What value(s) are triggering that rule?

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • Professor CaineProfessor Caine Member, PRO Posts: 15

    I'll try that today and send you a message if it works.

  • Professor CaineProfessor Caine Member, PRO Posts: 15

    The Play expression is short for Player Score, that was something I should I have mentioned earlier.

Sign In or Register to comment.