When loading a texture into a bitmap, I could use an image or a texture sheet:
--Using images:
gfx.potato = Bitmap.new(Texture.new(“images/mySpud.png”))
--Using texture sheet:
gfx.potato = Bitmap.new(self.g:getTextureRegion("mySpud.png"))
However, using images, I can load a texture without it immediately having to be a bitmap:
texture.spud = Texture.new(“images/mySpud.png”)
This is very useful to me. My question is: Can I do the same with a graphic from a texture sheet?
Cheers, in advance.
Comments
Likes: Favfly
Fragmenter - animated loop machine and IKONOMIKON - the memory game
Likes: Favfly
https://deluxepixel.com
Likes: SinisterSoft