How do I Create Enemy/Npc Random Movement

Get help using Construct 2

Post » Wed Aug 27, 2014 5:19 pm

I have my NPC an 8 direction isometric character that I would like to walk around the house or an area in random sequence
walk around pause for a bit and then continue to walk the same direction or opposite.

I had seem some tutorials on random and custom movement with line of sight etc, but im having problems with the character facing the correct direction(remember there is 8 directions/animations to this sprite)

Anyone have a solution for this?

tldr; cannot get iso npc to randomly move about an area.
B
9
S
1
Posts: 18
Reputation: 515

Post » Thu Aug 28, 2014 9:21 pm

anyones
B
9
S
1
Posts: 18
Reputation: 515

Post » Thu Aug 28, 2014 9:33 pm

system compare two values: Sprite.8Direction.MovingAngle = 0
system trigger once
- sprite set animation to "right"

etcetera..
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


Return to How do I....?

Who is online

Users browsing this forum: dop2000, namaewayukidesu, Xh3maa and 10 guests