How do I make multiple bullet sprites shoot out the same gun

  • I need to have each bullet sprite shoot out the same gun on a power-up pick up

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Can you add some more information please?

  • You can have a function called shoot, and on it copy paste the spawn bullet action like 3-5 times, this will make the gun to shot 3-5 bullet at once, you can also set them at different image points so it will look like shotgun.

    Then you just need to restrict the function to be used only on power up pickup with a variable, lets say when you pick up the variable you set variable called power_up to 1, and then in the function add another condition power_up == 1.

  • Just set the bullet sprite frames lets call frames (f)

    On normal set bullet to shoot f0 on power up 1 set bullet spire to show f1

    So voor every power up you have you can get a diffrent bullet

    So on pick up power up

    Set bullet frame to bullet you whant also you can edit the dmg and speed diffrent voor each power up pick up.

    Its easy to do in your event sheet and also on your bullet sprite

    Just first add all different bullets to your bullet sprite set them in the frame every frame 1 bullet

    And write witch one is on witch frame then make 1event in your event sheet copy paste it So if you have on bullets so 9 bullets 9 events total and then edit the power up objects and the bullet frames and if you have dmg and speed settings you can edit them to and your done easy i think its faster done then writhing this poste 😀

    Hope that helps you

  • you can watch my video on how i quickly got different bullets to shoot out of the same tank when the tank pick up a power up here

    Subscribe to Construct videos now

    for a beter and basic understanding of arrays watch jerementors video here

    https://youtu.be/Us6aTgpreQ4

  • Thank you so much for the video. Now how would I make bullet 2 do -2 to enemy health and bullet 3 to do -3 to enemy health and so on and so fourth?

    So how do I control each bullets Damage ?? A video or picture of an event sheet would be Great! Since I am new to this. Thanks Again

  • spartan05 thank for your comment on my previus video.

    here is a video on the second question.

    lucky i still had the demo.capx on how to shoot different bullets.

    so this was made fast xd

    hope it helps you.

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