renegadegd
12-19-2008, 07:17 PM
hi,
I’m trying to make a platform game based of this tutorial (http://www.emanueleferonato.com/2007/03/31/create-a-flash-draw-game-like-line-rider-or-others-part-5/).
The level that my character is walking through will be bigger than the screen so I changed the code to add the velocity to the background. So the background moves around the player giving it the affect the players moving through the level.
But when the background moves up and hits the players feet it is meant to add 1 to the y value until there isn’t a collision, instead it adds to the background until the player and background are not hitting at all.
Incase i didn’t explain that well at all, heres my game. (http://jonathanchisholm.co.uk/char_jump_2.html)
and Heres my code. (http://utilitybase.com/paste/10320)
When i try it in debugging mode with line breaks it works fine, but playing the game normally it doesn’t.
Any help with this would be great.
Thanks
I’m trying to make a platform game based of this tutorial (http://www.emanueleferonato.com/2007/03/31/create-a-flash-draw-game-like-line-rider-or-others-part-5/).
The level that my character is walking through will be bigger than the screen so I changed the code to add the velocity to the background. So the background moves around the player giving it the affect the players moving through the level.
But when the background moves up and hits the players feet it is meant to add 1 to the y value until there isn’t a collision, instead it adds to the background until the player and background are not hitting at all.
Incase i didn’t explain that well at all, heres my game. (http://jonathanchisholm.co.uk/char_jump_2.html)
and Heres my code. (http://utilitybase.com/paste/10320)
When i try it in debugging mode with line breaks it works fine, but playing the game normally it doesn’t.
Any help with this would be great.
Thanks