createActor(key, actor_table[,anim_file)
TBD
createActor(key, actor_table[,anim_file)
TBD
playAnimation(actor,animation[,loop])
Plays the animation animation and loops is set.
actorUseWalkboxSet(actor,set)
Assigns the walkboxes set number for the actor use. Zero will disable using walkboxes.
Currently there is only one set, but future plans will allow for up to five.
sayLine() | sayLine(text) | sayLine(actor,text)
Causes the actor to start talking using text.
If an actor is specified (or is null), then the currentActor is used. If sayLine() is used, then everyone will stop talking. if text is null the line will be skipped.
actorAt(actor,[room,]pos|object|actor)
TBD
actorPosition(actor)
Returns the positon of an actor. If you want to set the position of an actor, use actorAt
actorDistanceTo(actor)
Returns the positon of an actor. If you want to set the position of an actor, use actorAt
actorHideLayer(actor,layer[,state=true])
TBD
actorShowLayer(actor,layer[,state=true])
TBD
actorStopWalking(actor)
Stops an actor that is walking.
actorWalkForward(actor,dist)
Walks an actor forward dist pixels.
Mainly used when entering rooms.
actorFastWalk(actor,state)
Returns or turns on and off fast walking.
actorColor(actor[,color])
Sets or returns the actor's color.
actorWalkTo(actor,pos|object|actor[,dir])
Walks an actor to the pos, object or actor and then faces dir.
actorFace(actor,pos|dir|object|actor)
Instantly turn to the pos, dir, object or actor
actorFacing(actor)
Returns the direction an actor is facing.
actorLockFacing(actor,ok_dirs)
Locks the facing of an actor to the direction bits in ok_dirs.
actorOffset(actor,point) | actorOffsetTo(object,point,time) | actorOffsetTo(object,point,time,curve)
Sets the actors offset. The offset does not change render or sorting order.
actorScale(actor,scale) | actorScaleTo(object,scale,time) | actorScaleTo(object,scale,time,curve)
Sets the actors scale.
actorAlpha(actor,alpha) | actorAlphaTo(object,alpha,time[,curve])
Sets the actors alpha.
actorTurnTo(actor,pos|dir|object|actor)
Turn to the pos, dir, object or actor over 2 frames.
actorUsePos(actor,pos[,facing]) | actorUsePos(actor[,facing])
Sets or returns the use position for an actor.
This is typically set from a spot when also has facing direction.
actorUsePos2(actor,pos) | actorUsePos2(actor)
Sets or returns the use position for an actor.
This is typically set from a spot when also has facing direction.
actorPos(actor)
Returns the position of the actor in the room
This is not the use position and is relativly useless for objects. For that use objectUsePos() or actorUsePosition
isActorWalking(actor)
Returns true if the actor is walking.
isActor(actor|object)
Returns true if the object is an actor.
isActorTalking(actor)
Returns true if the actor is talking.
actorRemapAnimation(actor,remap_table|null)
Remaps animatons names based on the remap_table
actorRemapAnimation(delores, { "walk": "climb" })
actorRemapAnimation(delores, { "left": "back:, "right": "back", "left": "back })
Delores will now play the
climb animation when
walk is called. She will also only face
back actorRemapeAnimation(delores, { "climb": null })
Removes the
climb remapping.
actorRemapeAnimation(delores, null)
Removes all remapping.
The remapping only happens once, you you can't remap
walk to
climb and then
climb to
fall. You would have to remap
walk to
fall.
isActorInRoom(actor[,room])
Returns true if the actor is in room or the selected actor and current room if ommited.
isActorInTrigger(actor, trigger)
Returns true if the actor is in the trigger.
cameraOffset(actor, point)
Offset from the actor the camera uses when following the actor.
actorUseLighting(actor|object, state)
Sets an actor to be lit by room lighting.
Copyright 2020 Terrible Toybox, Inc. All Rights Reserved.