Boxtop's Recent Forum Activity

  • I got a runtime error when trying to run the program.

  • That worked. Thanks.

  • Well, if you're talking to me, I tried to isolate the problem in this cap file. If you run it and kill both zombies (within a second or so of each other), only one will fade. In my original game, when I put the Trigger Once in a subevent along with the fade event, both zombies stopped moving and played their "dead" animation, but still only one faded.

  • I'm having the same problem, but what I've noticed when I use the Trigger Once condition is that if there are two sprites on the screen (of the same family), only one performs the fade event (or whatever other events), while the other sprite doesn't change at all (animation nor fade). Only until the first sprite is gone is the second sprite able to do what it's supposed to do, but only if it were still "alive" after the first sprite disappeared.

    I tried adding "Trigger Once" as a subevent, but it gave me a similar problem.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • In your always event, moving the "place behind" to the top seemed to fix it for me.

    Worked for me, too. Thanks.

    [quote:3hxtb0ri]Did you try using "Trigger Once While True" under system?

    I tried it now, but it only increased the kill counter once, and then wouldn't increase it again after other zombies were killed. I'm assuming I was supposed to make "Trigger Once While True" a subevent of "Zombie: value 'hitpoints' less then or equal to 0".

  • Hi. I found Construct a few weeks ago on another forum and I decided to try it out. I'm currently working on a small zombie game and I've run into some snags.

    Here's the cap: carnage.cap

    1. How would I set an object to no longer be solid? In my game, my zombies were originally set to be solid objects, so the player couldn't walk over them. When the zombies "died," however, they were still solid and the player couldn't walk over them. I tried moving the "dead" zombies to another layer, but that didn't work.

    Also, while solid, my zombies kept pushing the player in the direction they were headed. How do I make them stop and "attack" the player when near him, and then start walking again when the player moves away?

    2. When a zombie is shot it creates a "blood" sprite that overlaps it. How do I spawn the blood sprite behind the zombie? Setting "blood: Place behind zombie" (which I've done twice) doesn't work. I think I got this to work once before, but I screwed up somewhere and forgot how to do it again.

    3. The kills counter (as well as the TotalZombies counter, I suppose) doesn't work because of the way I have the zombies' "death" set up: First I change their sprite, and then I have them fade out and deleted from play. This, however, causes the kill counter to increase repeatedly while the current zombie still exists. Is there a way I can make this action only happen once?

    4. I plan on adding more kinds of monsters (and possibly weapons) to the game, but I don't want to do all my events over again. Is there a way to have one event affect different objects the same way?

    5. In a different version of the game, I had both DirectSound and MOD objects (for gunshots and music, respectively). Whenever I played the gunshot sound while the music was playing, it screwed up the music. Is there a way I can stop that, or should I just use MP3s instead?

    Thanks for the help.

Boxtop's avatar

Boxtop

Member since 22 May, 2008

None one is following Boxtop yet!

Trophy Case

  • 16-Year Club

Progress

16/44
How to earn trophies