Impact

This forum is read only and just serves as an archive. If you have any questions, please post them on github.com/phoboslab/impact

1 decade ago by Vertig0

Hey there,

I was testing my first attempt of a game and i constantly have this errorr (the title), the weird thing is that the game dont draw the sprite, for example, ninth position. But this exists.

obviusly i try to solve this myself and after that, reading, i only found one example, when the problem was the image size (for the divition), but in my case, the size of all sprite is right.

Can anyone help me?

Thknz!

1 decade ago by fugufish

definitely something wrongly set in your animation file. Paste your code here, with a link to the sprite sheet, and we'll help troubleshoot.

an example of how I used to screw up


        // the sprite sheet has 4 frames

	init: function( x, y, settings ) {
		this.addAnim( 'idle', 1, [0,1,2,3,4] ); // throws an error because there're 5 frames added here
		this.parent( x, y, settings );
	}

1 decade ago by Vertig0

Dude,

Thknz for your answer, but like a PC, when i post this, the game start to work fine.

Maybe the game is just trolling me.

Thanks again!
Page 1 of 1
« first « previous next › last »