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 13th 2011, 03:29 PM
boncag.gif
JugglingDink
Peasant He/Him United Kingdom
Streetfish 
I have done it! It works! The guard moves away from Dink in all directions, when he gets cornered in ANY corner he intelligently works out which way to move, he never goes off-screen, and (as far as I can tell) has absolutely zero errors! The only thing I well say, however, is that it's pretty dang messy. There's something like 500 lines of code in there I don't even need, but I'm terrified to take them out in case it inadvertently breaks something. Maybe I'll tidy it up if there's time before the contest ends. I would post it here, but it is stupidly massive (I don't have a line counter, but when you look at it you kinda just go "Woah") so I figure there's no point making the worlds biggest post if there wont even be anyone to appreciate it. Anyway, everyone congratulate me please