Ok, so I have a shop in my game, and it is in a separate loop instead of it being in the same loop for the gameplay. My question is, how can I buy something in that shop and it applies to the gameplay loop?
Easy, just use a global variable. Initialize it once in the beginning.Like MONEY=10:POTIONS=0. In your shop loop just do this IF MONEY>=3 THEN INC POTIONS; MONEY=MONEY-3;WAIT 5 after selecting item.
Like if I was to press A on an thing I want to buy, I would do,
IF BUTTON() AND #A THEN
ITEM=ITEM+1
ENDIF
Then outside the shop loop I do something like,
IF ITEM==1 THEN
SPSET 0,50,50
ENDIF
Oh wait, I got it, thanks for your help! Btw, do you know how to do a vertical scroll effect for a GPUTCHR and making it stop in the middle of the screen?
It worked! I changed it by decreasing X instead of increasing Y for a cool effect that you will see soon. ;)
One more question please. XD
I know how to use Fade like... FADE RGB(0,0,0),100
But how do I fade it back to normal? Like a fade-out.