Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs

ct.js

Create cool 2D games with a free game editor! · By Cosmo Myzrail Gorynych

sprite composer

A topic by qwik06 created Apr 27, 2019 Views: 219 Replies: 3
Viewing posts 1 to 3

as, I'm learning the ins and outs of ct.js I decided to give the catmod SPRITE COMPOSER a try. apparently, I am doing something wrong or I have some code in the wrong place.  nothing happens when I insert 

this.graph ='nameOfAnimation';

[code inside catmods settings]

ct.sprite(

'textureName', 'nameOfAnimation'

[1,2,3,4]

);

what am I missing??

Developer

It should be this.tex = 'nameOfAnimation'; for version next-3

I forgot to update its docs (:

hi,

I'm developping a game for a school contest and i would like to use Sprite Composer but I don't really understand how it works. I'm writing : 

ct.sprite(
    'Sam', 'SamAnimated',
    [0,1]
    )

Into the Sprite Definition but I don't know what to do next 

Developer

Use this.tex = 'SamAnimated'; inside your type's code to apply the created sprite.