java - No ONE Here to help me !... Frustated about Different Size but same result when rendered -
update : sorry, earned tumbleweed badge before, , thread has been quiet whole day...
i editing whole question might not clear others help.
i modifying super jumper game (mario zechner's beginning android game) , i've come stuck in issue:
if @ image link above, see character image rendered in same size spring image.
i'm using texture atlas 1024x1024 px,
spring = new textureregion(items, 980, 90, 32, 40); charjump = new animation(0.2f, new textureregion(items,charx+32, chary, 64,160), new textureregion(items, charx+150, chary, 64, 160)); //char anim.
i using photoshop , put texture region required in atlas. each character image frame has size of 64x150 while spring image has size of 30x40
the world class camera width , height = 11f x 14f
world renderer class camera width , height = 11f x 14f
please give me clue, important knowledge missing here ? thank you.
i found culprit !!.. batcher.drawsprite(world.char.position.x, world.char.position.y, side * 1, 1, keyframe); , batcher draw in 1x1 metres(world coordinate) width , height... omg.. such fool not @ rendering code. matic, you're 1 here share time helping me out.
Comments
Post a Comment