Kill Count Help

This forum is currently in read-only mode.
From the Asset Store
Game with complete Source-Code (Construct 3 / .c3p) + HTML5 Exported.
  • Hi:

    I am making my own version of the ghost shooter game but I have run into some trouble.

    I added exploding barrels that cause an explosion when they are shot 4 times and when the ghosts overlap the explosion, they are destroyed. The player then gets 1 added to their "Kill Count" private variable and the game displays "Kills:" and the amount of the "Kill Count" private variable at the top. My problem is that when the player kills more than one ghost at the same time using a barrel (which is bound to happen), the system only adds 1 to the "Kill Count" instead of the correct amount of ghosts that where destroyed. How do I solve this?

    Here is a link for my cap:

    http://dl.dropbox.com/u/7518552/Ghost%2 ... lution.cap

    Any help is appreciated

    Thanks

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • My problem is that when the player kills more than one ghost at the same time using a barrel (which is bound to happen), the system only adds 1 to the "Kill Count" instead of the correct amount of ghosts that where destroyed. How do I solve this?

    Sounds like you need a For each object loop here. Try to set up your event like this:

    <img src="http://dl.dropbox.com/u/2306601/foreach1.png">

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