How do I fix gaps in scrolling background which speed change

Get help using Construct 2

Post » Sun Dec 20, 2015 12:46 am

hi guys iam making a racing game where on touch of the screen the car should speed up.in order to achieve this i made a scrolling road background.when the speed is the default one it is ok but when the speed changes, some gaps appear in between the road sprite object creation.How do i solve this issue :)

the default bullet speed for the road is 200.the max speed is set through a global variable speed that is incremented every 2 seconds to reach max speed of 3000.
i use two road sprites with an algorithm detecting which is the last one and then create and assign a speed to a new road object
B
6
Posts: 28
Reputation: 308

Post » Sun Dec 20, 2015 12:55 am

If you are you creating the new sprite based on the position of the other, there shouldn't be any problem..
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Sun Dec 20, 2015 10:16 am

@LittleStain hum indeed i create them based on the top of the viewport You hinted me to something there ill try and if i can do it ill close this topic
B
6
Posts: 28
Reputation: 308

Post » Sun Dec 20, 2015 10:58 am

done thank you my friend
B
6
Posts: 28
Reputation: 308


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 27 guests