How do I make random ennemy movements

Get help using Construct 2

Post » Thu Jan 26, 2017 2:56 am

Hi! I want to make it so that my ennemies, with 8 direction behaviour, go to three different locations randomly, thanks!
B
13
S
1
Posts: 16
Reputation: 563

Post » Thu Jan 26, 2017 8:06 am

On trigger, set variable to choose(1,2,3)
If variable=1, set angle towards a
If variable=2, set angle towards b
If variable=3, set angle towards c

Move forward

8-direction is probably unnecessary in this case, although you might use it for other reasons.
Mistakes were made.
B
51
S
25
G
107
Posts: 1,581
Reputation: 60,458



Return to How do I....?

Who is online

Users browsing this forum: evillair, vankizzle and 7 guests