enemy sprites not acting individually

0 favourites
  • 5 posts
From the Asset Store
Enemy turtles pack including fifteen fully animated variations
  • I know it's a simple solution but I've been staring at this too long and can't figure it out. All the zombie animations are acting as one rather then individually. Any help would be appreciated. Thank you.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I think its because in the last event you pick all the zombiea... And set them to the position of a (probably the first instance) zombiecollider.

    You need to tell construct what zombiea.... To pick else it just does it for every instance. So you need to set its position in the events above i guess...

    Could anyone back me on this or am i horribly wrong?

  • LexusTG From what I can tell the zombieanimations are positioning themselves correctly on the zombiecolliders, just all the animations are the same.

  • It's hard to be certain because looking at the image is harder than messing with an event sheet. Here are my thoughts...

    If you are not using containers, none of the animation calls define which ZombieAnimation you are referencing. I suspect that you are using Containers, though, so you can probably ignore this second point, I only mention it in case you are not...

    Where you have ShieldSprite -> On collision with ZombieCollider, you set ZombieAnimation to "down". That trigger is called within your For each ZombieCollider loop, which is unnecessary and requires forced collision checking (more overhead, negates collision cells) than if you had the trigger at the 'root' of the event sheet.

    Also, the subsequent For each ZombieAnimations is not required, as the sub event should stand alone and function correctly without it. I would advise against using a wait 3 seconds before commanding what the ZombieAnimation should do next because there's scope for referenced objects to get mixed up. Just add a timer behavior to the animation object and set it to trigger in time + 3 secs, then use that trigger to change the animation.

  • Yeah, I'm sure it's a picking issue, I'm just not sure how to deal with the picking in this circumstance.

    EDIT: Ok, I feel like an idiot but my containers weren't set up properly. Issue fixed.

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