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 / Possible Particle Subimage bug

Author
Message
Lavaflyer
12
Years of Service
User Offline
Joined: 2nd Jul 2012
Location: Wisconsin, U.S.
Posted: 23rd Dec 2013 22:08
So I loaded in a spritesheet with a bunch of particles using loadimage (szParentImage). Then I got several images out of the spritesheet by calling loadsubimage (szImage,szParentImage) multiple times. And after testing I found that this method creates ugly white/black lines around all the particles' sprites. In comparison, using the normal method of loading in each particles' image in separately via loadimage, loadimage, loadimage, etc. doesn't have these ugly black lines around all the particles. Just wondering if this is a new bug or is being fixed or what, thanks!
blastar
11
Years of Service
User Offline
Joined: 4th Nov 2013
Location:
Posted: 24th Dec 2013 12:50
if you use subimages it's better to add an transparent 1-pixel border to each 'tile' to avoid artifacts from resizing.
Naphier
14
Years of Service
User Offline
Joined: 2nd Oct 2010
Location: St Petersburg, Florida
Posted: 24th Dec 2013 15:13
I've not had any issue like this. What version are you using?
Here's a snippet of my code that sets up my particles for an animation:



Login to post a reply

Server time is: 2024-11-24 23:35:26
Your offset time is: 2024-11-24 23:35:26