u/FamiliarAd721

I've been trying to make it so that when I press a button, a textbox pops up, but I've been having trouble doing so. This is what I have so far, but it still does that flickering thing when I press the E key:

textboxx = false

if distance_to_object(ob_b_stand) < 100{

`draw_sprite(sp_E,-1, x, y);`

}

if distance_to_object(ob_b_stand) < 100{

`if keyboard_check_pressed(ord("E")){`

	`textboxx = !textboxx`

`}`

}

if textboxx == true {

`draw_sprite(sp_textbox, 0, x, y);`

`draw_text(x, y, "test");`	

}

Any advice would be great!

reddit.com
u/FamiliarAd721 — 18 days ago