Bots and Simulations > DNA - General
some minor help
PurpleYouko:
--- Quote ---Is there a way for the bot to get it's absolute position, or at least some kind of orienting point?
--- End quote ---
Yes.
The easiest way is to use *.xpos and *.ypos to give a robot its exact position. Actually I am not quite certain that this works on all sim sizes any more. It used to cause crashes when larger sizes were used because *.xpos would attempt to return a number too large for a "single" variable as used in the memory locations.
*.depth is a mirror of *.ypos and is designed to be used in pondmode.
I conjuction with this, you can use the operator "angle" to return the precise facing needed to reach a specific point on the screen from your present location.
Nitus:
It would be a lot simpler if there was like a "north" or something for bots to refer to, imo.
As for *velscaler yeah, that's what I mean, although my plan has been to have some kind of counter whereby the bot enacts different behaviors based on its mean velocity. Like accelerate up - spin until slow - move towards target if seen - if nothing than + or - 45 degrees from initial heading then accelerate up again, etc.
Like the bot always scans for targets before moving after going too slow. That's the basis of the "movmenet" part of my bot [and bear with a programming newbie], entirely seperate from the targeting or chasing part.
Since I want this bot to go through my evo sim, I'm also worried about seperating the "daemons" coz I don't want critical bits to be lost.
BTW, my previous evo'd sim uses its own weird memory locations that I can't quite figure out how they work, so don't expect my bot to be anything special.
Navigation
[0] Message Index
[*] Previous page
Go to full version