I want to shrink my block code

I basically recently started making another game, and it is going to require a lot of blockcode, and i did the math, at the rate im going, i will need 3 triggers. however, i am already going to have to use dozens of triggers. if you can think of any way to shrink it please tell me


by the way, it just keeps going like this all the way to Z

1 Like

Can you use just 1 trigger and a counter to run through all of that in a loop instead?

2 Likes

I dont understand, can you explain more clearly?

1 Like

Insead of checking 1-1722 for A, than 1-7722 for B, use 1 trigger to run a loop that makes the letter properties, and a counter keeps track of which letter you are doing, so get a counter that controls which slot (toguess#1 or #toguess2) you are updating, than a number property (current_letter_number) to store a random number in (1-1722), than for the trigger block code set the current letter number to a random integer from 1-1722, and if current letter numebr is less than or equal to 109, set toguess1, to A, and else if current letter number is less than or equal to 237, set toguess1 to b, and keep doing this and after the letter is set, increment your slot counter because you have multiple, or just trigger the next part of your game.

2 Likes

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