Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Image does not retain size

Author
Message
JRNTexas
13
Years of Service
User Offline
Joined: 24th May 2011
Location: Austin, Texas
Posted: 9th Sep 2014 14:28 Edited at: 9th Sep 2014 14:34
First I set my virtual resolution to 1280 X 1280. I also set the device height to 1280 X 1280.

I then load two images:



The first image (1) is 1280 X 1280. The second image (2) is 2476 X 1280.

The first image is a background and splash screen image. The second is a map that I want to move about the screen when touched. It is larger than virtual resolution, on purpose.

When the images are displayed (see image below) the larger image is displayed as the smaller of the two.

I have played with every setting I'm aware of. I've changed virtual resolution and device resolution, multiple times.

As usual, I know I must be doing something wrong.

Thanks for any help!

- Jesse

baxslash
Valued Member
Bronze Codemaster
17
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 9th Sep 2014 16:28
Jesse, have you tried changing the size of the sprite? Might be that some default size is being set because normally if you don't set the sprite size yourself the sprite is set to the size of the image...

setSpriteSize(spriteID, width, height)
JRNTexas
13
Years of Service
User Offline
Joined: 24th May 2011
Location: Austin, Texas
Posted: 10th Sep 2014 03:34 Edited at: 10th Sep 2014 03:36
BaxSlash you're a genius!

I wanted to use the native resolution of the images which I thought it would naturally do but it didn't work until I set the size of the images like you suggested. I set the size of the images to their actual size, if that makes any sense.

You saved my day!
baxslash
Valued Member
Bronze Codemaster
17
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 10th Sep 2014 17:56
Any time Jesse

Login to post a reply

Server time is: 2024-11-25 09:36:48
Your offset time is: 2024-11-25 09:36:48