So in my Slap Battles Game, I have this shadow glove, and when you equip it (press a button to equip) it gives you this perk where every time you knock out another player, your speed increases by 0.25 every time.
BUT
If you get knocked out,
your speed will reset to the default speed.
Does anyone know if this is possible?
If so,
can you help me create this feature?
Thanks!
Have a K.O. manager checking for every knockout and have it connect to a trigger and a counter(+1). Have the trigger check the counter’s number(use a property) and then based on the number of the counter, broadcast on some channel such that: Trigger → Speed Modifier(with 0.25x + 1 speed, where x is the number of the counter).
Then have the K.O. manager check when the player is knocked out and have it reset the counter, and then the trigger will do what it always does: Trigger → Speed Modifier(0.25x + 1 speed, x=0 means: 0 + 1 = 1).
I hope this helps! Let me know if you didn’t understand something.
could you do it in pictures please?
sorry im just a visual learner
;-;
Sure.
Here it is:
K.O. Manager settings:
Block code for the K.O. Manager
The property:
Speed modifiers:
And they continue to increase with the same trend of +0.25.
What it’ll look like:
If you right click certain block code and then click on ‘external inputs’, it’ll make them look like mine.