Oh, also, is there an easy way to turn multi-tiled mobs around? I have a multi tiled boat and I want it to turn, but it's taking me up to 6 hours just to complete one turn on it in one direction. Is there a more effeicient way to accomplish this? :
client/East()
if(src.mob.control)
mob.dir = turn(mob.dir, -45) // Turn -45 degrees
src<<"your direction is: [src.mob.dir]."
var
done
done1
done2
for(var/mob/boat/a in src.mob.control:top)
switch(src.mob.dir)
if(EAST)
if(!done)
done=1
src.mob<<"moved east"
a.loc=get_step(a,SOUTHEAST)
a.loc=get_step(a,SOUTHEAST)
a.dir=EAST
else
a.dir=EAST
a.loc=get_step(a,SOUTHEAST)
if(SOUTH)
if(!done)
done=1
src.mob<<"moved south"
a.loc=get_step(a,SOUTHWEST)
a.loc=get_step(a,SOUTH)
a.dir=SOUTH
else
a.loc=get_step(a,SOUTHWEST)
a.dir=SOUTH
//This is all I have so far and i'm still trying to get south to line up properly >_>
I'm working with a multi-tiled boat that looks like this:
* = peice of boat
**
** This is it facing north
**
*** This is it facing east
***
How am I to get it to change directions without spending hours of my life trying to get it all to line up properly? What scares me is when i'm adding bigger boats >_> This is a small one. What happens when I have a boat like 12x6? It will take just as long as it would to build a boat in real life as it would to program it >_>. (ok, i'm not serious, but it would take like up to 4-5 weeks to get it all to line up properly >_<
And i'm not smart enough to create a dantom to handle the boat changing directions (if it's even possible).
No, thats a deep feature of BYOND (I assume DS) that doesn't have to do with exactly how the atom moves - but with it's animate_movement var (look that up).
Yes, see - don't hardcode it. You have to create some sort of system that can work with multiple multi-tile object shapes and whatnot - which WILL be complex. Sorry for posting a mostly useless post, but the time is too late now for me to try helping with things that actually require me to think.
I've no idea, of course, but I assume building a boat (ie, unhuge ferry) takes that or less. >_>
I'm sure you can learn how to that if you want, though. You're a pretty good learner 'n all from what I remember (Avren, right?).