Zum Hauptinhalt gehen

Suche

How do I show something being "counted down" on screen, like bullets depleting from a gun?

  • Aecert

    Literally just hook up a controller button to a counter, and hook up the counters current value to the number displayer. Once the counter hits 0, reset a reload timer and once that reload timer completes, reset the counter to max.

  • mmdev7

    I would set a counters max limit to 30, and increment the counter every time a bullet is emmitted.

    This would count up to 30 though so I would add a maths gadget and wire the max value of the counter into the top input on the maths gadget and the current value on the counter into the bottom input. Then set the maths gadget to subtract.

    Wire this into the number displayer and you should be good.

    Also remember to wire the counter complete output back into the counters reset input to reset once you have run out of bullets.


    Hope this is helpful - Peter

  • Flyux

    As completely bonkers as it sounds, your trick worked, Peter. I had a little trouble but I got it working. All I need to do now is add in sound effects and other things, which should be straightforward. Thank you!

  • peejmaybe

    I was wondering whether you could start a counter with a 'current number of' value set, then use a calculator set to whatever your 'trigger' is to just 'minus' something from the counter every time? Probably more long winded than Peter's suggestion but ended up needing something similar so I'll give it a go

  • peejmaybe

    I too got this working, but ended up using a signal manipulator to remove counts from my counter, then when the counter hits Zero, using a button to reload / reset the counter. Nice to have something like this in a shooter to make things a bit more tense.

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.