Classes

developer »

gameProject »

pedestrianController »

playerPlatform »

punishment »

team »

Concepts

Libraries

Objects

registerLayerCollection

Description

Register a layer collection. A layer collection is a table containing information about the animations associated with a single animation ID. These animations must be pre-registered with the tdas library first.

Arguments

1 table data

the data to register.

Example

avatar.registerLayerCollection({
	id = avatar.ANIM_WALK,
	layers = {legsAnim, hairAnim, headAnim, torsoAnim, handsAnim, shoesAnim},
	colorMap = {"legColor", "hairColor", "skinColor", "torsoColor", "skinColor", "shoeColor"} -- each index corresponds to the value in the 'layers' table, this is necessary for picking the right colors

})