How do I make object float randomly

Get help using Construct 2

Post » Sun Mar 04, 2012 9:45 pm

Hey! How can I make object for example - circle float randomly, but not to go outside layout?
B
11
S
3
G
6
Posts: 193
Reputation: 4,234

Post » Sun Mar 04, 2012 10:33 pm

Sine behaviour!
English is not my native language. Sorry for any mistakes and feel free to correct me if needed.
B
14
S
5
G
3
Posts: 110
Reputation: 3,225

Post » Sun Mar 04, 2012 10:45 pm

Yea, but object can only move horizontal OR vertical how to make the object float randomly?
B
11
S
3
G
6
Posts: 193
Reputation: 4,234

Post » Sun Mar 04, 2012 10:55 pm

You can give it two sine behaviors, one for horizontal and one for vertical.
B
20
S
9
G
6
Posts: 607
Reputation: 6,112

Post » Mon Mar 05, 2012 12:27 am

You say 'float randomly'.
Tell us more exactly, or give us an example to receive more useful advice.
B
90
S
30
G
24
Posts: 3,189
Reputation: 32,400

Post » Mon Mar 05, 2012 2:05 am

Exactly as Sully said.... Also put some randomness at magnitude and you're done...

If you need REALLY randomness (all around the layout), then i suggest you to spawn it randomly between some points while having the sine behaviours...
English is not my native language. Sorry for any mistakes and feel free to correct me if needed.
B
14
S
5
G
3
Posts: 110
Reputation: 3,225

Post » Mon Mar 05, 2012 5:38 am

Thank you guys!
B
11
S
3
G
6
Posts: 193
Reputation: 4,234


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 7 guests