Are there more efficient ways of doing this?

Is there anyway of making this block code way more effcient?

The reason why I’m asking is because I need to do this 16 time in total, and it probably gets very repetitive

I do not think so.

Use a counter to set the property?

2 Likes

but I have an overlay that needs to set all properties back to 0, then add 2 new numbers

That was an accident

I don’t understand what you’re saying. Could you clarify that a bit more?

Oh, I meant set all the properties to 0, setting every number on the board to zero, then, add 2 new numbers onto the board.
Also, I am doing this for 2048 (if you didn’t know already)

I think that counters would be more efficient for this, as they would take up 16x25 = 400 memory, which is less than a block.

1 Like

Makes sense, thank you getrithekd

This topic was automatically closed 3 hours after the last reply. New replies are no longer allowed.