Wednesday, February 06, 2008

Flash Game (Again) (ARGHH)

Grrr this is really making me go insane now, but at least its increasing the amount of blogs I am posting.

It seems that when ever I get one thing working, the next problem I face seems to cause something previous to stop working or something and so I have decided to go back to basics and started with a simple hit test between blocks. I was having problems with walls stopping the character from moving so I created a new flash document which ONLY did this.

Tuesday, February 05, 2008

Flash Game v0.02

This may seem stupidly basic but it has taken me so long, I was really struggling with the hitTest for multiple blocks but it seems to be working! Now I've got to make it so blocks can be walked on as well making the bottom character move simeltaniously (which I had problems with, hence it falling off the stage as soon as the game begins.

2D 05-02-08 7.swf
Free file hosting from File Den

versions, changes and problems

0.001 - detect keypress, trace output
0.01 - map left and right arrow keys to move the character
0.012 - map space bar to jump
0.2 - Wall and floor collision

I didn't really come across anything much until the wall and floor collision. I found the chanracter was walking through the walls before the hitTest was able to work. After a lot of changing of code I decided to start the code for the left and right movement from scratch and managed to get it working pretty well, as far as I can tell anyway, by simply giving a margin to the x value in the hit test. (see the file above to view).

I am currently struggling getting the bottom character to behave the same as the top, although the code is pretty much identicle so I'm not quite sure whats wrong there yet.

Monday, February 04, 2008

Term 2 Game Project

I have only just properly started on the actual coding of my game since my computer has been playing up. I spent the time planning the game on paper and designing the levels and interactivity. Once I got my computer working my internet wasn't working so I then couldn't get online to find help and code examples so I quickly got to a dead end.

At uni I was able to look at different files on the VLP and bits I had worked on in different projects which helped me over come the problem I was having with making my character jump. My internet is now back up so production of my game should be quite faster than before. Below is a plan of the first part of the game which gives an idea of how it will work.

The animation stops abruptly because its unfinished but I thought I would put it on here as it shows the general concept of the game. If its not obvious from the animation, the controls move both the top and bottom character (or block in the case of this example) and you must use stratergy to get through the game, finding ways to move the characters independently.
level plan.swf