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
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?
I'm going to clean up the code in Slime Simulator, as well as adding the new update, so it's going to take a little while. In the meantime, I'm also making a new game which is almost complete. I hope you all are looking foward to these! :)
I've been programming for about three months now and I still don't fully understand DIM, VAR, or DATA. Could someone explain this stuff to me? I have a feeling that if I learn this, I could advance my own programs.