Sorry if I'm not allowed to ask this here. I wasn't sure where I could ask questions on how to fix something.
I'm attempting to implement the classic debug mode from S3K into the engine (I prefer it over the current one, which is kind of limited). I've run into an issue though while implementing it: the player character does not seem to be jumping to the debug object's coordinates properly.
I'm putting the player into the already provided debug state (which I removed the movement code from) with this code:
if (game_player_find(0) != noone) { with (game_player_find(0)) { if instance_exists(character) { with (character) { game_pc_perform(self, player_is_debug); } } } debug_active = 1; }
and attempting to make the player jump to the debug object with this code:
with (game_player_find(0)) { if instance_exists(character) { character.x = other.x; character.y = other.y; } }
Sorry that it looks sloppy. I'm not sure how to keep the formatting and line breaks. Also I uploaded a video of what happens in-game: https://youtu.be/G-hyQKXOW6w
Am I doing something wrong? Or am I suppose to be controlling the coordinates in another way?