Description

Change the position of the entity and the element. Returns object {x: , y: }

Usage

Parameters

  • x {Integer}

    Position X

  • y {Integer}

    Position Y

Returns

Object

Example

In ready method

 var entity = Class.New("Entity", [stage]);
 entity.position(10, 50);

Discussion