[an error occurred while processing this directive]
Player X Y Movement - http://www.doomworld.com Forums


Original message

thekube01

thekube@start.com.au
203.45.198.22

"Player X Y Movement" , posted Wed 31 Jan 16:42user profileedit/delete messagepost reply


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.

 


Replies: