well ChatGPT is certainly interesting, however you should not expect it to write an entire 3d raycasting engine in GML, or in this case having the player switch to an alternate sprite when a button is held or variable is set