The Dink Network

I Can't Move!

January 11th 2007, 05:53 PM
boncag.gif
Znex
Peasant He/Him Australia
Oh hey. 
How do I get characters to move? When I try the old trusty method:

wait(500);
move_stop(&herm, 450, 250, 1);
wait(200);

It won't work! It just freezes! What do I do?
January 11th 2007, 06:12 PM
custom_king.png
redink1
King He/Him United States bloop
A mother ducking wizard 
Make sure &herm has some speed.

sp_speed(&herm, 1);
January 11th 2007, 07:45 PM
slayer.gif
rabidwolf9
Peasant He/Him United States
twitch.tv/rabidwolf9 
You also seem to have trouble with understanding the command.

From DinkC Reference:
void move_stop(int active_sprite, int direction, int destination_coordinate, bool ignore_hardness);

-The first part is the sprite you want to move.
-The second part is the direction you want the sprite to move.
-The third part is the destination coordinate. If you're moving left or right (or diagonal), put the x coordinate. If your moving up or down, use the y coordinate.
-The last part is whether or not you want the sprite to ignore hardness.
January 12th 2007, 01:08 AM
boncag.gif
Znex
Peasant He/Him Australia
Oh hey. 
So how would you write it? 450 is the x coordinate and 250 is the y coordinate. The speed is 1.
January 12th 2007, 01:32 AM
slimeg.gif
metatarasal
Bard He/Him Netherlands
I object 
You didn't tell the sprite in what direction it should be moving.
8 = up
2 = down
4 = left
6 = right

So if you want to move your sprite to the left to x = 450 write this: move_stop(&herm,6,450,1); if you then want the sprite to move down to y = 250 write: move_stop(&herm,2,250,1);

These are just examples ofcourse...
January 12th 2007, 06:20 PM
boncag.gif
Znex
Peasant He/Him Australia
Oh hey. 
Okay, thanks guys!