How to create random movement

Get help using Construct 2

Post » Sat Oct 17, 2015 3:50 pm

How to create random movement for a bot? (top down)
Burry me with my empty hands sticking out the ground, so that all can see, that the one who had the world on his hands, died with them empty.
B
19
S
4
G
4
Posts: 135
Reputation: 3,074

Post » Sat Oct 17, 2015 4:38 pm

with random, people hardly ever mean random..

would the movement distance be limited?
would the angle of movement be limited?
would the speed be limited?
should the movement react to the environment?

"random" movement can be made with any of the build in behaviours..
With better explanation better solutions can be provided..
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 » Sat Oct 17, 2015 7:12 pm

No limited distance, no angle limitation, limited speed and the movement should react to any solid objects
Burry me with my empty hands sticking out the ground, so that all can see, that the one who had the world on his hands, died with them empty.
B
19
S
4
G
4
Posts: 135
Reputation: 3,074

Post » Sat Oct 17, 2015 7:18 pm

so something like every x seconds set direction of movement should work?

with 8 direction this would be setting a variable and simulate pressing directions
with bullet it would be set angle to random(360)
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 » Sat Oct 17, 2015 8:59 pm

Yeah it worked perfectly, thanks.
Burry me with my empty hands sticking out the ground, so that all can see, that the one who had the world on his hands, died with them empty.
B
19
S
4
G
4
Posts: 135
Reputation: 3,074


Return to How do I....?

Who is online

Users browsing this forum: Yahoo [Bot] and 30 guests