Hi, I have a problem im making an rpg (role playing gAME)
so far all I have made is a chracter who is movable. I would like this character to be able to jump, when i Tried it I couldnt Get HiM baCk DoWn again. any HeLp iS aPpreciated. thanks alot.
can anyone help?
What AS are you using to make him jump in the first place? If you store his _y coord as he starts to jump then you could use something along the lines of
onClipEvent(enterFrame){
if (_y-storedY>0) {
_y+=gravity
}
}
where storedY is the initial value and gravity is the rate of change in the y axis
Hey DMX did you sort this problem out because I also made a complete platform game with jumps, loss of health bar, life gain etc, so if I can help in any way let me know.
I’m off for lunch now but I’ll be back at 1.30pm.
99 posts and counting :bandit:
no im afraid i havent yet … i would really appreciate it if you could help me in any way chris.
Hi DMX,
I hope you are using flash 5 if so here is the makings of a platform game as promised.
let me know if you have any problems