ID:160036
 
Hw i can add some delay on a area.... when the mob is walking
mob/var
wdelay=1
walk=0
area/swamp
Enter(mob/O)
If(istype(O,/mob))O.wdelay=2
area/normal
Enter(mob/O)
If(istype(O,/mob))O.wdelay=1
mob/Move()
if(walk)return
src.walk=1
..()
sleep(src.wdelay)
src.walk=0


Something like that, some sort of override to the Move system to include walk delays and then areas that entering them modify the delay.
In response to Masterdan
Greetings Masterdan.

This maybe a little offtopic but I had a question, more like an opinion based question. What are your opinions on pixel-based movements? If you made the mob move less pixels than normal for a slowler walk and move more pixels for a faster walk, any ideas? Is it better to override the move system this way? Or should I do what everyone else does, which is sleep()?

Thanks Much.
Haywire
In response to Haywire
Haywire wrote:
Greetings Masterdan.

This maybe a little offtopic but I had a question, more like an opinion based question. What are your opinions on pixel-based movements? If you made the mob move less pixels than normal for a slowler walk and move more pixels for a faster walk, any ideas? Is it better to override the move system this way? Or should I do what everyone else does, which is sleep()?

Thanks Much.
Haywire

It is a lot of work to do it that way, it may pay off but basically you need to ensure the network lag on your game is really low, basically it wont look all that great if you get a .5 second delay anyway right, anyway i read an interesting post about how the legend of zelda: a link to the past game handles pixel movement and i felt it was really really neat. If you use good math for pixel collision you could really break away from the mold and make a really neat byond game, I would be super thrilled to see somebody do it, I always have wanted to and I sort of played around with it with a driving demo i made but never a full scale game. So yeah, in summary go for it!
In response to Masterdan
Show us the post o_O

I'd like to read it. The movement in that game is so smooth.