PDA

View Full Version : Setshape2


Slaktmaster
07-05-2001, 09:43 PM
Can anyone tell me if there is a way to make the player not swimmin when over water. When I use setshape2 the character still swims, nonblocking tile didnt work, chair didnt work.

I wanna get this [email protected]

(With a 36*36 image with water under)
if (playerenters) {
setshape2 6,6,{22,22,22,22,22,22,22,22,22,22,22,22,8,8,8,8,8 ,8,8,8,8,8,8,8,22,22,22,22,22,22,22,22,22,22,22,22 };
}

It it still swimming when in the middle :(

KJS
07-05-2001, 10:29 PM
you can disabledefmovement

or if it goes on a npc you can say

drawunderplayer;

(I have never tested that out if you walk or swim)

or you can change the default gani of swim to walk with the new npc command replacegani
it would be like

replacegani swim,walk;

(you would do that for how ever long you wanted them to be on it)

then you would do after they got off the spot or something do this

replacegani swim,swim;

well this will count them as swimming in the coding like
if(onwater(x,y))

it would say it is on the water, but it would set the ani so it looks like they are walking...

Slaktmaster
07-05-2001, 10:52 PM
Changing the tiles, hm?
How?
Setshape2 or Board[] stuff

Slaktmaster
07-06-2001, 01:04 AM
I'll try it, thanks for the tip.