How come this script isn't working?
<forever>
<if><color[ left wheels ]is over[ outline of road
<turn cw( <{ AI Speed }> )degrees>
And vice versa for the other side. I set the AI Speed to 4, and that isn't working! So than I do
<turn cw( (( <{ AI Speed }> <*> 2 )) )degrees>
And it still doesn't work. t worked with my Racer game, why isn't it working now?

Offline
First you need to determine if the color detection isn't working or if the turn isn't working. I would put a say block before the turn block. say "about to turn".
If you never see the message, your color detection isn't working.
If the color detection is working, try temporarily putting 4 in the turn variable instead of your AI Speed variable to rule that out.
Offline
the_guardian wrote:
First you need to determine if the color detection isn't working or if the turn isn't working. I would put a say block before the turn block. say "about to turn".
If you never see the message, your color detection isn't working.
If the color detection is working, try temporarily putting 4 in the turn variable instead of your AI Speed variable to rule that out.
Alright. I'll try that. Oh, 60 seconds hasn't passed. It isn't that sensing that's the issue, but when I muliply by a bigger number,i t turns WAY offthe track (I also took out the variable)

Offline
if it is turning but it is finding staying on the track hard try checking out the centre of rotation of the sprite and maybe move it further back.
Offline