I am making a rubik's cube timer

how do i save the timer’s numbers onto a label?

1 Like

Number wires can connect to the text input of a label, so you should be able to just do it directly. Or is it something more specific?

it needs to be the exact time when it is stopped. heres a link https://flowlab.io/games/play/2089887

1 Like

You’re doing it the hard way.


You only need a single bundle. Not three objects. It’s REALLY simple. I’ll get a screenshot.

I’m about to say br-. YOU ONLY NEED A FEW BEHAVIORS!


I didn’t even know you could do this.

Don’t make so many timers. You only need one, which is the millisecond timer. Then it just adds to the other labels.

I am done now. Here are the screenshots. I used three bundles and one object.

Millisecond bundle

Seconds bundle

Minutes bundle

This is the simplest solution I know of.

@gabril

it didnt work… did i do something wrong? when i hit the spacebar the second time, it doesn’t pause like normal. https://flowlab.io/game/edit/2089887

1 Like

next time, Ember, include code, because I know screenshots are really annoying to work off of.

Is this around what you want? https://flowlab.io/game/view/2354438

{"data":{"behavior":{"v":"2","nodes":[{"inputCount":0,"outputCount":0,"name":"Timer","behaviorType":"logic.NodeGroup","x":0,"y":-96,"group":"","id":"c7637efa629fc349","isMenuItem":false},{"inputCount":0,"outputCount":2,"name":"Keyboard","behaviorType":"logic.triggers.Keyboard","x":-360,"y":-32,"group":"c7637efa629fc349","id":"c7637efa9defe34b","keyCode":32},{"inputCount":2,"outputCount":2,"name":"Toggle","behaviorType":"logic.logic.FlipFlop","x":-180,"y":-32,"group":"c7637efa629fc349","id":"c7637efa7bdc1043","loop":true,"initialState":0},{"inputCount":3,"outputCount":1,"name":"Number","behaviorType":"logic.logic.Value","x":0,"y":32,"group":"c7637efa629fc349","id":"c7637efac6cd9549","notes":"Start","n_o":1,"startVal":0,"tag":"","roundMode":1},{"inputCount":3,"outputCount":1,"name":"Number","behaviorType":"logic.logic.Value","x":0,"y":-128,"group":"c7637efa629fc349","id":"c7637efa1277fe42","notes":"Stop","n_o":1,"startVal":0,"tag":"","roundMode":1},{"inputCount":0,"outputCount":1,"name":"Bundle Input","behaviorType":"logic.NodeGroupInput","x":-360,"y":-96,"group":"c7637efcb3810a46","id":"c7637efa620ade40","portId":"c7637efcb3810a46i0","tag":"Start","dataType":2},{"inputCount":0,"outputCount":1,"name":"Bundle Input","behaviorType":"logic.NodeGroupInput","x":-360,"y":224,"group":"c7637efcb3810a46","id":"c7637efa8f446847","portId":"c7637efcb3810a46i1","tag":"Stop","dataType":2},{"delay":0.1,"count":1,"version":2,"inputCount":3,"outputCount":1,"name":"Timer","behaviorType":"logic.triggers.Timer","x":0,"y":-64,"group":"c7637efcb3810a46","id":"c7637efaea63d243"},{"expression":"A+1","default0":0,"default1":0,"default2":0,"default3":0,"default4":0,"default5":0,"params":2,"version":2,"tag":"","inputCount":3,"outputCount":1,"name":"Expression","behaviorType":"logic.logic.Expression","x":270,"y":-64,"group":"c7637efcb3810a46","id":"c7637efb36088e42"},{"inputCount":3,"outputCount":1,"name":"Switch","behaviorType":"logic.logic.Switch","x":-180,"y":-64,"group":"c7637efcb3810a46","id":"c764012e2a7b1149","_startVal":0,"dataType":2},{"inputCount":0,"outputCount":1,"name":"Always","behaviorType":"logic.triggers.Always","x":-360,"y":0,"group":"c7637efcb3810a46","id":"c7642596704fcd48"},{"inputCount":1,"outputCount":0,"name":"Bundle Output","behaviorType":"logic.NodeGroupOutput","x":720,"y":160,"group":"c7637efcb3810a46","id":"c76441601e21c443","portId":"c7637efcb3810a46o0","tag":"Milliseconds","dataType":2},{"inputCount":3,"outputCount":1,"name":"Number","behaviorType":"logic.logic.Value","x":0,"y":128,"group":"c7637efcb3810a46","id":"c765237951687847","startVal":0,"roundMode":1},{"gateVal":10,"mode":"equal to","inputCount":2,"outputCount":2,"name":"Filter","behaviorType":"logic.logic.Filter2","x":540,"y":-64,"group":"c7637efcb3810a46","id":"c7656f94fb63df42"},{"inputCount":1,"outputCount":0,"name":"Message","behaviorType":"logic.components.Message","x":720,"y":-64,"group":"c7637efcb3810a46","id":"c765a7f8dabdb741","msg":"next1","route":"SendToSelf"},{"inputCount":0,"outputCount":1,"name":"Mailbox","behaviorType":"logic.components.Mailbox","x":-360,"y":96,"group":"c7637efcb3810a46","id":"c765d08ee4bf054b","msg":"next1"},{"inputCount":1,"outputCount":0,"name":"Bundle Output","behaviorType":"logic.NodeGroupOutput","x":720,"y":-160,"group":"c7637efcb3810a46","id":"c7660ec73f19c14d","portId":"c7637efcb3810a46o1","tag":"Second","dataType":2},{"inputCount":3,"outputCount":1,"name":"Number","behaviorType":"logic.logic.Value","x":720,"y":32,"group":"c7637efcb3810a46","id":"c776939012c2d849","startVal":0,"roundMode":1},{"inputCount":2,"outputCount":2,"name":"Milliseconds","behaviorType":"logic.NodeGroup","x":180,"y":32,"group":"c7637efa629fc349","id":"c7637efcb3810a46","isMenuItem":false},{"inputCount":0,"outputCount":1,"name":"Bundle Input","behaviorType":"logic.NodeGroupInput","x":-180,"y":-32,"group":"c766e89dc39d014a","id":"c7670a3293b8604c","portId":"c766e89dc39d014ai0","tag":"+1","dataType":2},{"expression":"A+1","default0":0,"default1":0,"default2":0,"default3":0,"default4":0,"default5":0,"params":2,"version":2,"tag":"","inputCount":3,"outputCount":1,"name":"Expression","behaviorType":"logic.logic.Expression","x":360,"y":-64,"group":"c766e89dc39d014a","id":"c7676f4a30907e4b"},{"inputCount":0,"outputCount":1,"name":"Bundle Input","behaviorType":"logic.NodeGroupInput","x":-180,"y":-128,"group":"c766e89dc39d014a","id":"c7678659ede26843","portId":"c766e89dc39d014ai1","tag":"Stop","dataType":2},{"inputCount":3,"outputCount":1,"name":"Number","behaviorType":"logic.logic.Value","x":90,"y":-128,"group":"c766e89dc39d014a","id":"c767af8a0200ee42","startVal":0,"roundMode":1},{"gateVal":60,"mode":"equal to","inputCount":2,"outputCount":2,"name":"Filter","behaviorType":"logic.logic.Filter2","x":540,"y":-64,"group":"c766e89dc39d014a","id":"c76801193d1b854f"},{"inputCount":0,"outputCount":1,"name":"Mailbox","behaviorType":"logic.components.Mailbox","x":-180,"y":-256,"group":"c766e89dc39d014a","id":"c7687af751db1840","msg":"next2"},{"inputCount":1,"outputCount":0,"name":"Message","behaviorType":"logic.components.Message","x":720,"y":-160,"group":"c766e89dc39d014a","id":"c7689f493164824b","msg":"next2","route":"SendToSelf"},{"inputCount":1,"outputCount":0,"name":"Bundle Output","behaviorType":"logic.NodeGroupOutput","x":720,"y":-64,"group":"c766e89dc39d014a","id":"c768c68c2fa25e4b","portId":"c766e89dc39d014ao0","tag":"Minute","dataType":2},{"inputCount":1,"outputCount":0,"name":"Bundle Output","behaviorType":"logic.NodeGroupOutput","x":990,"y":160,"group":"c766e89dc39d014a","id":"c76b569523ce834f","portId":"c766e89dc39d014ao1","tag":"Seconds","dataType":2},{"inputCount":3,"outputCount":1,"name":"Number","behaviorType":"logic.logic.Value","x":810,"y":32,"group":"c766e89dc39d014a","id":"c7760e40a70b3c40","startVal":0,"roundMode":1},{"inputCount":2,"outputCount":2,"name":"Seconds","behaviorType":"logic.NodeGroup","x":360,"y":-96,"group":"c7637efa629fc349","id":"c766e89dc39d014a","isMenuItem":false},{"inputCount":0,"outputCount":1,"name":"Bundle Input","behaviorType":"logic.NodeGroupInput","x":-360,"y":-32,"group":"c76ab90e04618b45","id":"c76addbc53058a4f","portId":"c76ab90e04618b45i0","tag":"+1","dataType":2},{"inputCount":0,"outputCount":1,"name":"Bundle Input","behaviorType":"logic.NodeGroupInput","x":-360,"y":-160,"group":"c76ab90e04618b45","id":"c76af1a7a3c1724e","portId":"c76ab90e04618b45i1","tag":"Stop","dataType":2},{"expression":"A+1","default0":0,"default1":0,"default2":0,"default3":0,"default4":0,"default5":0,"params":2,"version":2,"tag":"","inputCount":3,"outputCount":1,"name":"Expression","behaviorType":"logic.logic.Expression","x":90,"y":-64,"group":"c76ab90e04618b45","id":"c76e59bf664ebe4c"},{"inputCount":3,"outputCount":1,"name":"Number","behaviorType":"logic.logic.Value","x":-180,"y":-160,"group":"c76ab90e04618b45","id":"c76e9542d75f7745","startVal":0,"roundMode":1},{"inputCount":1,"outputCount":0,"name":"Bundle Output","behaviorType":"logic.NodeGroupOutput","x":270,"y":-64,"group":"c76ab90e04618b45","id":"c76eba39dd89f84d","portId":"c76ab90e04618b45o0","tag":"Minutes","dataType":2},{"inputCount":2,"outputCount":1,"name":"Minutes","behaviorType":"logic.NodeGroup","x":540,"y":-192,"group":"c7637efa629fc349","id":"c76ab90e04618b45","isMenuItem":false},{"inputCount":4,"outputCount":4,"name":"Label","behaviorType":"logic.hud.Label2","x":540,"y":-32,"group":"c7637efa629fc349","id":"c76ba34f7495c642","text":"00","textColor":16777215,"fontName":"oduda","scale":20,"textAlign":"right","maxWidth":0,"xO":317,"yO":169,"pin":false,"alpha":100,"kerning":0},{"inputCount":4,"outputCount":4,"name":"Label","behaviorType":"logic.hud.Label2","x":360,"y":128,"group":"c7637efa629fc349","id":"c76ba45c4df0424b","text":"0","textColor":16777215,"fontName":"oduda","scale":15,"textAlign":"right","maxWidth":0,"xO":355,"yO":185,"pin":false,"alpha":100,"kerning":0},{"inputCount":4,"outputCount":4,"name":"Label","behaviorType":"logic.hud.Label2","x":720,"y":-288,"group":"c7637efa629fc349","id":"c76f6dd71eb2c342","text":"0","textColor":16777215,"fontName":"oduda","scale":20,"textAlign":"right","maxWidth":0,"xO":222,"yO":168,"pin":false,"alpha":100,"kerning":0}],"links":[{"input_id":"c7637efa7bdc1043i0","output_id":"c7637efa9defe34bo0"},{"input_id":"c7637efa7bdc1043i1","output_id":"c7637efa9defe34bo0"},{"input_id":"c7637efa1277fe42i1","output_id":"c7637efa7bdc1043o0"},{"input_id":"c7637efac6cd9549i1","output_id":"c7637efa7bdc1043o1"},{"input_id":"c76f6dd71eb2c342i0","output_id":"c7637efac6cd9549o0"},{"input_id":"c76ba34f7495c642i0","output_id":"c7637efac6cd9549o0"},{"input_id":"c7637efcb3810a46i0","output_id":"c7637efac6cd9549o0"},{"input_id":"c76ba45c4df0424bi0","output_id":"c7637efac6cd9549o0"},{"input_id":"c76ab90e04618b45i1","output_id":"c7637efa1277fe42o0"},{"input_id":"c766e89dc39d014ai1","output_id":"c7637efa1277fe42o0"},{"input_id":"c7637efcb3810a46i1","output_id":"c7637efa1277fe42o0"},{"input_id":"c764012e2a7b1149i1","output_id":"c7637efa620ade40o0"},{"input_id":"c764012e2a7b1149i0","output_id":"c7637efa8f446847o0"},{"input_id":"c7637efaea63d243i1","output_id":"c7637efa8f446847o0"},{"input_id":"c765237951687847i1","output_id":"c7637efa8f446847o0"},{"input_id":"c7637efb36088e42i2","output_id":"c7637efaea63d243o0"},{"input_id":"c7637efb36088e42i0","output_id":"c7637efb36088e42o0"},{"input_id":"c7656f94fb63df42i1","output_id":"c7637efb36088e42o0"},{"input_id":"c7637efaea63d243i0","output_id":"c764012e2a7b1149o0"},{"input_id":"c764012e2a7b1149i2","output_id":"c7642596704fcd48o0"},{"input_id":"c7637efb36088e42i0","output_id":"c765237951687847o0"},{"input_id":"c7660ec73f19c14di0","output_id":"c7656f94fb63df42o0"},{"input_id":"c765a7f8dabdb741i0","output_id":"c7656f94fb63df42o0"},{"input_id":"c776939012c2d849i1","output_id":"c7656f94fb63df42o0"},{"input_id":"c76441601e21c443i0","output_id":"c7656f94fb63df42o1"},{"input_id":"c765237951687847i1","output_id":"c765d08ee4bf054bo0"},{"input_id":"c76441601e21c443i0","output_id":"c776939012c2d849o0"},{"input_id":"c76ba45c4df0424bi0","output_id":"c7637efcb3810a46o0"},{"input_id":"c766e89dc39d014ai0","output_id":"c7637efcb3810a46o1"},{"input_id":"c7676f4a30907e4bi2","output_id":"c7670a3293b8604co0"},{"input_id":"c7676f4a30907e4bi0","output_id":"c7676f4a30907e4bo0"},{"input_id":"c76801193d1b854fi1","output_id":"c7676f4a30907e4bo0"},{"input_id":"c767af8a0200ee42i1","output_id":"c7678659ede26843o0"},{"input_id":"c7676f4a30907e4bi0","output_id":"c767af8a0200ee42o0"},{"input_id":"c7689f493164824bi0","output_id":"c76801193d1b854fo0"},{"input_id":"c768c68c2fa25e4bi0","output_id":"c76801193d1b854fo0"},{"input_id":"c7760e40a70b3c40i1","output_id":"c76801193d1b854fo0"},{"input_id":"c76b569523ce834fi0","output_id":"c76801193d1b854fo1"},{"input_id":"c767af8a0200ee42i1","output_id":"c7687af751db1840o0"},{"input_id":"c76b569523ce834fi0","output_id":"c7760e40a70b3c40o0"},{"input_id":"c76ab90e04618b45i0","output_id":"c766e89dc39d014ao0"},{"input_id":"c76ba34f7495c642i0","output_id":"c766e89dc39d014ao1"},{"input_id":"c76e59bf664ebe4ci2","output_id":"c76addbc53058a4fo0"},{"input_id":"c76e9542d75f7745i1","output_id":"c76af1a7a3c1724eo0"},{"input_id":"c76e59bf664ebe4ci0","output_id":"c76e59bf664ebe4co0"},{"input_id":"c76eba39dd89f84di0","output_id":"c76e59bf664ebe4co0"},{"input_id":"c76e59bf664ebe4ci0","output_id":"c76e9542d75f7745o0"},{"input_id":"c76f6dd71eb2c342i0","output_id":"c76ab90e04618b45o0"}]}}}

yes. i just need the time that it was stopped at to pe saved in a side bar

do you really want me to make everything for you?

ive tried. i cant figure it out. this is month 4 for me. sorry

Ok. Do you want all the times to be saved, or just the very last one?

W

A rubix cube timer lets go

1 Like

i want all of the times saved.

ok… That will be very tricky.

Yes, I thought it easy at first, but the pausing… You can take it from here, XD.

1 Like

https://flowlab.io/games/play/2354438

Here, see if this is good enough? It keeps the times up there. I can add saving and deleting if you really want…

Sorry for the long wait though, I had other stuff I needed to do.

@gabril

Wow, I’m impressed. This is quite good. Just add a few dots and it could be up there on the Examples page.

1 Like

yeah it will work as expected unless you do solves less than a second… Then it kinda breaks all the timers.

I thinkkkk this is fixed?

You don’t. Anyway, now all that’s left to do is wait for gabril, XD.