Reply to Re: My D-mod questions
If you don't have an account, just leave the password field blank.
You use the move(); command for this:
The <sprite> is the number of the sprite you want to move. The most common are 1 (Dink) and ¤t_sprite which is the sprite the script is attached to.
The <direction> is the direction you want the sprite to move (2 is down, 4 is left, 6 is right and 8 is up)
The <destination> is the final x or y coordinate (x if using direction 4 or 6 and y if using 2 or 8)
<nohard> is wether or not the sprite ignores hardness, you usually put this to a value of 1.
So making the current sprite move from x=100, y=100 to x=200, y=100 would look something like this:
move(<sprite>,<direction>,<destination>,<nohard> );
The <sprite> is the number of the sprite you want to move. The most common are 1 (Dink) and ¤t_sprite which is the sprite the script is attached to.
The <direction> is the direction you want the sprite to move (2 is down, 4 is left, 6 is right and 8 is up)
The <destination> is the final x or y coordinate (x if using direction 4 or 6 and y if using 2 or 8)
<nohard> is wether or not the sprite ignores hardness, you usually put this to a value of 1.
So making the current sprite move from x=100, y=100 to x=200, y=100 would look something like this:
move(¤t_sprite,6,200,1);