Bots and Simulations > DNA - General
help....again
MrMound:
I want my bots to move to the coridinates (0,0) how can I do this. I know you can see if your bot is at a x or y pos but can you tell it to go to a specific one or does it have to move randomly about untill it gets to the right coordinates?
Botsareus:
You need to do an "angle" to get it.
Somthing like
0 .myx sub 0 .myy sub angle .myaim sub .aimdx store
I beat I got the syntax wrong.
PurpleYouko:
WAY overcomplicated. Heading for a specific position with know X and Y coordinates is really simple.
It's as simple as this..
Xcoordinate Ycoordinate angle .setaim store
The program already knows your present coordinates so all you need is the destination.
PS it's "angle" not "angel"
Angels look like this :bigginangel:
MrMound:
so the gene would look like this
--- Code: ---cond
start
Xcoordinate Ycoordinate angle .setaim store
stop
--- End code ---
Numsgil:
yep, that'd get you pointed in the right direction.
You might want to add a condition to that so it only activates when you want it (otherwise you're always pointed towards (xcoord, y coord)
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version