Sunday, 30 March 2014

Interactive Programming, Checkpoint 2

This week was significantly more productive than the previous one for this assignment. I got the parallax scrolling implemented, got my character to stop once he reached the edge of the stage, and got further animations done for my character. 

The problem I had last week that held me back was annoyingly simple, I had forgotten give all the symbols on the stage instance names, which slowed my progress down a lot. I wrote the action script so that when the right key was pressed, the "x" coordinate decreased, and when the left key was pressed, the "x" would increase. This gave the illusion of depth, with the layers closer to the screen moving faster than the ones at the back.

To stop the character from walking off the background, I implemented that when he came in contact with the sign or tent, he gets pushed back into the right place.I hope to refine this method better next week. i also finished a death animation that will play when he  gets near the sign. I am having difficulty getting it to work so far,but shall hopefully have it added by next week. 

finally, I animated the jump animation that will be activated when you press the up key.

No comments:

Post a Comment