How do I spawn bullets, change directions and splat blood

  • Hi,

    • So I am trying my best to firstly make the bullet spawn on a layer or z order under the player and enemy but it does not work when I do this? Am I doing something wrong here?
    • What code do I use to make the blood splatter using animations e.g. when a bullet collides with myself from the enemy.
    • How I do I spawn bullets coming out from both sides on a straight line?
    • bullet on created - bullet move to bottom
    • Bullet on collision with player - Bullet spawn animation bloodspatter
    • If you set the bullet angle to 180 it will go left, angle 0 it will go right..
    • bullet on created - bullet move to bottom = Working thanks!
    • Bullet on collision with player - Bullet spawn animation bloodspatter = How do I defy as specific animation as all I can see is how to do it using frames?
    • If you set the bullet angle to 180 it will go left, angle 0 it will go right = Tried this did'nt work it only shoots out at one angle at a time, how would I do it so it shoots from both 0 and 180 degrees at the same time?
  • Third point - you create two actions... one bullet going one way, one the other.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I did that, it did not work?

  • When you say two actions you mean events?

  • - bullet on created - bullet move to bottom = Working thanks!

    np

    - Bullet on collision with player - Bullet spawn animation bloodspatter = How do I defy as specific animation as all I can see is how to do it using frames?

    add frames to create an animation.

    Add another animation through the animation dialog.

    repeat.

    - If you set the bullet angle to 180 it will go left, angle 0 it will go right = Tried this did'nt work it only shoots out at one angle at a time, how would I do it so it shoots from both 0 and 180 degrees at the same time?

    one bullet can only go one direction, solution?

    Create two bullets, set one to go one direction and the other to go another direction.

  • Ok so everything has been solved apart from: animation dialog where do I find this? Looked everywhere?

  • make sure your first action when bullet hits the character , it is not bullet>destroy that should be the last under spawnBlood <set bullet angle of motion 180 spawnblood set bullet angle of motion 0 then comes bullet destroy, C2 reads all events and condition from top to bottom, if you place bullet to be destroyed first then the rest of actions wont take place cause the bullet actor wont be in the screen anymore!

    here is a blood splatter with bullet behavior Download

    here is a blood splatter with physics Download

  • Ok thanks think I have got it now.

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