Discord
Login
Community
DARK THEME

Sprite Folders Use?

I was just wondering what you are supposed to use sprite folders for, as when i try to put sprites in the folder, they wont show up in the project.

is there a way to make them show up? or are the folders for a different purpose?

What code are you trying to use to draw the sprites? Imagine it as Linux/MacOS paths without the preceding slash, so if this is your folder structure:

/
 |--sprite1
 |--folder1/
     |--sprite2
     |--folder2/
         |--sprite3

Then you can use this code:

screen.drawSprite("sprite1", -20, 0, 16, 16)
screen.drawSprite("folder1/sprite2", 0, 0, 16, 16)
screen.drawSprite("folder1/folder2/sprite3", 20, 0, 16, 16)

thanks, I've never used Linux or MacOS before, so I was unaware that you could just put the folder stuff in the string.

Validate your e-mail address to participate in the community