[Pogamut-list] Turning and moving at the same time?

nvh pogamut-forum at artemis.ms.mff.cuni.cz
Mon Jan 26 12:23:47 CET 2009


Re: Re: Turning and moving at the same time?

Author: nvh

> I have revisited the code of the GameBots and implemented version where move and turn commands don't interrupt themselves. The GB version is compatible with Pogamut 1.21 and can be donwloaded from download section or here: [http://artemis.ms.mff.cuni.cz/pogamut_files/GameBots-090122.zip|Gamebots 2004, newest] . 
> 
> Comment: 
> Move and turn commands now does not interrupt themselves. (RUNTO, MOVE, TURNTO and ROTATE). When turn command sent during move command, the bot will change his rotation, but won't stop moving. Move commands now won't change bot actual rotation (only after approaching target location, the bot will turn to the direction of the movement - not if turn command was issued during the movement.)

That's great! I tried it, but noticed I used the CMOVE command (or contMove()) because I only want to move forward. Is it possible to fix it easily for this command as well?

Thanks in advance,

Niels





More information about the Pogamut-list mailing list