Monday, January 30, 2012

War of Kings - Update 4


Today's WOK Feature: Weapons Bar and Other Stuff!

Today in War of Kings I created the Weapons Bar. This meant adding it to the instructions, too!
I devised a system for showing all 20 weapons in the game, and though it will take some time I think I can get most of them in the game in the next eleven or so days.
It's kind of simple, but it keeps the megabyte count down: The text, the Buy/Upgrade button, the weapons bar template and the icons for the weapons are all separate sprites.

The weapons bar has a script like this:


Basically, when the water balloon icon is clicked, if the water balloon has been bought and upgraded, then show the costume relating to it. That's the part that controls what upgrade status to show. Then, below it, when I receive a broadcast that tells me that the Buy/Upgrade button has been pressed, switch to the appropriate upgrade status.


This is a script on the Buy/Upgrade button. It basically says when you click the Buy/Upgrade button, and if you have enough coins to buy or upgrade the weapon, then set the correct upgrade status, and remove the coins you paid for the weapon, and then tell everyone that the Buy/Upgrade button has been pressed.


These scripts are on the weapon icon itself. It tells it to either be highlighted or not, and also to fade in when the cutscene ends.


I also created different highlight costumes for the Choose a Side stage...


AND a new selected costume for the Choose a Side stage.


Well anyways, that's about all the updating I can do for now.
Check back sometime later tomorrow, for the next update!

-- LockedOn.