This blog reflects my progress that I make on different projects as I work my way though them :D Wish me luck
Showing posts with label cool. Show all posts
Showing posts with label cool. Show all posts
Wednesday, 30 January 2013
Enemy fighters all around
Labels:
as3,
coding,
cool,
development,
fighters,
flash. game,
help,
ken,
opponent,
special,
terror,
tower,
wheadon
Tuesday, 20 November 2012
And the creatures keep on coming!
Got a few more finished today :D
Name : Old Lady Velma
Speed : 2
Strength : 2
Sexy : 8
Rare
Name : Manly Beans
Speed 3
Strength : 3
Sexy : 6
Rare
Name : Ac-U Puncture
Speed : 4
Strength : 3
Sexy : 2
Uncommon
Name : Gentleman Cannon
Speed : 4
Strength : 4
Sexy : 1
Uncommon
Name : Old Lady Velma
Speed : 2
Strength : 2
Sexy : 8
Rare
Name : Manly Beans
Speed 3
Strength : 3
Sexy : 6
Rare
Name : Ac-U PunctureSpeed : 4
Strength : 3
Sexy : 2
Uncommon
Name : Gentleman Cannon
Speed : 4
Strength : 4
Sexy : 1
Uncommon
Labels:
2D,
action,
adobe,
app,
art,
as3,
card,
characters,
clean,
cool,
design,
development,
monster
Thursday, 6 September 2012
Carts hurt
Today I was mostly working on getting the shopping cart up and running, but I also worked a little bit on the garbage generation system. While I was doing a test run I noticed that I was sometimes getting ten or more bad garbage in a row. I found this became frustrating and boring very quickly so I knew I had to make it so that a good garbage would drop every few bad garbage, making sure there was always a goal on screen for the player to work towards. I had to partly rebuild my garbage generation system but it's defiantly for the better now. I was using a while loop to try and generate a piece of garbage, if the garbage selected was too expensive then it tried again. One problem with this was that only the good garbage had a chance of being rejected since the bad garbage doesn't take away from the remaining points for the current level. I fixed this issue by moving the while loop to inside the good garbage generation inside the general garbage generation function. This way if the good garbage was too expensive it would try for another good garbage instead of possibley spawning a bad garbage instead. I also put in a counter that, after four bad garbage have spawn makes it so it automatically spawns a good garbage next, just in case the random numbers keep coming back bad garbage.
For the shopping cart I have it so if your at the front and it hit, the cart bouncing back some and your rubbish is pushed the other way for a second. It also takes away one health when it hits. I get around having to make giant leaps over the whole cart I added in that if you land on the top of the cart it bounces you up to near the top of the screen, you can't jump any more after that but you can fall quickly if the down arrow is pressed. In the video that's posted the bouncing off the top of the cart hadn't been added yet.
The last thing I add is that once a jump is started you can only travel in one direction. After coding it though I didn't think it was as fun to jump around so I've commented it out for the time being, however I might change my mind after I've tweaked with the jumping some more.
For the shopping cart I have it so if your at the front and it hit, the cart bouncing back some and your rubbish is pushed the other way for a second. It also takes away one health when it hits. I get around having to make giant leaps over the whole cart I added in that if you land on the top of the cart it bounces you up to near the top of the screen, you can't jump any more after that but you can fall quickly if the down arrow is pressed. In the video that's posted the bouncing off the top of the cart hadn't been added yet.
The last thing I add is that once a jump is started you can only travel in one direction. After coding it though I didn't think it was as fun to jump around so I've commented it out for the time being, however I might change my mind after I've tweaked with the jumping some more.
Friday, 24 August 2012
SO MANY RATS
So I've made some major strides with my Rubbish game over the past few days. I had a lovely fatal error that was causing my flash program to crash whenever it encountered the problem, the really annoying part was it was randomly happening and since it was crashing flash I couldn't even read the traces to find out where the error was located.
Luckily I had time and process of elimination by my side and after commenting out large, then progressively smaller chunks of code, I was able to find where the problem was located....i can only assume. The strange part was it had to do with my garbage spawning however the problem shouldn't have been one. To decide wither the garbage that was spawned was going to be good or dangerous I had a random number chosen, 1 or 2, using my randomNumber function. Then if the number was 1 I would make my isBad Boolean false, else i would make it true, I would then pass this along to my garbage class and it would use the Boolean to choose from the correct array of items. This should mean even if for some strange reason the randomNumber function was wrong and I got a number that wasn't 1 or 2, a garbage would still be created. If I always spawned a good garbage, flash wouldn't crash, and if I always spawned a bad garbage flash wouldn't crash, I just commented out the if statements and the randomNumber generation and hard coded in the true or flash in the setUp function of my garbage.
I was finally able to fix my problem by simply having the same code, but in my garbage class so the playScreen class would just spawn a garbage and then the garbage would figure out if it was good or bad, using the same method I was trying to use on the play screen. For some reason I haven't had a crash since even though it shouldn't make a difference wither I do the randomNumber and Boolean assignment inside garbage or outside and pass it in.
I was able to get rats added, with different amounts and types spawning depending on the current level the player is on. The rats move forwards and can only be killed if the rubbish jumps and falls on them. If a rat makes it all the way to your garbage pile alive, it takes the last item you caught, along with the number of points it's worth and runs off screen. Soon I'll be able to add a few more btns to the level select screen and I'll have my basic first five levels complete.
Luckily I had time and process of elimination by my side and after commenting out large, then progressively smaller chunks of code, I was able to find where the problem was located....i can only assume. The strange part was it had to do with my garbage spawning however the problem shouldn't have been one. To decide wither the garbage that was spawned was going to be good or dangerous I had a random number chosen, 1 or 2, using my randomNumber function. Then if the number was 1 I would make my isBad Boolean false, else i would make it true, I would then pass this along to my garbage class and it would use the Boolean to choose from the correct array of items. This should mean even if for some strange reason the randomNumber function was wrong and I got a number that wasn't 1 or 2, a garbage would still be created. If I always spawned a good garbage, flash wouldn't crash, and if I always spawned a bad garbage flash wouldn't crash, I just commented out the if statements and the randomNumber generation and hard coded in the true or flash in the setUp function of my garbage.
I was finally able to fix my problem by simply having the same code, but in my garbage class so the playScreen class would just spawn a garbage and then the garbage would figure out if it was good or bad, using the same method I was trying to use on the play screen. For some reason I haven't had a crash since even though it shouldn't make a difference wither I do the randomNumber and Boolean assignment inside garbage or outside and pass it in.
I was able to get rats added, with different amounts and types spawning depending on the current level the player is on. The rats move forwards and can only be killed if the rubbish jumps and falls on them. If a rat makes it all the way to your garbage pile alive, it takes the last item you caught, along with the number of points it's worth and runs off screen. Soon I'll be able to add a few more btns to the level select screen and I'll have my basic first five levels complete.
Sunday, 8 April 2012
Nothing like a ruler to the face
I've been working away at the combat and have run into some very annoying problems, covering just about every part of my combat so far. However as of right now the player can start combat, a random number of zombies stumble into combat, if there is more then one it shows a chibi of the waiting zombie type. The player can select both their melee and gun, and once both choice are accepted the player does it's two attacks.
If the zombie is alive at this point the zombie then picks the attack it's going to do, or possibly even heal itself, and then plays the corresponding animation. The player can kill the zombie resulting in it's death animation and if there is a waiting chibi, it will walk forwards to take the previous zombies place. Once it gets to the right location, it stops moving, one of the three possible zombies from the chibi's zombie type is spawned and the chibi is removed. It then checks to see if there is another zombie waiting, if so it then adds another chibi and combat starts again.
Tomorrow I'm going to work on adding in the 'snack' option for players to heal themselves along with fixing the zombies healing so that it is fully effective. (See video for glitch)
If the zombie is alive at this point the zombie then picks the attack it's going to do, or possibly even heal itself, and then plays the corresponding animation. The player can kill the zombie resulting in it's death animation and if there is a waiting chibi, it will walk forwards to take the previous zombies place. Once it gets to the right location, it stops moving, one of the three possible zombies from the chibi's zombie type is spawned and the chibi is removed. It then checks to see if there is another zombie waiting, if so it then adds another chibi and combat starts again.
Tomorrow I'm going to work on adding in the 'snack' option for players to heal themselves along with fixing the zombies healing so that it is fully effective. (See video for glitch)
Labels:
app,
blood,
chibi,
combat,
cool,
death,
development,
fighting,
game,
interesting,
ken,
making,
new,
popular,
wheadon,
zombie,
zombies
Subscribe to:
Posts (Atom)


