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:34 AM
wizardb.gif
Kyle
Peasant He/Him Belgium
 
You can use most any direction actually, by using sp_mx() and sp_my(). I think Someone used this extensively in his d-mod that uses mouse control. I myself have only used it for missiles.

Anyway, you would indeed need something like what Fireball said, but that still wouldn't be enough. Just a random point within a 180 field would eventually lead to the sprite getting caught due to bad luck. To be superprecise you need to project a point along an axis between the two sprites involved to maximize the distance they keep between each other, if you know what I mean.