The Dink Network

Reply to Re: Making sprites avoid each other

If you don't have an account, just leave the password field blank.
Username:
Password:
Subject:
Antispam: Enter Dink Smallwood's last name (surname) below.
Formatting: :) :( ;( :P ;) :D >( : :s :O evil cat blood
Bold font Italic font hyperlink Code tags
Message:
 
 
February 12th 2011, 05:43 AM
wizardb.gif
Kyle
Peasant He/Him Belgium
 
Aha, so it's not actually important that the guards are "forever" out of reach of Dink. You just want to simulate a "feared" behaviour. That's not too hard if your field layout is not obstructed by too much hardness. You want the guards to be able to be cornered by Dink right? Then you can work with a simple system where you compare X and Y values between Dink and the guard in question and create the invisible follow sprite in the 90 degree quadrant that remains, preferably as far away from Dink as possible, but that's not even necessary if you have the script looping say, every 500 frames.