stonechalice wrote:Stunning game. Did you get digital version DS?
Dark Soldier wrote:Please tell me something more happens because as much as I'm enjoying the story, wandering around avoiding people and chucking bottles does not equal fun.
TheDJR wrote:I'll have it when you give up.
TheDJR wrote:I'll lend it to you, no rush to complete it.
Paul the sparky wrote:I have absolutely no knowledge of the intricacies of AI to base that on like, for all I know it's a bugger to get right.
If Joel crouches, check to see if any zombies are within X range of Ellie. If so, Ellie crouches. Use an interval timer to check Ellie's distance from Joel, moving her towards him every time she gets too far away. You'd need a 'wandering' algorithm for her distance-from-Joel behaviour. If she's more than X distance from Joel, timer-check to see if a zombie's within X proximity of her. If this equates to True, have her crouch and move back to Joel at the maximum available (reasonable) distance from the zombie/s. At this point, you'd have to account for any obstacles in her way (we'll assume really good collision code). If Ellie can't get back to Joel without moving within X distance of a zombie/s, she stops and waits for the zombie/s to move away. If a zombie then moves within X distance of the crouched and motionless Ellie, it detects her and attacks her. A timer begins, and Joel has to kill the attacking zombie to beat an Ellie-dies failstate.
It looks like you're new here. If you want to get involved, click one of these buttons!