Hey Guys!
I'm making this simple little game called TANK WARRIOR. You're this little tank that goes around shooting baddies. You can get bomb ammo, health, and coins. The only issue I'm having is with the shop. It's in progress, and I really want to know how to get it to finally work.
Okay, so the buying buttons have three animations:
equipbutton
inusebutton
buybutton
I want the inusebutton animation to start on the regular tank. Easy enough. Next, I need all others (there will be more in the future) to have the buybutton animation. When you buy an item, it switches to the equipbutton animation, removes 150 coins and saves that state. Finally, when you hit the equipbutton on an item, it switches to the inusebutton animation, and changes the current inusebutton to equipbutton animation. (Phew!)
Right now it's pretty messed up. It removes 150 coins, but changes states all wrong and overall, I think I just need to rewrite the whole code. I'm pretty sure I need some switch statements, but I'm not sure where to put them. Any help that comes by would be greatly appreciated.
Thanks,
moonforge
P.S. +1 to whoever fixes the whole messed-up problem!