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.

Newcomers AppGameKit Corner / Wrapping image horizontally

Author
Message
NeedHalp
7
Years of Service
User Offline
Joined: 20th May 2016
Location:
Posted: 1st Feb 2017 01:34
I want to wrap an image horizontally so I used SetImageWrapV(image,1) to set my image and SetSpriteUVOffset(sprite,0,xValue) in order to wrap my image horizontally. However, it doesn't work. It works perfectly with vertical wrapping so it's making me think that it's a bug within AGK. Anybody else know a different way to wrap an image horizontally while moving the image?
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 1st Feb 2017 10:38
What doesn't work exactly? I have it working OK.
Is your image size a power of 2. If not, it won't work.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Quidquid latine dictum sit, altum sonatur
TutCity is being rebuilt
NeedHalp
7
Years of Service
User Offline
Joined: 20th May 2016
Location:
Posted: 3rd Feb 2017 02:51
Ah! The problem the image wasn't a power of 2. Thanks again BatVink!

Login to post a reply

Server time is: 2024-04-20 03:43:57
Your offset time is: 2024-04-20 03:43:57