Pages

Labels

Monday, May 17, 2010

Fix for level design, basic AI

http://www.box.net/shared/402gnv5cep

this is not the multiple movieclip method discussed in the other posts, instead, I added a second "empty movieclip" to the level to act as the top-left corner of the level. this (theoretically) buys you twice as much room as before.

the main reason I did this is because not only is this a quick fix, but it also too much of the main code assumes that the entire level is inside of a single movieclip. More than that, it assumes that each level (including future levels that do not exist yet)is on it's own frame within that movieclip.

EDIT: I also got a basic enemy AI as per Trevor's specifications (looks back and forth, only chases the player if they are close enough AND the enemy is facing them) though I have already noticed a couple flaws that need fixed (try walking up to the enemy with the cannon equipped), it is a start.

No comments:

Post a Comment