ClassesMoveByOn this pageMoveBy Used for implementing actions for the [[ActionContext|Action API]].ImplementsActionIndex ConstructorsconstructorPropertiesxyMethodsisCompleteresetstopupdateConstructors constructornew MoveBy(entity: Entity<any>, offsetX: number, offsetY: number, speed: number): MoveByParametersentity: Entity<any>offsetX: numberoffsetY: numberspeed: numberReturns MoveByProperties publicxx: numberpublicyy: numberMethods publicisCompleteisComplete(entity: Entity<any>): booleanParametersentity: Entity<any>Returns booleanpublicresetreset(): voidReturns voidpublicstopstop(): voidReturns voidpublicupdateupdate(_delta: number): voidParameters_delta: numberReturns void
Used for implementing actions for the [[ActionContext|Action API]].