So I been working on this game for a good long min and still can't fix this problem. In this video link you'll see the background start to blur when I reach the open field. What I want to have happen is the background stop scrolling and then I'm going to have a boss be there. Anyone know how to fix this? Below is the video link and how I have the backgrounds set up.
youtu.be/7tApFaU6IxA
comicgemproductions.files.wordp ... 491407.jpg
The youtube video is private, so we can´t see it
Oops! Sorry about that. Fixed the video so everyone should be able to view it
The problem is that your background ended, is still scrolling and the background of the layer is transparent. So the game has nothing to draw there so it just repeats the last pixel available
Yeah but I also tried having the last background section to not move and make it's dt 0, tried to have when player collides with background to have animation stop and so far still nothing works. I just need it to stop scrolling when player reaches that last background section. If not possible then maybe I'll just have to add more sections for the boss battle I guess
How are you scrolling the background? Is it on a layer with parallax?
It's on a layer and I'm using every tick and then using dt for how fast I want each section to scroll because my background is built from like 12 parts so each part has it's own function as seen in the second link image I posted
Develop games in your browser. Powerful, performant & highly capable.
You could have a variable that gets set when you spawn the boss, and then compare that variable in the event that moves the background
if tiledbackground greater then y set position to y
also could toggle group
(moving background)
add events for background
if background greater then y toggle dis-active (moving background)
on event toggle active again.
if tiledbackground greater then y set position to y also could toggle group (moving background) add events for background if background greater then y toggle dis-active (moving background) on event toggle active again.
OK I'll have to try this and see what happens. Thanks.
> if tiledbackground greater then y set position to y > also could toggle group > > (moving background) > add events for background > > if background greater then y toggle dis-active (moving background) > on event toggle active again. > OK I'll have to try this and see what happens. Thanks.
> if tiledbackground greater then y set position to y
> also could toggle group
>
> (moving background)
> add events for background
> if background greater then y toggle dis-active (moving background)
> on event toggle active again.
see demo here..
https://www.scirra.com/arcade/tutorial- ... -demo-5397
When block is less then 100 y background stop
if block is greater then 125 y background start