I Can't Move!
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?
wait(500);
move_stop(&herm, 450, 250, 1);
wait(200);
It won't work! It just freezes! What do I do?
Make sure &herm has some speed.
sp_speed(&herm, 1);
sp_speed(&herm, 1);
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.
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.
So how would you write it? 450 is the x coordinate and 250 is the y coordinate. The speed is 1.
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...
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...