Class: A_FollowPath

b5. A_FollowPath

b5.A_FollowPath

new b5.A_FollowPath(target, path, start, speed, angle){b5.A_FollowPath}

actions/generic/movement.js, line 362

Action that causes an object follows a path, does not exit

Created actions should be added to an actor or scenes actions list to be processed

For a complete overview of Actions see Booty5 Actions Overview

Name Type Description
target string | b5.Actor

Path to or instance of target object

path Array.<object>

Path to follow, array of x,y values that define the path, e.g. [x1,y1,x2,y2,etc..]

start number

Distance to start along the path

speed number

Speed at which to travel down the path

angle boolean

If set to true then angle will adjust to path direction

Returns:
Type Description
b5.A_FollowPath The created action