In this case we had to create the foreground and code in physix and gravity. The character would also get a new movement, the jump. I also wanted the camera to follow the character as he moved along the screen.
However, I encountered a big problem with my character when I followed the example. When my character stood in his Idle animation in the game, he started floating up and down unexpectedly. It looked like the hitbox tot he character were increasing each time his head went up and down, and so the character levered. After much failing I found out that I had to remove a height code in my actionscript file, that caused this jmuping. And my character finally started to walk and idle normally.
Also we had to code in a jump. We could try to experiment with the velocity of the jump, and see what acceleration in the jump would fit in on our character. After a while, I found out that I wanted my character to have a not so high jump, and rather try to code in a double jump (if I push jump two times, he would jump higher) as it would increase the gameplay a bit.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment