How do I make a burst shooting

0 favourites
  • 4 posts
From the Asset Store
Shoot balls to destroy as many blocks as possible, at each stage the game will become more difficult.
  • I want to make burst shooting.

    For example, if I click on mouse's left button 1 time, there will be created a 3 bullet.

    How can I do it?

  • Hallo NeronSparda,

    you can use the 'Repeat' Condition to create more bullets with one click. But when all bullets have the exact same direction, they overlap each other and it looks like one bullet. If you want to shoot multiple bullets one after another with a short delay, you can make it like this:

    + Mouse: On Left button Clicked
    ----+ System: Repeat 5 times
    -----> System: Wait LoopIndex ÷ 10 seconds
    -----> player: Spawn bullet on layer 0 (image point 1)
    [/code:1fc37b1e]
  • Hallo NeronSparda,

    you can use the 'Repeat' Condition to create more bullets with one click. But when all bullets have the exact same direction, they overlap each other and it looks like one bullet. If you want to shoot multiple bullets one after another with a short delay, you can make it like this:

    > + Mouse: On Left button Clicked
    ----+ System: Repeat 5 times
    -----> System: Wait LoopIndex ÷ 10 seconds
    -----> player: Spawn bullet on layer 0 (image point 1)
    [/code:bi17ytlc]
    

    Thanks, It works!

    I've tried to make it without "loopindex" and it didn't work.

    But now - all is great! Thank you very much!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I usually prefer using a timer for the gun/player object. It's better to config and evolve (if want to evolve the weapon and make the burst longer or faster).

    Here's an example I made using the Ghost Shooter template.

    https://www.dropbox.com/s/xulbpzmkkgc0r ... .capx?dl=1

    Use asdw or the arrows to move, mouse to aim, shoot with left click and burst with right click.

    Hope this helps. Cheers!

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