ID:165563
 
Well I've set up a very simplistic pixel movement snippet.
mob
Dot/icon='Dot.dmi'
animate_movement = 0
client
East() {mob.pixel_x += 1; if(mob.pixel_x >= 16) if(mob.Move(get_step(mob,EAST)))mob.pixel_x = -16}
West() {mob.pixel_x -= 1; if(mob.pixel_x <= 16) if(mob.Move(get_step(mob,WEST)))mob.pixel_x = 16}
North() {mob.pixel_y += 1;if(mob.pixel_y >= 16)if(mob.Move(get_step(mob,NORTH)))mob.pixel_y = -16}
South() {mob.pixel_y -= 1;if(mob.pixel_y <= 16)if(mob.Move(get_step(mob,SOUTH)))mob.pixel_y = 16}

Is there anything I could do to make this better? I've thought of doing this through mob/Move(), but I'm not sure how I would go about doing that.

And what would I check for when doing pixel-based collision?