So I have a special jump animation and I want it to be only accessible every 15 seconds, how do I make a cooldown for it? Also, please show the programming though an image, it’s hard for me to understand what you might try to explain.
Here’s how you make a cooldown:
It’s just a switch, that whenever something is inputted, the gate turns itself off (and you can’t input anymore), but also turns on a timer, which after a certain amount of time, turns the gate back on again. (not you can input again)
connect the “in” of the switch with however you want the special jump to be activated, and the “out” to however you are doing the super jump.
Import this code.
{"data":{"behavior":{"v":"2","nodes":[{"inputCount":2,"outputCount":1,"name":"Cooldown","behaviorType":"logic.NodeGroup","x":-270,"y":0,"group":"","id":"f1fa74bc4c708a4b","notes":"Inputs: \n\nTrigger: used to start the cooldown\nTime: udes to edit cooldown time","n_o":0,"isMenuItem":false},{"inputCount":0,"outputCount":1,"name":"Bundle Input","behaviorType":"logic.NodeGroupInput","x":-90,"y":-32,"group":"f1fa74bc4c708a4b","id":"f1faa611d18f0e41","portId":"f1fa74bc4c708a4bi0","tag":"Trigger","dataType":2},{"inputCount":0,"outputCount":1,"name":"Bundle Input","behaviorType":"logic.NodeGroupInput","x":-90,"y":96,"group":"f1fa74bc4c708a4b","id":"f1face9987302e4a","portId":"f1fa74bc4c708a4bi1","tag":"Time","dataType":2},{"delay":6,"count":1,"version":2,"inputCount":3,"outputCount":1,"name":"Timer","behaviorType":"logic.triggers.Timer","x":90,"y":64,"group":"f1fa74bc4c708a4b","id":"f1fd09fd510da945"},{"inputCount":3,"outputCount":1,"name":"Switch","behaviorType":"logic.logic.Switch","x":90,"y":-32,"group":"f1fa74bc4c708a4b","id":"f1fd09fddd6c6c44","_startVal":1,"dataType":2},{"inputCount":1,"outputCount":0,"name":"Bundle Output","behaviorType":"logic.NodeGroupOutput","x":270,"y":16,"group":"f1fa74bc4c708a4b","id":"f205b28018229342","portId":"f1fa74bc4c708a4bo0","tag":"Out","dataType":2}],"links":[{"input_id":"f1fd09fddd6c6c44i2","output_id":"f1faa611d18f0e41o0"},{"input_id":"f1fd09fd510da945i2","output_id":"f1face9987302e4ao0"},{"input_id":"f1fd09fddd6c6c44i1","output_id":"f1fd09fd510da945o0"},{"input_id":"f1fd09fddd6c6c44i0","output_id":"f1fd09fddd6c6c44o0"},{"input_id":"f205b28018229342i0","output_id":"f1fd09fddd6c6c44o0"},{"input_id":"f1fd09fd510da945i0","output_id":"f1fd09fddd6c6c44o0"}]}}}