How do I Keep a background with stars following the player

Get help using Construct 2

Post » Tue Jul 21, 2015 10:31 pm

hey! i'm trying to do a night effect with moving stars.
So far i have 2 sprites almost similar to each other, both with the bullet behavior, one with speed set to -4, and the other -6.
But being a "bullet" eventually it will go outside the layout.
The player obj has the scrollTo behavior, it's a platformer :)
Also i have set the layout scale to 0.5.
My ideia is to have 2 triggers on each side of the visible screen, when the player overlaps with them, it creates a new startSprite, so that the stars are always on screen. And also if the star sprite is not on visible screen, create a new one to the right of the player.
Can't seem to get the Xs and Ys values for any of these things :(. I've tried using ViewPorts.., canvasToLayout, but gotten no where :/
Any help?
Thx in advance! :D
B
9
S
3
Posts: 32
Reputation: 707

Post » Wed Jul 22, 2015 1:10 am

viewtopic.php?t=65215&start=0#294672

Would this be of any help to you?
B
6
S
2
Posts: 60
Reputation: 1,242

Post » Sat Jul 25, 2015 11:49 am

yes, yes it did, thank you!
B
9
S
3
Posts: 32
Reputation: 707


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 4 guests