i’ve been having a lot of trouble trying to make an “item selection” type thing.
what i basically want to do is:
every minute, you can press the B button to open a menu, or item selection. this will pause everything until you have picked an item.
the shop randomly picks 3 items out of around 24, and you can only pick one.
what i’m having trouble with:
pausing everything. i want to pause all the enemies and the player sprite, but allow the player to select with the d-pad.
i don’t know if this is clear or not, i’m not really good at explaining things. also, this is on my other account. if anyone responds, i’ll try and reply to them when i get home!!
In my past games I used a ‘stage’ variable to determine if the game moved or not. All of the code started with ‘if stage === 1’ to make sure that when I set the stage to 0, the entire game would stop moving and calculating and stuff. Then, you can have an ‘else if stage === 0’ in the move buttons to have a different action in stage 0, when the menu is open. (Sorry if this doesn’t make sense, if you send the game i can help more)
this is actually really helpful! i’ll send the game when i get home, then i’ll edit it and see if that works!
yeah, sorry for the really long wait
i don’t usually have a very long attention span and i plan on things too ambitious, so i probably won’t finish the game at all…
i’ll send the game tonight when i get home
oh my god i’m so sorry i completely forgot
i’m gonna TRY and send the game tonight- bruhhh