Page 1 of 1

Shop Help NEEDED

PostPosted: Mon Jan 28, 2013 11:46 pm
by moonforge
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!

Re: Shop Help NEEDED

PostPosted: Tue Jan 29, 2013 1:51 am
by moonforge
Also, any improved textures (especially on the rocket and bomber) would be greatly appreciated.

Re: Shop Help NEEDED

PostPosted: Wed Feb 06, 2013 3:51 pm
by kickstart
Hey MoonForge, it looks like you got the shop working!