How to make reloading?

Yeah looking for some examples couldnt fina any

Reloading? Like for a gun? Or manually reloading a level?

Like for a gun pew pew

Set the ammo back to it’s original whensomething is pressed?

2 Likes

@JR01 summoning (I know for sure he has an example on this)


You might as well @ me, it’s really simple code and I’m more active than JR

1 Like

ok thanks @CodeAlpaca

1 Like

Um the picture is kinda confusing dont know where things are going

1 Like

is it ok fi you make it again to i could check in the real game??

1 Like

Here’s the importable for it.

Importable

{“data”:{“behavior”:{“v”:“2”,“nodes”:[{“inputCount”:3,“outputCount”:1,“name”:“Number”,“behaviorType”:“logic.logic.Value”,“x”:-1260,“y”:-96,“group”:"",“id”:“42ff122790087d4b”,“startVal”:10,“tag”:“Ammo”,“roundMode”:1},{“inputCount”:3,“outputCount”:1,“name”:“Number”,“behaviorType”:“logic.logic.Value”,“x”:-1440,“y”:-96,“group”:"",“id”:“42ff131d5efa6e44”,“startVal”:-1,“tag”:“Shooting”,“roundMode”:1},{“inputCount”:3,“outputCount”:1,“name”:“Switch”,“behaviorType”:“logic.logic.Switch”,“x”:-1620,“y”:-96,“group”:"",“id”:“42ff1675ce144b4c”,"_startVal":1,“dataType”:2},{“gateVal”:0,“mode”:“equal to”,“inputCount”:2,“outputCount”:2,“name”:“Filter”,“behaviorType”:“logic.logic.Filter”,“x”:-1080,“y”:-96,“group”:"",“id”:“42ff7673b6a00f4d”,“notes”:“Empty on ammo?”,“n_o”:1},{“delay”:10,“count”:1,“version”:2,“inputCount”:3,“outputCount”:1,“name”:“Timer”,“behaviorType”:“logic.triggers.Timer”,“x”:-1440,“y”:32,“group”:"",“id”:“42ffd23e8f8afe4b”,“notes”:“Reloading Delay”,“n_o”:1},{“inputCount”:3,“outputCount”:1,“name”:“Number”,“behaviorType”:“logic.logic.Value”,“x”:-1260,“y”:32,“group”:"",“id”:“42ffdf2f63f6c74c”,“startVal”:10,“tag”:“Reset Ammo”,“roundMode”:1}],“links”:[{“input_id”:“42ff122790087d4bi0”,“output_id”:“42ffdf2f63f6c74co0”},{“input_id”:“42ff122790087d4bi2”,“output_id”:“42ff131d5efa6e44o0”},{“input_id”:“42ff7673b6a00f4di0”,“output_id”:“42ff122790087d4bo0”},{“input_id”:“42ff131d5efa6e44i1”,“output_id”:“42ff1675ce144b4co0”},{“input_id”:“42ff1675ce144b4ci0”,“output_id”:“42ff7673b6a00f4do0”},{“input_id”:“42ff1675ce144b4ci1”,“output_id”:“42ffd23e8f8afe4bo0”},{“input_id”:“42ff131d5efa6e44i1”,“output_id”:“42ff1675ce144b4co0”},{“input_id”:“42ff1675ce144b4ci0”,“output_id”:“42ff7673b6a00f4do0”},{“input_id”:“42ffd23e8f8afe4bi0”,“output_id”:“42ff7673b6a00f4do0”},{“input_id”:“42ffd23e8f8afe4bi0”,“output_id”:“42ff7673b6a00f4do0”},{“input_id”:“42ff1675ce144b4ci1”,“output_id”:“42ffd23e8f8afe4bo0”},{“input_id”:“42ffdf2f63f6c74ci1”,“output_id”:“42ffd23e8f8afe4bo0”},{“input_id”:“42ffdf2f63f6c74ci1”,“output_id”:“42ffd23e8f8afe4bo0”}]}}}

If it doesn’t work look in the “Music” object Flowlab Game Creator - Alpaca Raceway and you’ll find the code

2 Likes

I’ve been very busy for the past couple weeks, hopefully after next week I’ll be back on daily again.

But as well, i have a bundle for much more customization for reloading.

Flowlab Game Creator - Gun Example

2 Likes