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 / Tile an image multiple times in a single sprite?

Author
Message
Yaro
5
Years of Service
User Offline
Joined: 29th Mar 2014
Location:
Posted: 15th Apr 2015 13:50
I've played around with UV settings, and I can make an image zoomed in or out, but no matter what I do there's only one instance of the image in question. Is there a way to have a single sprite contain an image repeated multiple times?
baxslash
Valued Member
Bronze Codemaster
12
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 15th Apr 2015 17:19
You need to use SetImageWrapU( iImageIndex, mode ) and SetImageWrapV( iImageIndex, mode ) on the image.

Using AppGameKit V2 Tier 1
Ranietz
AGK Gold Backer
15
Years of Service
User Offline
Joined: 2nd Sep 2004
Location: Norway
Posted: 15th Apr 2015 17:25
baxslash beat me to it when I was writing an example but I figure I'll post the example anyway.

Something like this:
Yaro
5
Years of Service
User Offline
Joined: 29th Mar 2014
Location:
Posted: 16th Apr 2015 06:01
Ohhh, that makes sense now. I was trying SetImageWrapU/V by passing the sprite, not the image. Thanks to both of you!

Login to post a reply

Server time is: 2019-12-10 16:13:21
Your offset time is: 2019-12-10 16:13:21