How do I get the game to continue after using coins?

0 favourites
  • 4 posts
From the Asset Store
112 High-Quality Coins and Chest SFX specially crafted for video games
  • C3/Mobile App

    I'm using C3's pac-man (Eat 'em all) template to create a game.

    I've added coins.

    If the player collects 10 coins before he dies, he can continue on without starting over. If he doesn't have 10 coins, the game restarts.

    I set the coins variable to 50 for testing.

    When the player dies he gets a green square, if he clicks on the green square, the game should start where it left off, with 1 life.

    The game does start with the same amount of missing dots, but when the ghost collide with the player, the player no longer dies. That's kind of an issue.

    I can't seem to get the ghost to kill the player after the player uses coins. The player seems to be able to eat the ghosts after eating a big dot and eat the little dots and when all the dots are gone the player does win.

    The only problem is the ghosts no longer kill pacman when they collide.

    Thoughts?

    This is the edited demo: drive.google.com/file/d/10yNr7nUqDX1swKLw8gooxMb4gmH6Y52s/view

  • After dying no "playerlives" objects are respawned, meaning that the condition Playerlives.ID=Game.Lives is not true and the event actions do not take place.

    You need to respawn the three playerlives objects when you press the green sqaure.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • calminthenight

    Thank you for your reply. I'm not sure how to do that.

    I attempted to spawn like the player and ghost spawn and that didn't work, but I'm thinking it has something to do with setting the ID.

  • calminthenight,

    I got it.

    Just had to get the right combination.

    Thanks again for your help.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)