| thekube01 thekube@start.com.au | "Player X Y Movement" , posted Wed 31 Jan 16:42  
I'm a bit stuck at the moment. I'm trying to link doom with another program that spits out x an y values. I want to use the player->mo->x and player->mo->y values to move the player instead of using the forwardmove and sidemove variables.
Is this possible? I've managed to get it to work with absolute variables (i.e player->mo->x = 1000<<16) but haven't had much luck when trying to increment the existing value (player->mo->x++). What am I doing wrong.
Also, the whole thing seems to crash when the player is moving and you adjust the x or y value (works ok when standing still). I'm assuming it has something to do with the momentum calculations, is this right?
Thanks in advance.
|