View Full Version: Need help with my Turn Based Strategy code...

Game Maker > Questions and answers > Need help with my Turn Based Strategy code...


Title: Need help with my Turn Based Strategy code...


knight666 - November 17, 2003 09:10 AM (GMT)
I'm trying to make a code where the AI makes a move to the left and then stops, but it ain't workin' so far. :(

Here's my code:
CODE

{
varSec+=1
if place_snapped(16, 16){if varTurn=1
{
direction=180
speed=4
}
}
if place_snapped(16, 16){if varSec=4
{
speed=0
varTurn=0
}
}
}

varTurn is if the object CAN make a move.
varSec is some weird variable for the seconds.

Tropper - November 27, 2003 03:38 AM (GMT)
Hmm. I don't know knight :blink: . But it better not have bad garphics :lol: . I could always make grpahics for you ;) . Haven't seen you at the Ra-Techcenter for a while. :D




Hosted for free by InvisionFree