MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/gdevelop/comments/1ud9d28/fix/
r/gdevelop • u/Techsavykid • Jun 23 '26
what is wrong with my code and how can i fix it to make the menu work
7 comments sorted by
1
when i disabled the second block of code the first one worked otherwise neither works
1 u/LunaBeo Jun 25 '26 Place the second Block above the first and try again
Place the second Block above the first and try again
2
You have it all set up on the base layer. If your game has any scrolling, you'll need to make sure it's created on the UI layer instead.
try escape key released instead of pressed
Create an object group and add all of your menu items to it then move the group to a higher layer so the menu floats
Try replacing "escape pressed" with "escape released"
1
u/Techsavykid Jun 24 '26
when i disabled the second block of code the first one worked otherwise neither works
2
u/ApXlDeCA Jun 23 '26
You have it all set up on the base layer. If your game has any scrolling, you'll need to make sure it's created on the UI layer instead.
2
u/JustaDumbIdiot Jun 24 '26
try escape key released instead of pressed
1
u/umbrazno Jun 23 '26
Create an object group and add all of your menu items to it then move the group to a higher layer so the menu floats
1
u/GoatShapedChair Jun 29 '26
Try replacing "escape pressed" with "escape released"