Discord
Login
Community
DARK THEME

How to get a sprite from folders?

in my code i want the game to get the sprite that i want, but the sprite is inside a folder named "main" how did i make the game get it?

MicroStudio sprite names are like file paths. If you have a sprite called "sprite" in a folder called "folder," the sprite name is "folder/sprite."

draw = function()
  screen.drawSprite("main/yoursprite", 0, 0)
end

Post a reply

Progress

Status

Preview
Cancel
Post
Validate your e-mail address to participate in the community