Hey there.. was curious if anyone has run into the challenge of making an enemy (esp. when multiple of the same type) will look around randomly whenever you are out of their line of sight. I feel like I'm doing everything i need to be doing with the actions, but its not working at all.. This is what I have:
<img src="http://www.80bit.com/pic/Windows_7-20131130-150345.jpg" border="0" />
Obviously its wrong because it's not working, but I cant think of any other way to do it?
Any help would be massively amazing, i appreciate your time. :D
Develop games in your browser. Powerful, performant & highly capable.
I'd put the random seconds at the top, or instead, have a variable/counter for each enemy and have that count down.
Once it hits zero, trigger the event and set a new counter amount.
I did a web demo - they turn green if they can see you, red if not.
Mouse over to see counter and direction boolean.
Image with events :
<img src="http://i.imgur.com/pYwUWzI.jpg" border="0">
This helped me so much, Johnnysix, thank you so much!!