Ask coding questions

← Back to all posts
Whenever I add a sprite it isn't 32 by 32!
h
p1ckl3

I am making a game and when I add a sprite, it says it is 32 by 32 px but is isn't. I need it to be 32 by 32 because when I add a sprite with another dimension, it messes up the whole game. Anyone know how to get a 32x32 sprite?

Voters
p1ckl3
Comments
hotnewtop
Coder100

in your sprite, you can add the width and height:

view the docs: https://kaboomjs.com/#sprite

also make sure when you make your sprites they are 32 x 32

MrVoo

What makes it not 32x32? All your sprites looks the same size