Psych Engine - Character Functions
Psych Engine Logo
Psych Engine - Lua Script API

Character Functions

Functions to change a Character Group's position and make them dance.


characterDance

characterDance(character:String):Void

Makes a character play their idle animation if possible.
This is different from "playAnim" because it cycles through "danceLeft" and "danceRight" automatically for characters.


getCharacterX

getCharacterX(character:String):Float

Returns a Character Group's X, this will affect all character positions, even if you use "Change Character" event.


getCharacterY

getCharacterY(character:String):Float

Returns a Character Group's Y, this will affect all character positions, even if you use "Change Character" event.


setCharacterX

setCharacterX(character:String, value:Float):Void

Sets a Character Group's X, this will affect all character positions, even if you use "Change Character" event.


setCharacterY

setCharacterY(character:String, value:Float):Void

Sets a Character Group's Y, this will affect all character positions, even if you use "Change Character" event.