Ive been messing with player controls for a 3rd person game (Kinda like Rune)
Im using collisionNY() command to see if it was on the ground/floor (to set the animation seq)
;---------
index=countcollisions(entity)
if collsionNY(entity,index)<>0
on_ground=1
else
on_ground=0
endif
;---------
this works aslong as im on a flat plane.
but it doesnt seem to work on ramps., (maybe i need to round the the result to and int?)
Im using the check to set the jump and falling animations ,but when on a ramp it stays in falling seq.
would a linepick be better?
I could just seperate the floor from the level and
just use
if countcollision(floor)>0
on_ground=1
else
on_ground=0
endif
bit of a hassle tho..because the levels are made in maplet ,so I would spend a while picking out face's.
any idea's?
Thanks in advance
Zmatrix
Im using collisionNY() command to see if it was on the ground/floor (to set the animation seq)
;---------
index=countcollisions(entity)
if collsionNY(entity,index)<>0
on_ground=1
else
on_ground=0
endif
;---------
this works aslong as im on a flat plane.
but it doesnt seem to work on ramps., (maybe i need to round the the result to and int?)
Im using the check to set the jump and falling animations ,but when on a ramp it stays in falling seq.
would a linepick be better?
I could just seperate the floor from the level and
just use
if countcollision(floor)>0
on_ground=1
else
on_ground=0
endif
bit of a hassle tho..because the levels are made in maplet ,so I would spend a while picking out face's.
any idea's?
Thanks in advance
Zmatrix