I NEED HELP WITH SOME RULES

I'm almost about to publish my game there's a fish and a box of treasure the only way to get to the finish is to collect all the coins and go to the finish line

So i need two rules

A rule to check how many coins are left

Then when that's complete a rule when it goes to the finish line with ONLY 0 coins it will change scene

Comments

  • POMPOM Member Posts: 2,599
    edited March 2014
    Make a game variable - call it "coinsLeftToCollect"
    Then create a new actor, call it "manager" . Place it in the gameplay scene.
    In it make the first rule:
    change coinsLeftToCollect to the number of coins you want the player to collect in that scene.
    Then Below it, make a rule that says:
    When coinsLeftToCollect<=0 then
    Go to Level Complete scene.

    Now, there's only one thing left to do,
    In your coin actors, you probably have a rule that recognize that the coin was collected, (I'll take a guess and say you make this with collision detection)
    In that rule, right before you destroy the coin, add the following:
    Change coinsLeftToCollect To coinsLeftToCollect-1

    That way the coin count is being updated for every coin you collect and your manager actor will do the rest.

    Good luck with you game :)
    Roy.
  • TheBeast105TheBeast105 Member Posts: 8
    Thanks I'll try it out
  • TheBeast105TheBeast105 Member Posts: 8
    Thanks i think ive got it working its a bit glitchy butt ill fix it
Sign In or Register to comment.