[SOLVED]Create a random moving bckgnd of sprites ?

Get help using Construct 2

Post » Tue Oct 25, 2011 12:23 pm

Hello all : )

I have ten sprites (houses in my cases) that I want to display in the background, but randomly, and will move from right to left. These houses once out of the layout will reappear, randomly, on the right, and so on!
I got no problem for moving these houses, i got the idea for the random function, but I can't translate it with events in C2 !

Anyone got an idea, or better an example ? wilfryed2011-11-03 20:24:57
B
23
S
5
G
5
Posts: 112
Reputation: 4,737

Post » Tue Oct 25, 2011 12:59 pm

I may try to make an example for you. Tell me: Do the houses have the same width?
B
107
S
40
G
10
Posts: 456
Reputation: 13,202

Post » Tue Oct 25, 2011 1:08 pm

Ho thanks !

No the houses don't have the same width.
Actually all my houses got an OriginPoint on the bottom-left and a PositionPoint on the bottom-right.
B
23
S
5
G
5
Posts: 112
Reputation: 4,737

Post » Tue Oct 25, 2011 10:47 pm

Here we go - no extra points, any width, self-replicating and destroying little example.
B
19
S
6
G
6
Posts: 1,101
Reputation: 5,646

Post » Tue Oct 25, 2011 10:49 pm

That works !

Thanks a lot !
B
23
S
5
G
5
Posts: 112
Reputation: 4,737


Return to How do I....?

Who is online

Users browsing this forum: mercuryus, mystazsea and 15 guests