twinblade-infinity/scripts/action_set_motion/action_set_motion.gml

17 lines
319 B
Plaintext
Raw Permalink Normal View History

/// @description (Old DnD) - set motion
/// @param dir direction
/// @param spd speed
function action_set_motion(argument0, argument1) {
var dir = argument0;
var spd = argument1;
if (global.__argument_relative) {
dir += direction;
spd += speed;
} // end if
direction = dir;
speed = spd;
}