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 / black line between scrolling background sprites

Author
Message
Vladimuffin
7
Years of Service
User Offline
Joined: 27th Nov 2016
Location:
Posted: 20th Jul 2017 02:16


for some reason, there is a blinking vertical line between the two cloud sprites after the first loop. the other 2 layers of background scroll fine. Is it possibly because of the very slow movement speed? Hopefully one of youz guyz has already tackled this beast and has a solution for meh. As always, thanks a bunch for the feedback!
jhanson
6
Years of Service
User Offline
Joined: 19th Jun 2017
Location: USA
Posted: 20th Jul 2017 02:20
I saw something like that on mine occasionally until I used SetSpriteSnap. I think it's some sort of floating point rounding error.
blink0k
Moderator
11
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 20th Jul 2017 04:04
Could you post the app or maybe some video?
Vladimuffin
7
Years of Service
User Offline
Joined: 27th Nov 2016
Location:
Posted: 21st Jul 2017 00:27
So im not sure if I attached the video properly.

Attachments

Login to view attachments
Vladimuffin
7
Years of Service
User Offline
Joined: 27th Nov 2016
Location:
Posted: 21st Jul 2017 00:28
Its only where the 2 identical sprites butt together, and only on the sky layer.
blink0k
Moderator
11
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 21st Jul 2017 02:09
i would try setspritesnap() as suggested
Vladimuffin
7
Years of Service
User Offline
Joined: 27th Nov 2016
Location:
Posted: 21st Jul 2017 20:28
So i changed the value of setsprite from .2 to .25 and that fixed the problem. Weird, but it works. Thanks for showing me setspritesnap though, i can see how this can come in handy in the future. Cheers!
One smart fellow, he felt smart. Two smart fellows, both felt smart. Three smart fellows all felt smart...

Login to post a reply

Server time is: 2024-04-20 16:44:29
Your offset time is: 2024-04-20 16:44:29