MrSlippery
Member
Hello,
If you are familiar with old-school Dragon Warrior/Quest games for the NES, this is the type of movement I am after.
I would like my obj_player to move exactly 16 pixels for every movement input that is recognized by the game. It seems that move_towards_point() will help me accomplish this (perhaps there is a more appropriate function?).
The manual indicates that the instance will continue moving past the 'point' and that it is the programmer's job to tell it when to stop. I am not exactly sure how to go about doing this.
The code I have is quite simple:
When I press the right_key to move right, the instance moves at a speed of 1, but keeps moving (as expected). I am not sure how to get my obj_player to stop after moving exactly 16 pixels.
Any help or advice would be appreciated.
If you are familiar with old-school Dragon Warrior/Quest games for the NES, this is the type of movement I am after.
I would like my obj_player to move exactly 16 pixels for every movement input that is recognized by the game. It seems that move_towards_point() will help me accomplish this (perhaps there is a more appropriate function?).
The manual indicates that the instance will continue moving past the 'point' and that it is the programmer's job to tell it when to stop. I am not exactly sure how to go about doing this.
The code I have is quite simple:
Code:
if(right_key)
{
move_towards_point(x + 16, y, 1);
}
Any help or advice would be appreciated.