animation bug?

0 favourites
From the Asset Store
3 pixel charaters with over 8 animations each + animations with a gun
  • thanks guys. also, i have blood spatter upon death of enemy but how do i keep the spatter in the same place instead of it just happening when an enemy dies

  • WOW just looking at the event sheet for the switch between guns is making my head spin. their has to be a " beginners" guide to this?

  • [quote:176mworc]WOW just looking at the event sheet for the switch between guns is making my head spin. their has to be a " beginners" guide to this?

    Yeah, it's a bit tricky because we are picking different gun objects there. Read some tutorials on objects, instances and picking, for example "Picking/selecting instance(s)" section in the FAQ. Understanding what instances are and how they are picked is probably the most important thing in C2.

    Here is what happens in that event:

    Imagine player is holding Automatic rifle and finds Shotgun.

    1. On Player collision with Shotgun - the system picks Shotgun instance of Gun sprite. We save Shotgun's UID (unique number of this instance of Gun).

    2. Then we pick all guns on the layout and unpin them all from the player. We actually need to pick and unpin only the Automatic gun player is still holding, but it's easier to just pick all guns and unpin them all.

    3. Then we pick the new gun - Shotgun by its UID (which we saved earlier). And pin it to the player.

    note: the word to pick I used here means to select instance(s) in C2, not "to take it off the ground"

  • thanks guys. also, i have blood spatter upon death of enemy but how do i keep the spatter in the same place instead of it just happening when an enemy dies

  • What do you mean?

    Your blood splatter is in the "explosion" object, you move it to killed enemy position and then play "blood splattering everywhere" animation.

    Which part do you want to change?

  • i want the blood spatter to stay their so every time an enemy is killed the spatter stays at its location so in the end theirs BLOOD EVERYWHERE lol

  • Now you have just 1 "explosion" object and you move it from one enemy to another.

    When an enemy is killed, replace "Explosion ->set position to enemy" action with "Enemy->Spawn explosion". This will create a new blood splatter for every killed enemy. And you'll have your blood bath

  • drive.google.com/file/d/0B_wGto ... sp=sharing

    please add this for me as i seem to be doing it wrong. also when AMMO hits zero its still firing even after i had set it to destroy bullets

  • Just replace "Explosion Set to position (enemy)" with "Enemy->Spawn explosion on layer 1".

    In your "Mouse Left button is down" add another condition "Ammo>0"

    It's that simple.

  • but the blood isnt spawning around the enemy but instead in the same place over and over with each kill

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Did you replace "set position" with "spawn"? It should work!

    Also you might want to add "Explosion -> send to bottom of the layer"

  • ibb.co/b0ufOk

  • And? It isn't working?

    Try moving "spawn" action above "Enemy destroy", as on my screenshot.

  • nope. same. still just spawns in same place

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