Since the first post, I have added in a lot more features into the flash project. I am up to version 4.2 now. Since the last update, I have added in a "hitTestObject" code that stops the character from walking too far to the left, or to the right. It took some brainstorming to come up with a method of doing so, and in the end, I used an if statement that tested if "hitobjectleft" was true or not. If it was false, the character is able to move in the left direction. If it was true, the character would stop, and revert to the standing forwards frame. I used the same code to stop the character, JP, going too far to the right.
|
The "hitTestObject" on the left was a Petrol Can. |
I have also begun work on creating the extra animations for the character, such as jumping, turning, and the interactive object animations. The Jump animation is fully done, and is activated by pressing the "up" arrow key, which then cycles through the frames up the jump. I am considering adding in a small parallax upwards scroll to compliment the jump, but i'm not sure if it will work, or if I will just leave it as it is at the moment.
|
The key framing for the turn animation is still in progress. |
Also since the last update, I have added in the first interactive event, which is the spinning up of the plane's propeller. This is activated, one time, once JP touches off the side of the plane. I drew out some frames of the propeller spinning, and then exploding off, and landing on the other side of the background, which stays there until the swf is restarted. I have yet to create the animation of JP starting the propeller spinning, which is what my next task is. The other interactive object I have in mind is the starting of the campfire that is seen on the foreground layer.
|
The Plane before JP interacts with it. |
|
The Propeller spinning upon interaction with it. |
By the end of the week I hope to have also implemented the ability to walk around the center 50% of the stage, and have the parallax begin on the right and left 25% of the stage. After this is done, the remaining things I have left to do on the project should just be the animation of events, and turning.
Here is a .swf of the project as it is at the moment:
https://www.dropbox.com/s/bgrnrx05fccyclb/brendan_Walsh_Parallax_Scrolling_V4_2.swf