How do I... Fix this background problem?

Get help using Construct 2

Post » Sat Feb 06, 2016 5:13 am

Message: mikewalton206 can only post plain text URLS until they have 500 rep. 2 URLS modified. Why?
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.

https://youtu.be/7tApFaU6IxA

https://comicgemproductions.files.wordp ... 491407.jpg
B
10
S
2
Posts: 75
Reputation: 764

Post » Sat Feb 06, 2016 12:33 pm

The youtube video is private, so we can´t see it
MY APPS ON GOOGLEPLAY
ImageImageImage
B
39
S
14
Posts: 100
Reputation: 2,923

Post » Sat Feb 06, 2016 5:33 pm

Rasputin wrote: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
B
10
S
2
Posts: 75
Reputation: 764

Post » Sat Feb 06, 2016 6:32 pm

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
B
83
S
22
G
15
Posts: 1,039
Reputation: 15,219

Post » Sat Feb 06, 2016 9:03 pm

7Soul wrote: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
B
10
S
2
Posts: 75
Reputation: 764

Post » Sat Feb 06, 2016 9:17 pm

How are you scrolling the background? Is it on a layer with parallax?
B
83
S
22
G
15
Posts: 1,039
Reputation: 15,219

Post » Sat Feb 06, 2016 10:38 pm

7Soul wrote: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
B
10
S
2
Posts: 75
Reputation: 764

Post » Sun Feb 07, 2016 1:57 am

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
B
83
S
22
G
15
Posts: 1,039
Reputation: 15,219

Post » Sun Feb 07, 2016 9:00 am

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.
B
29
S
13
G
10
Posts: 355
Reputation: 8,317

Post » Sun Feb 07, 2016 6:24 pm

Carbincopy wrote: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.
B
10
S
2
Posts: 75
Reputation: 764

Next

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 2 guests