Simple Fighting & Survival Game Pack

While I was editing games, the “Timer” behavior was kinda annoying when I tried to change its value timer for the cooldown, and here’s what I get:


And yes just for a FREAKING ANIMATION:
Screenshot 2024-06-05 9.47.41 AM
It’s also very annoying when your game has an item to decrease cooldown so I’m here for the Cooldown Pack. “But you just need a ‘Timer’ with a ‘Switch’ to do that. Besides…” “bonk”. This Cooldown Pack not only works like a normal “Timer” (because it uses “Timer”… lol), you can also intervene to edit its specific Cooldown time while running the game and change its Cooldown time.

What does the code look like?

Screenshot 2024-06-05 9.49.36 AM
There’s still more my friend:


(the “Timer” at the right is set to 0 delay, based 1/10th of a second).

Cooldown Pack's Code
{"data":{"behavior":{"v":"2","nodes":[{"inputCount":0,"outputCount":2,"name":"Keyboard","behaviorType":"logic.triggers.Keyboard","x":-360,"y":-256,"group":"","id":"e8b1469109b41f4f","keyCode":81},{"inputCount":1,"outputCount":0,"name":"Number Cooldown","behaviorType":"logic.NodeGroup","x":-180,"y":-256,"group":"","id":"e8b6528948fe7741","isMenuItem":false},{"delay":10,"count":0,"version":2,"inputCount":3,"outputCount":1,"name":"Timer","behaviorType":"logic.triggers.Timer","x":-270,"y":-512,"group":"e8b6528948fe7741","id":"e8b5f426027ee144"},{"inputCount":0,"outputCount":1,"name":"Bundle Input","behaviorType":"logic.NodeGroupInput","x":-270,"y":-400,"group":"e8b6528948fe7741","id":"e8b7645fa54e9a45","portId":"e8b6528948fe7741i0","tag":"Start","dataType":2},{"inputCount":3,"outputCount":1,"name":"Switch","behaviorType":"logic.logic.Switch","x":-90,"y":-496,"group":"e8b6528948fe7741","id":"e8b7a7427575d347","_startVal":0,"dataType":2},{"inputCount":3,"outputCount":1,"name":"Number","behaviorType":"logic.logic.Value","x":270,"y":-496,"group":"e8b6528948fe7741","id":"e8b7c713d72e144e","startVal":5,"tag":"","roundMode":1},{"inputCount":3,"outputCount":1,"name":"Number","behaviorType":"logic.logic.Value","x":90,"y":-496,"group":"e8b6528948fe7741","id":"e8b7e3ade680094b","startVal":-1,"tag":"","roundMode":1},{"gateVal":0,"mode":"equal to","inputCount":2,"outputCount":2,"name":"Filter","behaviorType":"logic.logic.Filter2","x":450,"y":-496,"group":"e8b6528948fe7741","id":"e8b84ff27cf9c249"},{"inputCount":5,"outputCount":2,"name":"Text","behaviorType":"logic.data.TextBlock","x":450,"y":-752,"group":"e8b6528948fe7741","id":"e8b8fb7b0c8fd441","startVal":""},{"inputCount":4,"outputCount":4,"name":"Label","behaviorType":"logic.hud.Label2","x":720,"y":-720,"group":"e8b6528948fe7741","id":"e8b90f5911df254c","text":"","textColor":16777215,"fontName":"04b09","scale":5,"textAlign":"center","maxWidth":0,"xO":0,"yO":-8,"pin":true,"alpha":100,"kerning":0},{"inputCount":5,"outputCount":2,"name":"Text","behaviorType":"logic.data.TextBlock","x":630,"y":-608,"group":"e8b6528948fe7741","id":"e8bae4e7e18d844b","startVal":""},{"delay":0,"count":1,"version":2,"inputCount":3,"outputCount":1,"name":"Timer","behaviorType":"logic.triggers.Timer","x":450,"y":-608,"group":"e8b6528948fe7741","id":"e8bb5509da357245"},{"inputCount":3,"outputCount":1,"name":"Number","behaviorType":"logic.logic.Value","x":450,"y":-368,"group":"e8b6528948fe7741","id":"e8bc7e89fe6de249","startVal":5,"tag":"","roundMode":1}],"links":[{"input_id":"e8b6528948fe7741i0","output_id":"e8b1469109b41f4fo0"},{"input_id":"e8b6528948fe7741i0","output_id":"e8b1469109b41f4fo0"},{"input_id":"e8b7a7427575d347i2","output_id":"e8b5f426027ee144o0"},{"input_id":"e8b7a7427575d347i1","output_id":"e8b7645fa54e9a45o0"},{"input_id":"e8b7e3ade680094bi1","output_id":"e8b7a7427575d347o0"},{"input_id":"e8b8fb7b0c8fd441i0","output_id":"e8b7c713d72e144eo0"},{"input_id":"e8b8fb7b0c8fd441i1","output_id":"e8b7c713d72e144eo0"},{"input_id":"e8b84ff27cf9c249i1","output_id":"e8b7c713d72e144eo0"},{"input_id":"e8b7c713d72e144ei2","output_id":"e8b7e3ade680094bo0"},{"input_id":"e8bb5509da357245i0","output_id":"e8b84ff27cf9c249o0"},{"input_id":"e8b7a7427575d347i0","output_id":"e8b84ff27cf9c249o0"},{"input_id":"e8bc7e89fe6de249i1","output_id":"e8b84ff27cf9c249o0"},{"input_id":"e8b90f5911df254ci0","output_id":"e8b8fb7b0c8fd441o0"},{"input_id":"e8b90f5911df254ci0","output_id":"e8bae4e7e18d844bo0"},{"input_id":"e8bae4e7e18d844bi1","output_id":"e8bb5509da357245o0"},{"input_id":"e8b7c713d72e144ei0","output_id":"e8bc7e89fe6de249o0"}]}}}

Now, I want to ask you a question. Did you realize that some kind of Fighting game has critical DMG? The next code will be good if you want to add it to your game, “Critical DMG Pack”. This pack will add a chance to you to cause a critical DMG on your enemies and you can also change its value to the chance to cause critical DMG on your enemies. It can also increase the critical DMG by itself when you upgrade the DMG of your weapon. And don’t worry, this pack can work on any enemies with any HP value.

What does the code look like?


Counting DMG:

Critical Value:

Critical DMG Pack's Code
{"data":{"behavior":{"v":"2","nodes":[{"inputCount":1,"outputCount":1,"name":"DMG Value","behaviorType":"logic.NodeGroup","x":-90,"y":-128,"group":"e601dfd4bbb11e48","id":"e601cded11ab8640","isMenuItem":false},{"inputCount":3,"outputCount":1,"name":"Switch","behaviorType":"logic.logic.Switch","x":0,"y":0,"group":"e601cdef4119d646","id":"e601cded69929345","_startVal":0,"dataType":2},{"inputCount":3,"outputCount":1,"name":"Random","behaviorType":"logic.logic.Random","x":-360,"y":0,"group":"e601cdef4119d646","id":"e601cdeeecb5e448","min":0,"max":5},{"gateVal":5,"mode":"equal to","inputCount":2,"outputCount":2,"name":"Filter","behaviorType":"logic.logic.Filter2","x":-180,"y":0,"group":"e601cdef4119d646","id":"e601cdeefd451746"},{"inputCount":0,"outputCount":1,"name":"Bundle Input","behaviorType":"logic.NodeGroupInput","x":-540,"y":-16,"group":"e601cdef4119d646","id":"e601cdee65098344","portId":"e601cdef4119d646i0","tag":"Value","dataType":2},{"inputCount":1,"outputCount":0,"name":"Bundle Output","behaviorType":"logic.NodeGroupOutput","x":180,"y":-96,"group":"e601cdef4119d646","id":"e601cdef4d3ba245","portId":"e601cdef4119d646o0","tag":"DMG","dataType":2},{"inputCount":3,"outputCount":1,"name":"Number","behaviorType":"logic.logic.Value","x":-270,"y":-176,"group":"e601cdef4119d646","id":"e8f11dd1d206354e","startVal":0,"tag":"","roundMode":1},{"inputCount":3,"outputCount":1,"name":"Number","behaviorType":"logic.logic.Value","x":-540,"y":64,"group":"e601cdef4119d646","id":"e8f630a55dea0645","startVal":0,"tag":"","roundMode":1},{"inputCount":3,"outputCount":1,"name":"Number","behaviorType":"logic.logic.Value","x":-720,"y":64,"group":"e601cdef4119d646","id":"e8f647cb11b99044","startVal":1,"tag":"","roundMode":1},{"expression":"A/2","default0":0,"default1":0,"default2":0,"default3":0,"default4":0,"default5":0,"params":1,"version":2,"tag":"","inputCount":2,"outputCount":1,"name":"Expression","behaviorType":"logic.logic.Expression","x":0,"y":-112,"group":"e601cdef4119d646","id":"e8f6df607b695a49","notes":"Reduce/Increase Critical DMG can cause.","n_o":1},{"inputCount":0,"outputCount":1,"name":"Mailbox","behaviorType":"logic.components.Mailbox","x":-900,"y":64,"group":"e601cdef4119d646","id":"e8f8c96940df7349","notes":"Increase Critical Percent","n_o":1,"msg":"ICP"},{"inputCount":1,"outputCount":1,"name":"Critical","behaviorType":"logic.NodeGroup","x":-180,"y":128,"group":"e601cded11ab8640","id":"e601cdef4119d646","isMenuItem":false},{"inputCount":1,"outputCount":0,"name":"Bundle Output","behaviorType":"logic.NodeGroupOutput","x":180,"y":240,"group":"e601cded11ab8640","id":"e601cdefe926e441","portId":"e601cded11ab8640o0","tag":"DMG","dataType":2},{"inputCount":0,"outputCount":1,"name":"Bundle Input","behaviorType":"logic.NodeGroupInput","x":-360,"y":48,"group":"e601cded11ab8640","id":"e601cdefbe42274f","portId":"e601cded11ab8640i0","tag":"Value","dataType":2},{"inputCount":3,"outputCount":1,"name":"Number","behaviorType":"logic.logic.Value","x":0,"y":16,"group":"e601cded11ab8640","id":"e627536099d7e046","startVal":0,"tag":"","roundMode":1},{"expression":"A-A","default0":0,"default1":0,"default2":0,"default3":0,"default4":0,"default5":0,"params":1,"version":2,"tag":"","inputCount":2,"outputCount":1,"name":"Expression","behaviorType":"logic.logic.Expression","x":360,"y":80,"group":"e601cded11ab8640","id":"e627b2d45e6f0d45","notes":"Reset DMG to avoid bugs.","n_o":1},{"delay":1,"count":1,"version":2,"inputCount":3,"outputCount":1,"name":"Timer","behaviorType":"logic.triggers.Timer","x":180,"y":112,"group":"e601cded11ab8640","id":"e627dc537a417b47","notes":"Delay = 1","n_o":1}],"links":[{"input_id":"e8f6df607b695a49i1","output_id":"e601cded69929345o0"},{"input_id":"e601cded69929345i0","output_id":"e601cded69929345o0"},{"input_id":"e601cdeefd451746i1","output_id":"e601cdeeecb5e448o0"},{"input_id":"e601cded69929345i1","output_id":"e601cdeefd451746o0"},{"input_id":"e601cded69929345i2","output_id":"e601cdeefd451746o0"},{"input_id":"e8f6df607b695a49i0","output_id":"e601cdee65098344o0"},{"input_id":"e601cdeeecb5e448i0","output_id":"e601cdee65098344o0"},{"input_id":"e601cdeeecb5e448i1","output_id":"e8f630a55dea0645o0"},{"input_id":"e8f630a55dea0645i2","output_id":"e8f647cb11b99044o0"},{"input_id":"e601cdef4d3ba245i0","output_id":"e8f6df607b695a49o0"},{"input_id":"e8f647cb11b99044i1","output_id":"e8f8c96940df7349o0"},{"input_id":"e627536099d7e046i2","output_id":"e601cdef4119d646o0"},{"input_id":"e627536099d7e046i2","output_id":"e601cdefbe42274fo0"},{"input_id":"e601cdef4119d646i0","output_id":"e601cdefbe42274fo0"},{"input_id":"e627b2d45e6f0d45i0","output_id":"e627536099d7e046o0"},{"input_id":"e627dc537a417b47i0","output_id":"e627536099d7e046o0"},{"input_id":"e601cdefe926e441i0","output_id":"e627536099d7e046o0"},{"input_id":"e627536099d7e046i0","output_id":"e627b2d45e6f0d45o0"},{"input_id":"e627b2d45e6f0d45i1","output_id":"e627dc537a417b47o0"}]}}}

Once we talk about critical DMG, why also not mention the DMG display, right? This last pack will display the DMG that we cause on enemies and yeah, that’s all (like the Critical DMG Pack, it can also be used on any enemies with any HP value).

What does the code look like?

Screenshot 2024-06-05 10.32.13 AM
Display DMG & HP
Screenshot 2024-06-05 10.35.05 AM

DMG Display Pack's Code
{"data":{"behavior":{"v":"2","nodes":[{"inputCount":2,"outputCount":0,"name":"Counting","behaviorType":"logic.NodeGroup","x":270,"y":-128,"group":"e601dfd4bbb11e48","id":"e604357a8432e049","notes":"Wire the DMG player cause to the \"Value\".\nWire the HP of the enemy to the \"HP\".","n_o":1,"isMenuItem":false},{"inputCount":4,"outputCount":4,"name":"Label","behaviorType":"logic.hud.Label2","x":540,"y":256,"group":"e604357a8432e049","id":"e604357c1ae05c49","text":"","textColor":16711748,"fontName":"digital7","scale":5,"textAlign":"center","maxWidth":0,"xO":-24,"yO":-7,"pin":true,"alpha":100,"kerning":0},{"inputCount":5,"outputCount":2,"name":"Text","behaviorType":"logic.data.TextBlock","x":360,"y":144,"group":"e604357a8432e049","id":"e604357c0cdaa24c","startVal":""},{"delay":10,"count":1,"version":2,"inputCount":3,"outputCount":1,"name":"Timer","behaviorType":"logic.triggers.Timer","x":180,"y":208,"group":"e604357a8432e049","id":"e604357c10512c47","notes":"Delay = 10","n_o":1},{"inputCount":5,"outputCount":2,"name":"Text","behaviorType":"logic.data.TextBlock","x":180,"y":16,"group":"e604357a8432e049","id":"e604357c1598b44a","startVal":""},{"inputCount":4,"outputCount":4,"name":"Label","behaviorType":"logic.hud.Label2","x":360,"y":32,"group":"e604357a8432e049","id":"e604357ccda18746","text":"","textColor":16711748,"fontName":"digital7","scale":7,"textAlign":"center","maxWidth":0,"xO":2,"yO":-37,"pin":true,"alpha":100,"kerning":0},{"inputCount":0,"outputCount":1,"name":"Bundle Input","behaviorType":"logic.NodeGroupInput","x":0,"y":144,"group":"e604357a8432e049","id":"e604357e0aad4342","portId":"e604357a8432e049i0","tag":"Value","dataType":2},{"inputCount":5,"outputCount":2,"name":"Text","behaviorType":"logic.data.TextBlock","x":360,"y":288,"group":"e604357a8432e049","id":"e606a0a0e6d24148","startVal":""},{"inputCount":0,"outputCount":1,"name":"Bundle Input","behaviorType":"logic.NodeGroupInput","x":0,"y":16,"group":"e604357a8432e049","id":"e6165fe60deff346","portId":"e604357a8432e049i1","tag":"HP","dataType":2}],"links":[{"input_id":"e604357c1ae05c49i0","output_id":"e604357c0cdaa24co0"},{"input_id":"e606a0a0e6d24148i1","output_id":"e604357c10512c47o0"},{"input_id":"e604357ccda18746i0","output_id":"e604357c1598b44ao0"},{"input_id":"e604357c0cdaa24ci0","output_id":"e604357e0aad4342o0"},{"input_id":"e604357c0cdaa24ci1","output_id":"e604357e0aad4342o0"},{"input_id":"e604357c10512c47i0","output_id":"e604357e0aad4342o0"},{"input_id":"e604357c1ae05c49i0","output_id":"e606a0a0e6d24148o0"},{"input_id":"e604357c1598b44ai0","output_id":"e6165fe60deff346o0"},{"input_id":"e604357c1598b44ai1","output_id":"e6165fe60deff346o0"}]}}}

That’s all for my simple pack code. Thanks for spending time reading this post and have a great day with a Great SUMMER!

1 Like

There’s also the Delay input as well you could try out.
Seems like you pretty much built a frame time with a bit extra, I used them pretty often as well.

Well, the Cooldown Pack is usually for the game that has some items can reduce or increase cooldown so that’s why I made that pack.