Money system

2 replies [Last post]
icefireburn1's picture
User offline. Last seen 1 year 31 weeks ago. Offline
Joined: 06/29/2010
GBPs: 5

Right now I'm making a maplestory game, but what would maplestory be without a store. So i want to know how to make a money system to buy stuff.

I want it using score (doesn't matter) so when you click on a button you lose score, but if you don't have a enough nothing happens

If you have an idea what I'm talking about plz help me :P help.JPG

Mastavasta's picture
User offline. Last seen 30 weeks 1 day ago. Offline
Joined: 04/01/2010
GBPs: 530

IF: -User clicks "Buy HP"
-score is greater than 0 (or however much HP costs)

THEN: -add ___ to HP
-subtract _____ from score

It's pretty simple once you understand it, I would use a counter object instead of the score object though (just personal preference i guess) If you are using the button object you can even say:

IF: -score is less than (however much HP costs)

THEN: -disable "Buy HP" button (if it isn't a button, I suggest making it an active
object with enabled and disabled animations)

Hope this helps!

Haakon's picture
User offline. Last seen 50 weeks 22 hours ago. Offline
Joined: 10/28/2010
GBPs: 8

I was going to say just the same as him


n/a