Why is my code skipping?

I’m trying to make an educational game, in this stage different text boxes come up. I’m trying to make it so that every time the space bar is pressed the next text box appears and the other older one disappears. When I try this in the preview it skips text2 showing up and moves straight to text3, does anyone know why this is happening?

Also the global variable doesn’t change at the end when the space bar is pressed again. What am I doing wrong?

Thanks !

because the space key is pressed event triggers immediately.

you need a better structure for your events.

something along the lines of this:

if you have alot of text, consider using yarn, aka dialogue tree

1 Like

Amazing, thank you so much!