Quick Links: Download Gideros Studio | Gideros Documentation | Gideros community chat | DONATE
setFillStyle(Shape.TEXTURE) not working when using a texture region. — Gideros Forum

setFillStyle(Shape.TEXTURE) not working when using a texture region.

FavflyFavfly Member
edited November 2016 in General questions
I've had a look through the reference manual, but can't see a way to get this working...
myTexture = self.g:getTextureRegion("thisTexture.png")
shape.box:setFillStyle(Shape.TEXTURE, myTexture)
It works fine when: myTexture = Texture.new("thisTexture.png")
But, I'm trying to keep all my textures on a texture sheet.

Comments

Sign In or Register to comment.