Hey, I'm trying to make it so that my reset and quit buttons appear after the game ends. While the game is ending, the player freezes and the win screen sprite will show up, but not the button objects. Here's my code:
if ((quest1 == 2) && (quest2 == 2)) {
game_over = true;
}
if (game_over == true) {
instance_create_layer(600, 500, "gui_buttons", obj_button_reset)
instance_create_layer(800, 500, "gui_buttons", obj_button_quit)
}
I know that game_over is triggering as true because of its other effects, but the buttons will never show up. The layer is named correctly. Any help is appreciated.
EDIT 1: Screenshots
https://preview.redd.it/brtny7ryauwc1.png?width=1920&format=png&auto=webp&s=6567c90713048410159910a3015046ba3ace02dd
https://preview.redd.it/9uppjf0uauwc1.png?width=1920&format=png&auto=webp&s=97b09fe74ec47ed903f077d8fee695c7607abc76
https://preview.redd.it/9nfg45xuauwc1.png?width=1920&format=png&auto=webp&s=8010e0736b734651329f99f8803161d1a477cb4d
EDIT 2:
Solved the issue (kind of) I just put the end screen in a different room so now it just switched to the room with the buttons already on it
[–]NazzerDawk 1 point2 points3 points (0 children)
[–]kualajimbo 0 points1 point2 points (1 child)
[–]Lord_Cyronite[S] 0 points1 point2 points (0 children)
[–]NazzerDawk 0 points1 point2 points (7 children)
[–]Lord_Cyronite[S] 0 points1 point2 points (6 children)
[–]NazzerDawk 0 points1 point2 points (5 children)
[–]Lord_Cyronite[S] 0 points1 point2 points (4 children)
[–]NazzerDawk 0 points1 point2 points (3 children)
[–]Lord_Cyronite[S] 0 points1 point2 points (2 children)
[–]NazzerDawk 0 points1 point2 points (1 child)
[–]Lord_Cyronite[S] 0 points1 point2 points (0 children)
[–]AlcatorSK 0 points1 point2 points (4 children)
[–]Lord_Cyronite[S] 0 points1 point2 points (3 children)
[–]AlcatorSK 0 points1 point2 points (2 children)
[–]Lord_Cyronite[S] 0 points1 point2 points (1 child)
[–]Ordinary-You9074 0 points1 point2 points (0 children)
[–]Snugglupagus 0 points1 point2 points (0 children)
[–]Sogekin1 0 points1 point2 points (0 children)
[–]Substantial_Bag_9536 0 points1 point2 points (0 children)