How do I have sprites repeatedly fly across screen?

Get help using Construct 2

Post » Sat Feb 13, 2016 2:37 pm

Hi,

How may I achieve this effect.

I have a series of cloud graphics I have created that I need to randomly move across the viewport during play. I know I need to set them off screen to begin with and have them move in at random time intervals and ideally and variable heights each time.

Any advice on this would be great as its been bugging me for a while.
B
7
S
2
Posts: 110
Reputation: 927

Post » Sat Feb 13, 2016 4:07 pm

I don't know if I really understood what do you want, but you could use the event "every X seconds" changing the seconds by round(random(the_range_that_you_want)) and include after a "create object" event to create your clouds randomly too (X: random(range), Y: (random(range)). I would like to suggest you to try to use the "sine" behaviour for the clouds movement to make it more natural.
B
72
S
13
G
2
Posts: 990
Reputation: 6,971

Post » Sat Feb 13, 2016 5:03 pm

Great idea, thanks again!
B
7
S
2
Posts: 110
Reputation: 927


Return to How do I....?

Who is online

Users browsing this forum: CJacobsSA, Magistross, Mato and 6 guests