HomeIndex

Objects Functions

actorCostume() | actorCostume(actor,costume)
TBD
createObject() | createObject(image) | createObject(sheet,image)
TBD
objectState(object,state[,instant])| objectState(object)
Plays the animation state and sets the internal state to that.
If state is null, it plays the "default" animation.
If instant is true and it's a non-looping animation, then it goes to the last frame and stops. This is to allow looping animations to start, but animations like doors to go to the last frame of the curtent animation.
When an object's state changes, an optional callback to object.stateChange() is made. This allows the syncing of other objects to the state change. Lights for example.
If the state is set to "gone" then the object becomes untouchable.
playAnimation(object,animation[,loop])
Plays the animation animation and loops is set.
objectHidden(object,state)| objectHidden(object)
Sets or returns an objects hidden state.
Objects that are hidden are also untouchable.
objectTouchable(object,state)| objectTouchable(object)
Sets or returns an objects hidden state.
Objects that are hidden are also untouchable.
objectUseDir(object)
Returns the use direction, as defined in Wimpy.
objectUseDir2(object)
Returns the secondary use direction, as defined in Wimpy.
objectHotspot(object, lower_left, upper_right) | actorHotspot(actor, lower_left, upper_right)
Sets to rect for the actor or object hotspot centered on the position.
actorHotspot(bob, point(-18,0), point(18,70))
objectPosition(object,point|object|actor)
Returns of sets the position of an objct
objectOffset(object,point) | objectOffsetTo(object,point,time) | objectOffsetTo(object,point,time,curve)
Sets the objects offset. The offset does not change render or sorting order.
objectScale(actor,scale) | objectScaleTo(object,scale,time) | objectScaleTo(object,scale,time,curve)
Sets the objects scale.
objectAlpha(actor,alpha) | objectAlphaTo(object,alpha,time[,curve])
Sets the objects alpha.
objectUsePos(actor,pos[,facing]) | objectUsePos(actor[,facing])
Sets or returns the use position for an objct.
This is typically set from a spot when also has facing direction.
objectUsePos2(actor,pos) | objectUsePos2(actor)
Sets or returns the use position for an objct.
This is typically set from a spot when also has facing direction.
objectAttachToLayer(object,layer)
Attaches an object to a parallax layer.
objectUseLighting(actor|object, state)
Sets an object to be lit by room lighting.