Fangames > Engines

I Wanna Be The GMS2 Engine YoYoYo Edition

<< < (3/3)

HAEGOE:
I ran into a problem that makes character get stuck sometimes.
luckily it was shallow enough to jump out and something I could fix myself, but I think you'll have to change the scrSaveGame script a bit.



--- Quote ---    global.savePlayerX = objPlayer.x;   
    global.savePlayerY = objPlayer.y;
--- End quote ---
to     

--- Quote ---    global.savePlayerX = objPlayer.x-objPlayer.hspeed;   
    global.savePlayerY = objPlayer.y-objPlayer.vspeed;
--- End quote ---
I think it's the savePlayerX/Y somehow gets objPlayer's x and y position with its speed added.

Navigation

[0] Message Index

[*] Previous page

Go to full version