ID:270135
 
How do you shift screen objects, say, two tiles up from their original position?
You change its screen loc. If you wanted to do it without reading the screen loc, and determining what coordinates it was at from that, you could just store their screen loc x and y value as seperate variables whenever you set it.

obj/screenobj
var
screen_x
screen_y
proc
SetScreenLoc(px, py)
screen_x = px
screen_y = py

UpdateScreenLoc()
screen_loc = "[screen_x],[screen_y]"

AddToScreen(client/C)
C.screen += src


~~> Unknown Person
In response to Unknown Person
Thanks. I knew it wouldn't be efficent to change each individual object screen_loc or make a new set of objects that are shifted and re-add them because there are a lot of objects. I had an idea like what you wrote here but I couldn't translate it into code. I'll check this out a little later.