JR 01's Monthly Coding Challenge 2025

I know, it kinda hard to make it, I tried my best

2 Likes

and also, there’s a link under the third pic, you can try it on the “drone” object

Btw

I’m too tired for these weekdays, if there’s any problems with the option, let me know next weekday (or just say it and I’ll see it because sometime I will check my chromebook to see notifications).

1 Like

Yeah I tested it and it wasn’t in a 12 hour format

1 Like

@Blargh64, you can try the challenge too

3 Likes

i will fix it quickly, i will try

1 Like
Here

I DID IT!!!




Screenshot 2024-04-05 7.16.37 PM

3 Likes

All answers that meet the goal of the challenge are good answers, good job!
But @Khoi_Pham, it would really help you to do more things on flowlab if you look into learning how the expression behavior works. Not just these challenges but anything that uses numbers or math.

2 Likes

Thank you, I was struggling with it for a min before I tried with all input of the “Number”, so I learned how to use it. But the clock option is not too useful for the gameplay of the game I work on, or is it?

don’t actually mind about that, I will plan it for the next enemy for the game :penguin:

2 Likes

Oof, I messed up and bad, can someone tell me where I went wrong?

Answer 1


Feel like I can remove that Number behavior, but I don’t really feel like going through the frame order rn.

{"data":{"behavior":{"v":"2","nodes":[{"inputCount":0,"outputCount":0,"name":"Clock - Text","behaviorType":"logic.NodeGroup","x":90,"y":224,"group":"ab37d6c673f99442","id":"b014e42ca338c040","isMenuItem":false},{"inputCount":0,"outputCount":1,"name":"Always","behaviorType":"logic.triggers.Always","x":-720,"y":48,"group":"b014e42ca338c040","id":"b0150cc74005c14b"},{"inputCount":1,"outputCount":4,"name":"Clock","behaviorType":"logic.components.Clock","x":-540,"y":48,"group":"b014e42ca338c040","id":"b01519076da7b140","fs":false},{"inputCount":5,"outputCount":2,"name":"Text","behaviorType":"logic.data.TextBlock","x":180,"y":64,"group":"b014e42ca338c040","id":"b01616ed6a220744","startVal":""},{"inputCount":5,"outputCount":2,"name":"Text","behaviorType":"logic.data.TextBlock","x":0,"y":48,"group":"b014e42ca338c040","id":"b01623e695140e42","startVal":":"},{"gateVal":12,"mode":"greater than","inputCount":2,"outputCount":2,"name":"Filter","behaviorType":"logic.logic.Filter2","x":-180,"y":176,"group":"b014e42ca338c040","id":"b019b511c6b88849"},{"inputCount":5,"outputCount":2,"name":"Text","behaviorType":"logic.data.TextBlock","x":0,"y":176,"group":"b014e42ca338c040","id":"b01a2f7fb7f0f041","startVal":" PM"},{"inputCount":5,"outputCount":2,"name":"Text","behaviorType":"logic.data.TextBlock","x":0,"y":304,"group":"b014e42ca338c040","id":"b01a2ff4dcdd0a4a","startVal":" AM"},{"expression":"(A-1)%12+1","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":-180,"y":-48,"group":"b014e42ca338c040","id":"b01fdb9da49a5940"},{"inputCount":3,"outputCount":1,"name":"Number","behaviorType":"logic.logic.Value","x":-360,"y":176,"group":"b014e42ca338c040","id":"b0e983e304e69d49","startVal":0,"tag":"","roundMode":1},{"gateVal":9,"mode":"greater than","inputCount":2,"outputCount":2,"name":"Filter","behaviorType":"logic.logic.Filter2","x":-360,"y":64,"group":"b014e42ca338c040","id":"b0f2614101379e47"},{"inputCount":3,"outputCount":1,"name":"Number","behaviorType":"logic.logic.Value","x":-180,"y":48,"group":"b014e42ca338c040","id":"b0f29ce2a9664f4b","startVal":0,"roundMode":1}],"links":[{"input_id":"b01519076da7b140i0","output_id":"b0150cc74005c14bo0"},{"input_id":"b01fdb9da49a5940i0","output_id":"b01519076da7b140o0"},{"input_id":"b01fdb9da49a5940i1","output_id":"b01519076da7b140o0"},{"input_id":"b0e983e304e69d49i0","output_id":"b01519076da7b140o0"},{"input_id":"b0f2614101379e47i1","output_id":"b01519076da7b140o1"},{"input_id":"b0e983e304e69d49i1","output_id":"b01519076da7b140o1"},{"input_id":"b01616ed6a220744i3","output_id":"b01623e695140e42o0"},{"input_id":"b01a2f7fb7f0f041i1","output_id":"b019b511c6b88849o0"},{"input_id":"b01a2ff4dcdd0a4ai1","output_id":"b019b511c6b88849o1"},{"input_id":"b01616ed6a220744i3","output_id":"b01a2f7fb7f0f041o0"},{"input_id":"b01616ed6a220744i3","output_id":"b01a2ff4dcdd0a4ao0"},{"input_id":"b01616ed6a220744i0","output_id":"b01fdb9da49a5940o0"},{"input_id":"b01623e695140e42i1","output_id":"b01fdb9da49a5940o0"},{"input_id":"b019b511c6b88849i1","output_id":"b0e983e304e69d49o0"},{"input_id":"b01616ed6a220744i3","output_id":"b0f2614101379e47o0"},{"input_id":"b0f29ce2a9664f4bi1","output_id":"b0f2614101379e47o1"},{"input_id":"b01616ed6a220744i3","output_id":"b0f2614101379e47o1"},{"input_id":"b01616ed6a220744i3","output_id":"b0f29ce2a9664f4bo0"}]}}}
Answer 2

Number list can also be used, just have to combine the PM/AM outside the list.

{"data":{"behavior":{"v":"2","nodes":[{"inputCount":0,"outputCount":0,"name":"Clock - List","behaviorType":"logic.NodeGroup","x":90,"y":288,"group":"ab37d6c673f99442","id":"b0ea50a735e9b549","isMenuItem":false},{"inputCount":0,"outputCount":1,"name":"Always","behaviorType":"logic.triggers.Always","x":-540,"y":-16,"group":"b0ea50a735e9b549","id":"b0ea7c5f6a818c40"},{"inputCount":5,"outputCount":2,"name":"Text","behaviorType":"logic.data.TextBlock","x":-180,"y":-16,"group":"b0ea50a735e9b549","id":"b0ea94d376f0a34a","startVal":":"},{"inputCount":1,"outputCount":4,"name":"Clock","behaviorType":"logic.components.Clock","x":-360,"y":-16,"group":"b0ea50a735e9b549","id":"b0eb127bfb761f48","fs":false},{"inputCount":7,"outputCount":5,"name":"Text List","behaviorType":"logic.data.TextList","x":0,"y":-16,"group":"b0ea50a735e9b549","id":"b0eb6122daa17644","startVal":[]},{"inputCount":7,"outputCount":5,"name":"Text List","behaviorType":"logic.data.TextList","x":270,"y":96,"group":"b0ec101b84898a4e","id":"b0ec101ccfd0c949","startVal":[]},{"inputCount":1,"outputCount":1,"name":"Text List Order","behaviorType":"logic.data.ListOrder","x":450,"y":96,"group":"b0ec101b84898a4e","id":"b0ec101dbb311947","mode":1,"copy":true,"numSort":false},{"inputCount":1,"outputCount":0,"name":"Bundle Output","behaviorType":"logic.NodeGroupOutput","x":630,"y":96,"group":"b0ec101b84898a4e","id":"b0ec101dfbf19c4d","portId":"b0ec101b84898a4eo0","tag":"T Blank","dataType":4},{"inputCount":0,"outputCount":1,"name":"Bundle Input","behaviorType":"logic.NodeGroupInput","x":90,"y":96,"group":"b0ec101b84898a4e","id":"b0ece54452672e44","portId":"b0ec101b84898a4ei0","tag":"input","dataType":1},{"inputCount":1,"outputCount":1,"name":"Reset List","behaviorType":"logic.NodeGroup","x":180,"y":-96,"group":"b0ea50a735e9b549","id":"b0ec101b84898a4e","isMenuItem":false},{"inputCount":5,"outputCount":2,"name":"Text","behaviorType":"logic.data.TextBlock","x":180,"y":-16,"group":"b0ea50a735e9b549","id":"b0ed93f9a94da042","startVal":""},{"gateVal":0,"mode":"greater than","inputCount":2,"outputCount":2,"name":"Filter","behaviorType":"logic.logic.Filter2","x":0,"y":208,"group":"b0edeb6cdabb3c41","id":"b0eaac0f5d0ec140"},{"inputCount":5,"outputCount":2,"name":"Text","behaviorType":"logic.data.TextBlock","x":180,"y":208,"group":"b0edeb6cdabb3c41","id":"b0eac1fcb9a8f044","startVal":" PM"},{"inputCount":5,"outputCount":2,"name":"Text","behaviorType":"logic.data.TextBlock","x":180,"y":336,"group":"b0edeb6cdabb3c41","id":"b0eac274620d024d","startVal":" AM"},{"inputCount":0,"outputCount":1,"name":"Bundle Input","behaviorType":"logic.NodeGroupInput","x":-360,"y":208,"group":"b0edeb6cdabb3c41","id":"b0ee0735f08b6042","portId":"b0edeb6cdabb3c41i0","tag":"Hour","dataType":2},{"inputCount":1,"outputCount":0,"name":"Bundle Output","behaviorType":"logic.NodeGroupOutput","x":360,"y":208,"group":"b0edeb6cdabb3c41","id":"b0ee093722a87b42","portId":"b0edeb6cdabb3c41o0","tag":"Time","dataType":1},{"inputCount":0,"outputCount":1,"name":"Bundle Input","behaviorType":"logic.NodeGroupInput","x":-360,"y":272,"group":"b0edeb6cdabb3c41","id":"b0fd7320eb87274e","portId":"b0edeb6cdabb3c41i1","tag":"Get","dataType":2},{"inputCount":3,"outputCount":1,"name":"Number","behaviorType":"logic.logic.Value","x":-180,"y":208,"group":"b0edeb6cdabb3c41","id":"b0fd83c218521d40","startVal":0,"roundMode":1},{"inputCount":2,"outputCount":1,"name":"PM/AM","behaviorType":"logic.NodeGroup","x":-180,"y":176,"group":"b0ea50a735e9b549","id":"b0edeb6cdabb3c41","isMenuItem":false},{"inputCount":0,"outputCount":1,"name":"Bundle Input","behaviorType":"logic.NodeGroupInput","x":-540,"y":-48,"group":"b0f85294623a1648","id":"b0f89b6db74e584c","portId":"b0f85294623a1648i0","tag":"input","dataType":2},{"inputCount":1,"outputCount":0,"name":"Bundle Output","behaviorType":"logic.NodeGroupOutput","x":180,"y":-48,"group":"b0f85294623a1648","id":"b0f89c96a4133f48","portId":"b0f85294623a1648o0","tag":"output","dataType":1},{"inputCount":5,"outputCount":2,"name":"Text","behaviorType":"logic.data.TextBlock","x":-180,"y":0,"group":"b0f85294623a1648","id":"b0f8e06c92b63d44","startVal":"0"},{"inputCount":5,"outputCount":2,"name":"Text","behaviorType":"logic.data.TextBlock","x":0,"y":0,"group":"b0f85294623a1648","id":"b0f90499b561694c","startVal":"0"},{"gateVal":9,"mode":"greater than","inputCount":2,"outputCount":2,"name":"Filter","behaviorType":"logic.logic.Filter2","x":-360,"y":-48,"group":"b0f85294623a1648","id":"b0f91526e230db44"},{"inputCount":1,"outputCount":1,"name":"3 -> 03 (Minute)","behaviorType":"logic.NodeGroup","x":-180,"y":112,"group":"b0ea50a735e9b549","id":"b0f85294623a1648","isMenuItem":false},{"inputCount":5,"outputCount":2,"name":"Text","behaviorType":"logic.data.TextBlock","x":-180,"y":256,"group":"b0ea50a735e9b549","id":"b0fac6e9b87b794e","startVal":""},{"expression":"(A-1)%12+1","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":-180,"y":-112,"group":"b0ea50a735e9b549","id":"b0fc599dd32ed140"}],"links":[{"input_id":"b0eb127bfb761f48i0","output_id":"b0ea7c5f6a818c40o0"},{"input_id":"b0eb6122daa17644i1","output_id":"b0ea94d376f0a34ao0"},{"input_id":"b0fc599dd32ed140i0","output_id":"b0eb127bfb761f48o0"},{"input_id":"b0fc599dd32ed140i1","output_id":"b0eb127bfb761f48o0"},{"input_id":"b0edeb6cdabb3c41i0","output_id":"b0eb127bfb761f48o0"},{"input_id":"b0ea94d376f0a34ai1","output_id":"b0eb127bfb761f48o1"},{"input_id":"b0f85294623a1648i0","output_id":"b0eb127bfb761f48o1"},{"input_id":"b0edeb6cdabb3c41i1","output_id":"b0eb127bfb761f48o1"},{"input_id":"b0fac6e9b87b794ei1","output_id":"b0eb127bfb761f48o1"},{"input_id":"b0ec101b84898a4ei0","output_id":"b0eb6122daa17644o3"},{"input_id":"b0ed93f9a94da042i0","output_id":"b0eb6122daa17644o3"},{"input_id":"b0ec101dbb311947i0","output_id":"b0ec101ccfd0c949o0"},{"input_id":"b0ec101dfbf19c4di0","output_id":"b0ec101dbb311947o0"},{"input_id":"b0ec101ccfd0c949i2","output_id":"b0ece54452672e44o0"},{"input_id":"b0eb6122daa17644i0","output_id":"b0ec101b84898a4eo0"},{"input_id":"b0eac1fcb9a8f044i1","output_id":"b0eaac0f5d0ec140o0"},{"input_id":"b0eac274620d024di1","output_id":"b0eaac0f5d0ec140o1"},{"input_id":"b0ee093722a87b42i0","output_id":"b0eac1fcb9a8f044o0"},{"input_id":"b0ee093722a87b42i0","output_id":"b0eac274620d024do0"},{"input_id":"b0fd83c218521d40i0","output_id":"b0ee0735f08b6042o0"},{"input_id":"b0fd83c218521d40i1","output_id":"b0fd7320eb87274eo0"},{"input_id":"b0eaac0f5d0ec140i1","output_id":"b0fd83c218521d40o0"},{"input_id":"b0eb6122daa17644i1","output_id":"b0edeb6cdabb3c41o0"},{"input_id":"b0f91526e230db44i1","output_id":"b0f89b6db74e584co0"},{"input_id":"b0f89c96a4133f48i0","output_id":"b0f8e06c92b63d44o0"},{"input_id":"b0f90499b561694ci1","output_id":"b0f8e06c92b63d44o0"},{"input_id":"b0f8e06c92b63d44i0","output_id":"b0f90499b561694co0"},{"input_id":"b0f89c96a4133f48i0","output_id":"b0f91526e230db44o0"},{"input_id":"b0f8e06c92b63d44i3","output_id":"b0f91526e230db44o1"},{"input_id":"b0eb6122daa17644i1","output_id":"b0f85294623a1648o0"},{"input_id":"b0eb6122daa17644i5","output_id":"b0fac6e9b87b794eo0"},{"input_id":"b0eb6122daa17644i1","output_id":"b0fc599dd32ed140o0"}]}}}
2 Likes

What exactly does the Percent symbol do in the expression?
I’ve seen it used before, but I’ve never used it myself.

3 Likes

I am pretty sure its modulus, which gives the remainder to division.

2 Likes

Remainder

so 4 % 12 is 4
13 % 12 is 1

The expression is (A-1)%12+1 because

12%12 = 0
(12-1)%12 + 1 = 12

3 Likes

Oh, okay. That makes sense.

I’ve never seen the percent symbol used for the Remainder before.

2 Likes

I thought I was the only one who used too many behaviors for the clock coding challenge.

1 Like

I decided to try a method I probably wouldn’t use myself, but would be fun to see work.

Answer

This method uses list modify instead of pushing strings into lists or concatenating on other strings.

Convert Hours Expression:
((A+11)%12)+1

Minutes with 0 Bundle:

AM/PM Bundle:

^ The flow into “char” should be into “get” (oops!)

1 Like

? not sure what you mean, we did pretty different methods. What I did was showed, I wouldn’t say another method would be “better,” it’d mostly up to personal preference.

I just mean that I thought I would only use the most behavior for the challenge and it will be other people make it shorter and easier to make. Btw, the first code is actually looks good, but still not understand how the “Expression” work with %

This challenge actually requires many behaviors for how complex it is, needing it all to work into a single label. I made the difficulty challenging for a reason lol

can I be notified for the haxe or expert challenges please?