Ending level problems

zefrofzefrof Member Posts: 26
edited May 2012 in Working with GS (Mac)
I have my levels set up to end when the score is 650 or higher and a count = 20. The count starts at 0 and increases when a ball touches a actor placed at the bottom outside the camera view. The problem with this is the level wont end at all like this. If I change it so the count is greater than or equal to sometimes the level works but most of the time is ends early. I have the actor at the bottom so wide it it streches way outside of the scene. Any ideas on why this isn't working? Thanks for all the help.

Best Answer

  • MotherHooseMotherHoose Posts: 2,456
    Accepted Answer
    the Counter colliding with the ball is adding to the Count …

    having the individual balls overlap/collide with the Counter … add to the Count
    … should correct the problem

    image MH

Answers

  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    Would prob need to see screen shots of your rules to have any idea trouble shooting ideas.
  • zefrofzefrof Member Posts: 26
    edited May 2012
    image
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    Have you used a Display Text actor to watch your game-level attributes such as game.Count to see what they are doing during gameplay? If so, what is happening with those two attributes?

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

  • MotherHooseMotherHoose Member Posts: 2,456
    try nesting the game.Count rule:

    Rule: when
    Attribute: game.levelScore ≥ 650
    --Rule: when
    --Attribute: game.Count ≥ 20
    --Timer

    and as @tatiang said … add a displayText to show the game.Count in the scene

    image MH
  • zefrofzefrof Member Posts: 26
    edited May 2012
    After displaying the counter (Thanks @MotherHoose and @tatiang) I believe the problem is whenever two balls hit at the same time it only registers one. This is the rule for the counter: image

    Any ideas on how to fix this? Thanks again for the help.
  • zefrofzefrof Member Posts: 26
    @MotherHoose that should fix the problem, you are right. I'll let everybody know if that works.
  • zefrofzefrof Member Posts: 26
    It worked thanks everybody!
Sign In or Register to comment.