client/North()
src.mob.pixel_y++
Clearly doesnt work (right, atleast).
ID:160500
Aug 30 2008, 1:53 pm
|
|
Title. Not asking for code, asking what to do.
client/North() Clearly doesnt work (right, atleast). |
In response to ElderKain
|
|
That is actually very wrong, and buggy. Don't use that, but look around EbonShadow has one, and IanPeregine does too.
|
Title.
Anyway, you didn't think it'd be that easy, right? It's not very complex, but it won't get done by a single statement either, yeah. That code naturally never actually moves 'src.mob' to a new location, it just changes its visual displacement. The mob is never moving from his original tile, though - of course there will be problems. Once an offset is larger than 32 (or smaller than -32), you should move the atom to the new location at that direction, and re-tweak his offset vars. This changes the location properly, and doesn't have the problems you get from using too large offsets. |
In response to Bakasensei
|
|
Bakasensei wrote:
That is actually very wrong, and buggy. Don't use that, but look around EbonShadow has one, and IanPeregine does too. That one requires a BYONDscape Access to be able to get that, I just mentioned one that is availiable to us free people, and yea the IanPeregine's is accessable also, I didn't notice that one up there ^.^ http://www.byond.com/developer/IainPeregrine/IP_px |
http://www.byond.com/developer/VcentG/SimplePixelMovement
hope that helps.