Darwinbots Forum

Welcome To Darwinbots => Newbie => Topic started by: d-EVO on October 27, 2008, 01:21:59 AM

Title: changing focal eye.
Post by: d-EVO on October 27, 2008, 01:21:59 AM
simple question. how do ou change focal eye?
please tell me
Title: changing focal eye.
Post by: Welwordion on October 27, 2008, 01:49:08 AM
reading the wiki helps-->

http://www.darwinbots.com/WikiManual/index.php?title=Eye (http://www.darwinbots.com/WikiManual/index.php?title=Eye)
http://www.darwinbots.com/WikiManual/index...title=.focuseye (http://www.darwinbots.com/WikiManual/index.php?title=.focuseye)
Title: changing focal eye.
Post by: bacillus on October 27, 2008, 11:47:24 PM
basically, it defaults to 0, which is eye5. Going down, -1 is eye4, -2 is eye3 etc. Going up, 1 is eye6, 2 is eye7 etc. Store these into .focuseye, or read off it to see which eye you are using. One cycle later (this is fairly irritating), you can start reading vars off that eye. You can use it as a normal eye by going *.eyef.
Title: changing focal eye.
Post by: Moonfisher on October 28, 2008, 05:39:54 AM
If you could switch eyes mid cycle you could just check all eyes every cycle.... so you could take the eyes on spinner for example and check every direction every cycle, possibly switch the eyewidth every 2 cyles to be sure you never miss anything...
Basicaly every eye system up to now would be useless...
And there would be no challenge in making a cool eye system, you just check all the eyes every cycle knowing if each eye is seing an enemy and such...
You could broadcast the locations of several enemies each cycle...

Sure it makes things easier... but IMO it makes things too easy, like playing a shooter with autoaim.
Would be about the same as the old giant omni eye, just more effective.