How do I give an object random movement

Get help using Construct 2

Post » Tue Sep 09, 2014 12:52 am

Hello all,

Trying to have an object randomly fly around in the background. My first attempt at this was to give the object the 8 directional movement behavior with a "random" variable for each direction. Every 5 seconds randomly set the variable to one of the directions.

Anyone have a better approach at this? Even just something simple as flying in a figure 8 loop.
B
12
S
3
G
1
Posts: 35
Reputation: 838

Post » Tue Sep 09, 2014 1:21 am

you could try use the sine behaviour might be easier
B
26
S
6
Posts: 39
Reputation: 1,574

Post » Tue Sep 09, 2014 1:43 am

If you search "random movement" you will find lots of info.

Edit: seems they suggest what you've already done. Yeah depends on what 'random' movement you want. Figure 8 is not random and probably not simple either. As mentioned ^^ look at behaviours like sine.
B
24
S
9
G
4
Posts: 1,646
Reputation: 6,596

Post » Tue Sep 09, 2014 6:26 am

You can actually make way-points and perform the 8 movement.
It's interesting I ended up try making it myself. Capx.

You can modify picking to actually make it random, such as pick random instance.
B
28
S
8
G
4
Posts: 553
Reputation: 4,924

Post » Tue Sep 09, 2014 10:04 am

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 » Tue Sep 09, 2014 1:49 pm

DuckfaceNinja wrote:You can actually make way-points and perform the 8 movement.
It's interesting I ended up try making it myself. Capx.

You can modify picking to actually make it random, such as pick random instance.


This is really great!

How long did it take you to get so good in Construct 2? I guess i need to try some more advanced tutorials.
B
12
S
3
G
1
Posts: 35
Reputation: 838

Post » Tue Sep 09, 2014 1:51 pm



This is great also. Thanks so much!
B
12
S
3
G
1
Posts: 35
Reputation: 838

Post » Tue Sep 09, 2014 2:42 pm

Weleavefossils wrote:This is really great!

How long did it take you to get so good in Construct 2? I guess i need to try some more advanced tutorials.

I think I still have a long way to go but I always keep manual on my side, sometimes I just browse through them and start being creative.

Same result from the capx but randomized and in DRAGON MODE :D
B
28
S
8
G
4
Posts: 553
Reputation: 4,924

Post » Wed May 10, 2017 6:21 am

can you upload the capx again ? thanks :D
B
6
Posts: 3
Reputation: 256

Post » Fri May 12, 2017 9:50 am

Hello, can you upload the capx again?, links are not active and I am interested in these capx... Thanks and nive day!! ;)
B
17
S
5
G
2
Posts: 173
Reputation: 2,090


Return to How do I....?

Who is online

Users browsing this forum: LunaticCat and 3 guests