A Component to make an entity in a platformer Walk

Constructor

new (options:WalkerOptions)

Create a new Walker component with options

Parameters:

null

options

Methods

set_controller (c:Controller):Void

Set controller

Parameters:

c

new controller

Returns:

controller = c

set_walk_speed (v:Float):Void

Set walk speed to given value

Parameters:

v

walk speed value

Returns:

walk_speed = v

Inherited Variables

Defined by Component

@:value(true)active:Bool = true

Whether or not this component gets updated

Inherited Methods

Defined by Component

get_name ():String

returns the name of this component

get_priority ():Int

returns the priority of this component

has_tag (tag:String):Bool

Returns whether or not this component is tagged with given tag

Parameters:

tag

Returns:

Bool return tags.indexOf(tag) >= 0

on_remove ():Void

Called when removed from an entity

set_priority (value:Int):Void

sets the priority of this component

Parameters:

null

value