Class: A_LimitMove

b5. A_LimitMove

b5.A_LimitMove

new b5.A_LimitMove(target, area, hit, bounce){b5.A_LimitMove}

actions/generic/movement.js, line 529

Action that limits movement of object to within a rectangular area, 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 that will be limited

area Array.<number>

Rectangular area limit [x,y,w,h]

hit string

Action to perform when object oversteps boundary (bounce, wrap, stop)

bounce number

Bounce factor

Returns:
Type Description
b5.A_LimitMove The created action