player x and y positions not working

hello! im currently having a problem with rpg maker 2003. i was planning on making a system where the player pressing a button and a projectile is fired and i was trying to test it out. however, i noticed that whenever i tried to change the projectile event's location to the player's location using x and y variables, the event instead teleports to the corner of the screen, despite the player having never gone there. does anyone know why this happens?
Screenshot (15).png
Well, you have two Set event location commands inside one branch.
Meaning, first your event teleports into hero's position and then it teleports into [10,3]
Well, you have two Set event location commands inside one branch.
Meaning, first your event teleports into hero's position and then it teleports into [10,3]
so the solution would be to separate the set location commands into different branches? because i just tried that and the event still goes to the corner of the screen.
Well, of course it will.
It's a parallel process, meaning it will fire again everytime it finishes. And if you move the second one to the else branch, then the else branch will fire everytime the switch is off. You need to completely separate them.


Screenshot_27.png

Screenshot_28.png

Original thread: https://forums.rpgmakerweb.com/threads/player-x-and-y-positions-not-working.157605/