GDP Functions


Position

Rotation

Scale

Collision

Appearance

Timers

Animation

Attributes

Miscellaneous

Animation

.frameIndex()

The function .frameIndex() will change the frame of a given object. The function can also be used to return the current frame of an item. The function takes in a single parameter, that being the desired frame.

object.frameIndex(1);    
//changes 'object' to frame 1

See Further:

  1. Dojo Practice

.animation()

The function .animation() will set the frame of an object. The function take in one parameter: the object's desired frame name.

object.animation("default");    
//changes 'object' to frame 'default'

See Further:

  1. Meteors Deluxe

.incrementAnimation()

The function .incrementAnimation() will change the frame of an object by 1. The function takes in no parameters

object.incrementAnimation();    
//changes the frame of 'object' by 1

See Further:

  1. Meteors Deluxe