Is there any shorter way i can do this

It looks like 20 columns is too big to fit in one line. You’ll have to experiment with adjusting your column count to be the number of columns that you want. It looks like you can fit about 8 per row from your screenshot.

Do I have to edit the offset?

no; set columnCount to 8

1 Like


I am not good at math, or at least the very advanced math. Thanks to @jacob_c @jwunderl @AlexK @UnsignedArduino

2 Likes

Do you have an idea of how to make a stop watch instead of a timer. I want them to get them to see their times on how long it would take to solve the rubiks cubes

In response to your comment about math and learning, I think the best way to approach it is to just keep pulling at threads that you feel like you almost understand but don’t quite… you’ve got to start from a place where you understand part of it, but not all, and then look at one piece of what you don’t understand and work on that part (and ask questions) and build from there.

2 Likes

You gotta start at the bottom and work yourself up

Also, any way to make a stopwatch instead of a countdown @jacob_c?

Yeah; under Game there’s a time since start (ms) block. You can use that in a game update to show the number of milliseconds since the game started.

… you can use math to format that number to something more like minutes and seconds. :sweat_smile:

1 Like

I don’t understand…

Can you show me how to do it in blocks @jacob_c?

Sure:

I used a Sprite and Sprite say because I don’t have the text extension in this example project… but you can use a text sprite for this instead.

1 Like

I might use sprite because just doing all this is very confusing

My example with blocks is just counting seconds… it doesn’t roll over to minutes formatting if you get above 60. That is definitely also possible, but it will make it a bit more complicated.

1 Like

When I do the stopwatch, it was running even at the start of the game. I want them to have time to do the scramble. The problem with your idea is because of the time start since (ms). that block starts when the game loads.

You can do that too.

Save the current value of time since start in a variable when you want to start the timer. Then, when you want to display the value, subtract the saved value from the new current value.

I hope you’re proud of your project so far, @Dreadmask197. I sure am! You’ve got a bright future ahead of you, whether you choose to stick with computer programming or go in a different direction.

Nice work, too, @jacob_c, in helping with the math! Have you considered going into teaching?

I think @jacob_c pointed you in the right direction as far as getting the timer to work: You could start and pause the timer when the player presses a button (say, A). It’s actually a pretty common routine … one you’ll find yourself writing many, many, many times in a lot of different programs that you create. You get the hang of it once you’ve written it a few times. Let us know if you’re stuck with that still; we’ll get you up and running.

6 Likes

Have you considered going into teaching?

Ha; thanks. That’s high praise coming from you, @AlexK! I’m pretty well into a career in software development already, so a professional teaching role would be a pretty big pivot. :sweat_smile: I have done some volunteer teaching in the past (an AP CS class) and that was a challenging and rewarding experience.

2 Likes

How do I do that in blocks?
This is what I’m thinking so far


I’m only in 8th grade so all this math and index are very confusing

1 Like


I’m trying!! I am just so far away though