I have a problem with my sprites. Ive got next code in main
local sprite = Bitmap.new(Texture.new("textures/playertexture.png"))
stage:addChild(sprite)
And my project settings is Letterbox 540*960
If I use 540*960 Ive got good smooth view like this dl.dropboxusercontent.com/u/51701372/good.JPG
when I change Player resolution to 768*1024 and any other NOT proportional Ive got glitchy image like this dl.dropboxusercontent.com/u/51701372/shit.JPG
Why all scalemodes make sprites looks glitchy, when I didnt use any scale direct on sprite ? How to fix it ?
Version of Gideros 2013.09.1
vk.com/yan_alex
Comments
Try to set antialising true, i guess it will solve your problem. It is the second optional parameter of Bitmap.new function, by default it is false i guess.
local sprite = Bitmap.new(Texture.new("textures/playertexture.png"),true)
stage:addChild(sprite)
Edit: The parameter should be passed to Texture not to Bitmap function
Marked ur answer as Accepted, YOU saved a f*** LOT time for me, THANK A LOT!
local tr = Bitmap.new(texturePack:getTextureRegion(regions[i]))
texturePacker = TexturePack.new("spritesheet.txt", "spritesheets/spritesheet.png",true)
local texture = texturePacker:getTextureRegion( texture_path)
But WHY this is NOT IN DOCUMENTATION ??? I can read manuals, im not a child, how to find this all, and where, if not in manuals ?
http://docs.giderosmobile.com/reference/gideros/TexturePack/new
Fragmenter - animated loop machine and IKONOMIKON - the memory game
assuming this, it's emphasised well i think, there are even examples:
http://docs.giderosmobile.com/reference/gideros/Texture
Fragmenter - animated loop machine and IKONOMIKON - the memory game
Likes: dreiko65