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 / Sprite looks different on PC than it does on phone

Author
Message
Midget Blaster
AGK Developer
8
Years of Service
User Offline
Joined: 7th May 2016
Location:
Posted: 30th Aug 2016 00:41
So, I've had this weird issue. Here is my sprite


Looks grand. Now, on my android phone, this image has a strange white outline on it, as if there was something behind it. The image is 150 x 80 png.
Did anyone ever have this problem aswell?

Thanks!
Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 30th Aug 2016 07:30
maybe a alpha chanel problem, i know this white borders from leafs.
AGK (Steam) V2.0.20 : Windows 10 Pro 64 Bit : AMD (16.3.2) Radeon R7 265 : Mac mini OS X 10.10 (Yosemite)
Midget Blaster
AGK Developer
8
Years of Service
User Offline
Joined: 7th May 2016
Location:
Posted: 30th Aug 2016 18:04
I just got this glitch again, on my PC


Anyone know whats up?
Digital Awakening
AGK Developer
21
Years of Service
User Offline
Joined: 27th Aug 2002
Location: Sweden
Posted: 30th Aug 2016 21:36
The white area around the pixels are bleeding into the others. You could try to turn off min and mag filters for the image. Or you need to save the sprite with an alpha color.

SetImageMagFilter
SetImageMinFilter
SetDefaultMagFilter
SetDefaultMinFilter
blink0k
Moderator
11
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 30th Aug 2016 22:40
if you're exporting this from an image proggy make sure it has a black background. also make sure it has a 1pixel transparent border around the image
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 31st Aug 2016 10:16
What Digital said is most likely the culprit I believe. It's probably blending the pixel edge when it falls between pixels. It gives a smoother effect for high res games, but it's not something you want for old-school pixel games.

"I like offending people, because I think people who get offended should be offended." - Linus Torvalds
Midget Blaster
AGK Developer
8
Years of Service
User Offline
Joined: 7th May 2016
Location:
Posted: 31st Aug 2016 15:29
Yeah, I had to turn off anti-aliasing. It is SUPER important if making a retro / pixel games

Login to post a reply

Server time is: 2024-05-08 03:01:26
Your offset time is: 2024-05-08 03:01:26