Difference between revisions of "Thread:Talk:Basilisk/Stop and Go/reply (8)"

From Robowiki
Jump to navigation Jump to search
m (Reply to Stop and Go)
 
(No difference)

Latest revision as of 23:25, 9 April 2019

Maybe I should move the stop and go into the onScannedRobot event instead of its current goTo void. Currently I am using prevEnergy > enemyEnergy, with enemyEnergy being called every tick and prevEnergy being called right after moving. If I move it into the onScannedRobot event, and use prevEnergy > e.getEnergy(), do you think that would fix some of its problems? Thanks!