Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

Help!, Different Size Image But Same Result.

OP ganero

20th August 2014, 02:03 AM   |  #1  
OP Junior Member
Thanks Meter: 0
 
1 posts
Join Date:Joined: Aug 2014
I am editing whole my question as it might not so clear for others to help.

I am modifying super jumper game (Mario Zacher's Beginning Android Game) , i've come to stuck on this issue:

if you look at my attachment image, you could see that my character image rendered in same size with the spring image.

i'm using texture atlas 1024x1024 px,


Code:
          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 am using photoshop and put all the texture region required in my Atlas.
For each character image frame has the size of 64x150
while the spring image only has the size of 30x40

the world class camera width and height = 11f x 14f
the world renderer class camera width and height also = 11f x 14f

Please give me some clue, what important knowledge i am missing here ? thank you.

ganero
Attached Images
File Type: jpeg image (3).jpeg - [Click for QR Code] (40.1 KB, 11 views)
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes