
05-24-2001, 04:35 AM
|
RadioActive Monkeeh
|
 |
Join Date: Apr 2001
Location: dirty south
Posts: 2,112
|
|
onwater isnt like it sets the animation to it ..
(might be buggy just posted it here , not tested)
this wont 'act' like its on grass but it looks like ur on grass.
//1.5 to x and 1.5 to y to check if player is on in the water
if (onwater(playerx+1.5,playery+1.5)) {
//check to see if player is moving
if (keydown(0)||keydown(1)||keydown(2)||keydown(3)) {
//if so make him the walk gani
if (!strequals(#m,walk)) { setani walk,; }
}
//else idle gani
else { if (!strequals(#m,idle)) { setani idle,; } }
} |
|
|