Deprecated: str_replace(): Passing null to parameter #1 ($search) of type array|string is deprecated in /var/www/vhosts/gamedevstudiogame.com/httpdocs/classes/client.php on line 124

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /var/www/vhosts/gamedevstudiogame.com/httpdocs/classes/client.php on line 124
Game dev studio

Classes

Concepts

Libraries

Objects

contractor »

conversationAnswerData »

engineStatData »

issueData »

playerPlatformSpecialistData »

projectReviewConclusion »

projectReviewRemark »

randomEventData »

statusIcon »

setType

Description

Set the animation playback type this animation should use. Animation types are defined on the animation library.

tdas.ANIMATION_TYPES = { -- bitmask
	PLAYONCE = 1, 
	LOOP = 2, -- PLAYONCE and LOOP are mutually exclusive
	RANDOMFRAME = 4
}

Arguments

1 number bitmask

a bitmask of the animation types to use.

Example

animObjInstance:setType(tdas.ANIMATION_TYPES.PLAYONCE + tdas.ANIMATION_TYPES.RANDOM_FRAME)