/tg/ Station 13 - Modules - TypesVar Details

smooth_move

Vars

angleAngle at which we move. 0 is north because byond.
saved_delayActual move delay, as delay will be modified by move() depending on what direction we move in
x_rateThe rate at which we move, between 0 and 1. Cached to cut down on trig
x_signSign for our movement
x_tickerWhen this gets bigger than 1, we move a turf

Var Details

angle

Angle at which we move. 0 is north because byond.

saved_delay

Actual move delay, as delay will be modified by move() depending on what direction we move in

x_rate

The rate at which we move, between 0 and 1. Cached to cut down on trig

x_sign

Sign for our movement

x_ticker

When this gets bigger than 1, we move a turf