single shots??

DookiDooki Member Posts: 247
edited November -1 in Working with GS (Mac)
hey there,

I have a cannon shooting two shots at a time. How do I make it shoot one per click of the spacebar?

Cannon settings:
-Space bar fires
- Spawn actor=position 75/-5
- Group:Timer= .1 sec sub attribute: Spawn actor=75/-5

Cannon settings:
-Move= direction "0" Speed 500
- Collide= with tag actor

What am I missing? Thanks!

-Dooki

Comments

  • PhoticsPhotics Member Posts: 4,172
    It looks like you have a timer on there. It seems like the second part is auto-fire. If you only want to fire one shot at a time, then you don't need the auto-fire group.

    Basically... it looks like you're spawning a bullet when the key is pressed and then one for every 1/10 of a second the space bar is pressed.
  • DookiDooki Member Posts: 247
    Thank you, Thank you, Thank you!

    -Dooki
  • quantumsheepquantumsheep Member Posts: 8,188
    I can't be the only one that insists on doubles?

    Ok, sorry - that's the last 'inebriated' reference I make...

    *snores

    Dr. Sam Beckett never returned home...
    Twitter: https://twitter.com/Quantum_Sheep
    Web: https://quantumsheep.itch.io

Sign In or Register to comment.