It looks like you're new here. If you want to get involved, click one of these buttons!
Favfly
Member
myTexture = self.g:getTextureRegion("thisTexture.png") shape.box:setFillStyle(Shape.TEXTURE, myTexture) |
Comments
you can use the textureregion with an appropriate transformation matrix.
note these two parts of the reference:
**Shape.TEXTURE:** Sets the fill style as a textured. In this mode, the parameters are texture and an optional transformation matrix.
and
http://docs.giderosmobile.com/reference/gideros/TextureRegion/getRegion#TextureRegion:getRegion
see
http://giderosmobile.com/forum/discussion/1668/can-fills-use-a-textureregion-instead-of-a-texture/p1
especially the attached example of atilim.
Fragmenter - animated loop machine and IKONOMIKON - the memory game
Fragmenter - animated loop machine and IKONOMIKON - the memory game
Likes: SinisterSoft, pie, totebo
Dislikes: koeosstudio
Fragmenter - animated loop machine and IKONOMIKON - the memory game
Likes: keszegh, SinisterSoft, pie, Favfly, totebo
thank you