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 / HTML5 display issues

Author
Message
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 24th Dec 2016 03:01
Tonight I finally got my zelda clone copied over to agk2 so I could export it to html. But my graphics tiles all have lines between them. I don't get this effect when compiled for windows. It also display larger in the browser than it does in the native app which makes me think the lines are an issue from it scaling the game.

"I like offending people, because I think people who get offended should be offended." - Linus Torvalds

Attachments

Login to view attachments
fubarpk
Retired Moderator
19
Years of Service
User Offline
Joined: 11th Jan 2005
Playing: AGK is my friend
Posted: 10th Jan 2017 14:00
I had a similar problem with resolution changes I hope this helps

first il explain my problem better and how I fixed it
I worked in 640 by 480 the phone ran in 800 by 600 with spacing to produce 640 by 480
created my own tiles by using temporary virtual buttons and rendered to an image
when it first loaded the tiles displayed on screen it was fine then it shuffled them
and it was like the whole screen went into somesort of resolution distort
I blamed that on the virtual resolution affecting the virtual buttons and some
how when it synced it went out of sync. Well that was my problem but I fixed it by using
fixed graphic sizes and loading an image
fubar
Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 10th Jan 2017 15:59
can u upload here this problem tiles?
AGK (Steam) V2017.01.09 : Windows 10 Pro 64 Bit : AMD (16.12.1) Radeon R7 265 : Mac mini OS Sierra (10.12.2)
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 15th Jan 2017 02:49
Fixed graphic sizes and loaded an image? My images are not dynamic, I have no clue what you're trying to say.

http://zimnox.com/zelda/

"I like offending people, because I think people who get offended should be offended." - Linus Torvalds
Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 15th Jan 2017 09:55 Edited at: 15th Jan 2017 09:56
try this, it looks ok in win & html5
maybe its the size or the position which cause the lines in grid or alpha or any image/sprite settings commands.
AGK (Steam) V2017.01.09 : Windows 10 Pro 64 Bit : AMD (16.12.1) Radeon R7 265 : Mac mini OS Sierra (10.12.2)

Attachments

Login to view attachments
Paul Johnston
TGC Developer
21
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 16th Jan 2017 17:30
Quote: " It also display larger in the browser than it does in the native app which makes me think the lines are an issue from it scaling the game."

This is the most likely cause. When the game is scaled then the tiles could end up sampling from the pixels around the edge of their sub images. You could fix this by adding a 1 pixel border around the subimages on the atlas image, or by using SetSpriuteUVBorder, or by setting SetImageMinFilter to 0 on the atlas image.

Login to post a reply

Server time is: 2024-04-23 20:11:27
Your offset time is: 2024-04-23 20:11:27