ID:1894399
 
(See the best response by Lummox JR.)
Code:
mob/verb
_000_CS_TEST()
//MISC
/*
src.FadeEffect("Out")
sleep(20)
src.Cutscene("In")
client.eye = locate(7,12,1)
src.PixelLocate(locate(7,16,1))
src.density=0
src.icon='Ghost.dmi'
src.move_speed=3
src.FadeEffect("In")
sleep(20)
*/

move(SOUTH)//why kurwa it's doesn't work?


Problem description:
Hi I use FA's Pixel movement system and i try made simple verb fo move player. (for cutscenes)
I try use simple a FA's Pixel movement proc
move(d)
But it's doesn't work.

When i edit action proc to:
mob
action()
return


it's work, but I can't move by arrow. :(
I need simple step()(in pixels) proc. :(
Best response
IIRC, his Pixel Movement demo is outdated as it predates actual native pixel movement. All you should need is something like this:

atom/movable/proc/step_pixels(d, dist)
var/dx = (d&EAST) ? dist : ((d&WEST) ? -dist : 0)
var/dy = (d&NORTH) ? dist : ((d&SOUTH) ? -dist : 0)
return Move(loc, d, step_x+dx, step_y+dy)
I think FA's pixel movement demo was updated to extend native pixel movement.