The Dink Network

Reply to Re: Getting Dink to walk to a location

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:
 
 
March 6th 2012, 10:04 AM
wizardb.gif
Kyle
Peasant He/Him Belgium
 
Sure, it's not that hard.

First you make Dink walk to the X coordinate of the destination point, then to the Y coordinate For the direction in the move() command, you need to determine whether the destination point is above, under, right or left of the player. You can use simple if() conditionals for this.

If you need pathing it becomes a lot more complicated and I can't really help with that.

I can provide more information and maybe an example if you don't understand what I'm trying to say^^