I need to make a limited resource bar

In my game called 500 to go… the point is to get to the end and slay the evil chest.

so… what type of bar?
if you add more specific details it makes it easier to help.

yeah gimme a sec my bell rang so i had to get to next class

1 Like

1 Like

the problem is i want to make it so when you click the spacebar jet propel you from underneath I have that part down well but I need to make it stop when the bar runs out.

1 Like


i have 3 examples of bars in this game 1 go up, 1 go down, and 1 custom

1 Like

do you think i would add a switch?

1 Like

can u linck the game

1 Like

yeah

1 Like

yep. when filter is zero close the switch

1 Like

Done

1 Like

thank you so much i appreciate it

2 Likes

any time :grinning:. Do you want me to send you the code? it is easier to import

1 Like

yes please and ill ask under this chat if i have any further issues.

1 Like

{“data”:{“behavior”:{“v”:“2”,“nodes”:[{“inputCount”:0,“outputCount”:0,“name”:“Custom”,“behaviorType”:“logic.NodeGroup”,“x”:-540,“y”:416,“group”:"",“id”:“bf0dff70dd96a24d”,“isMenuItem”:false},{“inputCount”:0,“outputCount”:2,“name”:“Keyboard”,“behaviorType”:“logic.triggers.Keyboard”,“x”:-540,“y”:416,“group”:“bf0dff70dd96a24d”,“id”:“8187122b9bbd0d4d”,“keyCode”:32,“repeats”:true,“delay”:0},{“inputCount”:2,“outputCount”:1,“name”:“Emitter”,“behaviorType”:“logic.components.Emitter”,“x”:-90,“y”:320,“group”:“bf0dff70dd96a24d”,“id”:“818737c79976a641”,“entityClassId”:14955512,“maxAge”:60,“force”:10,“rotate”:false,“angle”:60,“independent”:false},{“inputCount”:3,“outputCount”:4,“name”:“SoundEffect”,“behaviorType”:“logic.components.SoundEffect”,“x”:-360,“y”:-32,“group”:“bf0dff70dd96a24d”,“id”:“8b21b08acb4dbd48”,“sound”:null,“loop”:true,“volume”:100,“url”:null,“soundName”:“dockknocking”,“soundURL”:"/music/loops/dockknocking.ogg.mp3"},{“inputCount”:3,“outputCount”:1,“name”:“Number”,“behaviorType”:“logic.logic.Value”,“x”:180,“y”:320,“group”:“bf0dff70dd96a24d”,“id”:“bed32d733a26ec4b”,“startVal”:-1,“tag”:"",“roundMode”:1},{“inputCount”:3,“outputCount”:1,“name”:“Number”,“behaviorType”:“logic.logic.Value”,“x”:360,“y”:352,“group”:“bf0dff70dd96a24d”,“id”:“bed33b81a5d8e349”,“startVal”:150,“tag”:"",“roundMode”:1},{“comp_x”:219,“comp_y”:52,“inputCount”:1,“outputCount”:1,“name”:“Bar”,“behaviorType”:“logic.hud.Bar”,“x”:540,“y”:288,“group”:“bf0dff70dd96a24d”,“id”:“befa896036b3fc4a”,“val”:150,“max”:150,“frameColor”:460294,“barColor”:1055399},{“comp_x”:127,“comp_y”:48,“inputCount”:4,“outputCount”:4,“name”:“Label”,“behaviorType”:“logic.hud.Label”,“x”:270,“y”:-96,“group”:“bf0dff70dd96a24d”,“id”:“befb1758d59eab49”,“text”:“Jet fuel”,“textColor”:1055399,“fontName”:“oduda”,“scale”:7,“borderStyle”:“None”,“borderSize”:0,“textAlign”:“left”,“maxWidth”:0,“version”:2},{“gateVal”:1,“mode”:“less than”,“inputCount”:2,“outputCount”:2,“name”:“Filter”,“behaviorType”:“logic.logic.Filter”,“x”:360,“y”:544,“group”:“bf0dff70dd96a24d”,“id”:“bf06df6d34a66142”},{“inputCount”:3,“outputCount”:1,“name”:“Switch”,“behaviorType”:“logic.logic.Switch”,“x”:-360,“y”:352,“group”:“bf0dff70dd96a24d”,“id”:“bf075cbc1d864c46”,"_startVal":1,“dataType”:2},{“inputCount”:5,“outputCount”:2,“name”:“Text”,“behaviorType”:“logic.data.TextBlock”,“x”:0,“y”:672,“group”:“bf0dff70dd96a24d”,“id”:“bf085b1e4d840b40”,“startVal”:“NO FUELL”},{“comp_x”:165,“comp_y”:108,“inputCount”:4,“outputCount”:4,“name”:“Label”,“behaviorType”:“logic.hud.Label”,“x”:270,“y”:736,“group”:“bf0dff70dd96a24d”,“id”:“bf089bef4682f540”,“text”:"",“textColor”:15992125,“fontName”:“oduda”,“scale”:14,“borderStyle”:“Outline”,“borderSize”:1,“textAlign”:“center”,“maxWidth”:0,“version”:2},{“inputCount”:5,“outputCount”:2,“name”:“Text”,“behaviorType”:“logic.data.TextBlock”,“x”:0,“y”:832,“group”:“bf0dff70dd96a24d”,“id”:“bf0911acae39fe44”,“startVal”:""},{“inputCount”:3,“outputCount”:1,“name”:“Switch”,“behaviorType”:“logic.logic.Switch”,“x”:-360,“y”:480,“group”:“bf0dff70dd96a24d”,“id”:“bf0943462ede9649”,"_startVal":0,“dataType”:2},{“delay”:10,“count”:1,“version”:2,“inputCount”:3,“outputCount”:1,“name”:“Timer”,“behaviorType”:“logic.triggers.Timer”,“x”:-180,“y”:800,“group”:“bf0dff70dd96a24d”,“id”:“bf0aa3a38c2a5840”}],“links”:[{“input_id”:“bf075cbc1d864c46i2”,“output_id”:“8187122b9bbd0d4do0”},{“input_id”:“bf0943462ede9649i2”,“output_id”:“8187122b9bbd0d4do0”},{“input_id”:“bed32d733a26ec4bi1”,“output_id”:“818737c79976a641o0”},{“input_id”:“bed33b81a5d8e349i2”,“output_id”:“bed32d733a26ec4bo0”},{“input_id”:“befa896036b3fc4ai0”,“output_id”:“bed33b81a5d8e349o0”},{“input_id”:“bf06df6d34a66142i0”,“output_id”:“bed33b81a5d8e349o0”},{“input_id”:“bf0943462ede9649i1”,“output_id”:“bf06df6d34a66142o0”},{“input_id”:“bf075cbc1d864c46i0”,“output_id”:“bf06df6d34a66142o0”},{“input_id”:“818737c79976a641i0”,“output_id”:“bf075cbc1d864c46o0”},{“input_id”:“bf089bef4682f540i0”,“output_id”:“bf085b1e4d840b40o0”},{“input_id”:“bf089bef4682f540i0”,“output_id”:“bf0911acae39fe44o0”},{“input_id”:“bf085b1e4d840b40i1”,“output_id”:“bf0943462ede9649o0”},{“input_id”:“bf0aa3a38c2a5840i0”,“output_id”:“bf0943462ede9649o0”},{“input_id”:“bf0911acae39fe44i1”,“output_id”:“bf0aa3a38c2a5840o0”}]}}}

1 Like

it wont import on my side

1 Like

{“inputCount”:0,“outputCount”:2,“name”:“Keyboard”,“behaviorType”:“logic.triggers.Keyboard”,“x”:-1710,“y”:224,“group”:“bf0dff70dd96a24d”,“id”:“8187122b9bbd0d4d”,“keyCode”:32,“repeats”:true,“delay”:0},{“inputCount”:2,“outputCount”:1,“name”:“Emitter”,“behaviorType”:“logic.components.Emitter”,“x”:-1260,“y”:128,“group”:“bf0dff70dd96a24d”,“id”:“818737c79976a641”,“entityClassId”:14955512,“maxAge”:60,“force”:10,“rotate”:false,“angle”:60,“independent”:false},{“inputCount”:3,“outputCount”:1,“name”:“Number”,“behaviorType”:“logic.logic.Value”,“x”:-990,“y”:128,“group”:“bf0dff70dd96a24d”,“id”:“bed32d733a26ec4b”,“startVal”:-1,“tag”:"",“roundMode”:1},{“inputCount”:3,“outputCount”:1,“name”:“Number”,“behaviorType”:“logic.logic.Value”,“x”:-810,“y”:160,“group”:“bf0dff70dd96a24d”,“id”:“bed33b81a5d8e349”,“startVal”:150,“tag”:"",“roundMode”:1},{“gateVal”:1,“mode”:“less than”,“inputCount”:2,“outputCount”:2,“name”:“Filter”,“behaviorType”:“logic.logic.Filter”,“x”:-810,“y”:352,“group”:“bf0dff70dd96a24d”,“id”:“bf06df6d34a66142”},{“inputCount”:3,“outputCount”:1,“name”:“Switch”,“behaviorType”:“logic.logic.Switch”,“x”:-1530,“y”:160,“group”:“bf0dff70dd96a24d”,“id”:“bf075cbc1d864c46”,"_startVal":1,“dataType”:2},{“inputCount”:5,“outputCount”:2,“name”:“Text”,“behaviorType”:“logic.data.TextBlock”,“x”:-1170,“y”:480,“group”:“bf0dff70dd96a24d”,“id”:“bf085b1e4d840b40”,“startVal”:“NO FUELL”},{“comp_x”:165,“comp_y”:108,“inputCount”:4,“outputCount”:4,“name”:“Label”,“behaviorType”:“logic.hud.Label”,“x”:-900,“y”:544,“group”:“bf0dff70dd96a24d”,“id”:“bf089bef4682f540”,“text”:"",“textColor”:15992125,“fontName”:“oduda”,“scale”:14,“borderStyle”:“Outline”,“borderSize”:1,“textAlign”:“center”,“maxWidth”:0,“version”:2},{“inputCount”:5,“outputCount”:2,“name”:“Text”,“behaviorType”:“logic.data.TextBlock”,“x”:-1170,“y”:640,“group”:“bf0dff70dd96a24d”,“id”:“bf0911acae39fe44”,“startVal”:""},{“inputCount”:3,“outputCount”:1,“name”:“Switch”,“behaviorType”:“logic.logic.Switch”,“x”:-1530,“y”:288,“group”:“bf0dff70dd96a24d”,“id”:“bf0943462ede9649”,"_startVal":0,“dataType”:2},{“delay”:10,“count”:1,“version”:2,“inputCount”:3,“outputCount”:1,“name”:“Timer”,“behaviorType”:“logic.triggers.Timer”,“x”:-1350,“y”:608,“group”:“bf0dff70dd96a24d”,“id”:“bf0aa3a38c2a5840”},{“comp_x”:219,“comp_y”:52,“inputCount”:1,“outputCount”:1,“name”:“Bar”,“behaviorType”:“logic.hud.Bar”,“x”:-630,“y”:96,“group”:“bf0dff70dd96a24d”,“id”:“befa896036b3fc4a”,“val”:150,“max”:150,“frameColor”:460294,“barColor”:1055399}],“links”:[{“input_id”:“bf075cbc1d864c46i2”,“output_id”:“8187122b9bbd0d4do0”},{“input_id”:“bf0943462ede9649i2”,“output_id”:“8187122b9bbd0d4do0”},{“input_id”:“818737c79976a641i0”,“output_id”:“bf075cbc1d864c46o0”},{“input_id”:“bed32d733a26ec4bi1”,“output_id”:“818737c79976a641o0”},{“input_id”:“bed32d733a26ec4bi1”,“output_id”:“818737c79976a641o0”},{“input_id”:“bed33b81a5d8e349i2”,“output_id”:“bed32d733a26ec4bo0”},{“input_id”:“bed33b81a5d8e349i2”,“output_id”:“bed32d733a26ec4bo0”},{“input_id”:“befa896036b3fc4ai0”,“output_id”:“bed33b81a5d8e349o0”},{“input_id”:“bf06df6d34a66142i0”,“output_id”:“bed33b81a5d8e349o0”},{“input_id”:“bf06df6d34a66142i0”,“output_id”:“bed33b81a5d8e349o0”},{“input_id”:“bf0943462ede9649i1”,“output_id”:“bf06df6d34a66142o0”},{“input_id”:“bf075cbc1d864c46i0”,“output_id”:“bf06df6d34a66142o0”},{“input_id”:“bf075cbc1d864c46i0”,“output_id”:“bf06df6d34a66142o0”},{“input_id”:“818737c79976a641i0”,“output_id”:“bf075cbc1d864c46o0”},{“input_id”:“bf085b1e4d840b40i1”,“output_id”:“bf0943462ede9649o0”},{“input_id”:“bf089bef4682f540i0”,“output_id”:“bf085b1e4d840b40o0”},{“input_id”:“bf089bef4682f540i0”,“output_id”:“bf085b1e4d840b40o0”},{“input_id”:“bf089bef4682f540i0”,“output_id”:“bf0911acae39fe44o0”},{“input_id”:“bf0911acae39fe44i1”,“output_id”:“bf0aa3a38c2a5840o0”},{“input_id”:“bf089bef4682f540i0”,“output_id”:“bf0911acae39fe44o0”},{“input_id”:“bf0943462ede9649i1”,“output_id”:“bf06df6d34a66142o0”},{“input_id”:“bf085b1e4d840b40i1”,“output_id”:“bf0943462ede9649o0”},{“input_id”:“bf0aa3a38c2a5840i0”,“output_id”:“bf0943462ede9649o0”},{“input_id”:“bf0aa3a38c2a5840i0”,“output_id”:“bf0943462ede9649o0”},{“input_id”:“bf0911acae39fe44i1”,“output_id”:“bf0aa3a38c2a5840o0”},{“input_id”:“befa896036b3fc4ai0”,“output_id”:“bed33b81a5d8e349o0”}

1 Like

I think ill just try to mimic it from the photo you took thanks anyway

2 Likes

to properly import code you have to click this
image

and that will make it importable
3 Likes

@adonisaru can you help me with my game? I changed the fuego to a shield that stays for a limited time but it needs to go away if it hits a spike or the chest and after set time. It also needs to only spawn one at a time. I tried to get somewhere but I can’t get it quite the way it should function please help. :pray: :slightly_smiling_face:

1 Like