I know your number HELP (SOLVED)

I need some help. I’m going to create 5 lists full of numbers.

Something like this will make your code much shorter.

image

let list: number[] = []
for (let index = 0; index < 10; index++) {
    list.push(randint(0, 10))
}

I don’t want it random. I want it to have 5 lists and then get all the numbers in order in text sprites

Hmmm…let me whip up something real quick.

1 Like

I put the list in there first, then I kinda need to do it for another four times

1 Like

So you need to place all the numbers on screen and have the user choose one of them?

Maybe this?

Uses this:

To generate the menu.

Hmm… That could work except, I don’t need it as a menu though

1 Like

Then, you just remove the close menu block so it never goes away.
image

1 Like

hmm… never used this extension before but I think ti could work

1 Like

image
is there any way to get rid of the choice block thing? I want the white block thing to go away

1 Like

I tried editing the foreground and background but it didnt work

1 Like

This is @richard’s extension, so I would ask him to add functionality to show or hide the cursor.

@richard sorry to bother you, but is it possible to remove the cursor? Something like:

blockmenu.showCursor(false)

I wouldn’t want to switch to text sprites because then you have to figure out the positions of all of them.

I think I have the position code down thanks to @jacob_c. He showed me how to use the variables and math to create different kinds of positions

2 Likes

Then I would just create a list of text sprites so you can cleanly reference them.

Something like this:
image
But for each number.

Oh. That sounds good

1 Like

Darn it. Now I gotta copy and paste all the textSprite booleans now. (I think they’re called booleans)

1 Like

bools are true or false values. I think you mean sprites?

1 Like

yes sprites.


Speedrun stats lol. Now that they are sprites, i need the pos for the sprites.

1 Like