This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2008-09-18 14:52:35

TheCatAndTheBanana
Scratcher
Registered: 2008-03-21
Posts: 1000+

ai car?!

is there a way to make a ai car using simple scripting with no varibles?


My Newest Project!
Ceta? wat r u doin? CETA! STAHP!

Offline

 

#2 2008-09-18 14:56:29

archmage
Scratcher
Registered: 2007-05-18
Posts: 1000+

Re: ai car?!

TheCatAndTheBanana wrote:

is there a way to make a ai car using simple scripting with no varibles?

Hey, why don't you like variables? They are every programmer's best friend.

Anyways, the answer can vary a lot depending on what you want your AI car to do. If you just want it to move in a set pattern then you don't need variables.


Hi, I am Archmage coder extraordinaire. I do Scratch,pascal,java,php,html, AS2 and AS3. Leave me a message if you want coding advice. Also check out my personal website, lots of good stuff about web development, Flash, and Scratch (v1 and v2) !

Offline

 

#3 2008-09-18 15:17:18

TheCatAndTheBanana
Scratcher
Registered: 2008-03-21
Posts: 1000+

Re: ai car?!

archmage wrote:

TheCatAndTheBanana wrote:

is there a way to make a ai car using simple scripting with no varibles?

Hey, why don't you like variables? They are every programmer's best friend.

Anyways, the answer can vary a lot depending on what you want your AI car to do. If you just want it to move in a set pattern then you don't need variables.

i cant realy do complex things.

so it can go round stuff like staits and turns AI  players on most ai projects

so like using colour sensing.


My Newest Project!
Ceta? wat r u doin? CETA! STAHP!

Offline

 

#4 2008-09-18 15:27:12

archmage
Scratcher
Registered: 2007-05-18
Posts: 1000+

Re: ai car?!

Just use the move blocks to move your AI car is a set pattern. Thats
pretty much the only thing I can think of without using variables.


Hi, I am Archmage coder extraordinaire. I do Scratch,pascal,java,php,html, AS2 and AS3. Leave me a message if you want coding advice. Also check out my personal website, lots of good stuff about web development, Flash, and Scratch (v1 and v2) !

Offline

 

#5 2008-09-18 16:43:43

chalkmarrow
Scratcher
Registered: 2007-05-18
Posts: 100+

Re: ai car?!

TheCatAndTheBanana wrote:

archmage wrote:

TheCatAndTheBanana wrote:

is there a way to make a ai car using simple scripting with no varibles?

Hey, why don't you like variables? They are every programmer's best friend.

Anyways, the answer can vary a lot depending on what you want your AI car to do. If you just want it to move in a set pattern then you don't need variables.

i cant realy do complex things.

so it can go round stuff like staits and turns AI  players on most ai projects

so like using colour sensing.

you can use ghost sprites scattered around the track, which the car goes to in order. Press '1' while running this project, and you'll see what I mean:

http://scratch.mit.edu/projects/chalkmarrow/102887

Offline

 

#6 2008-09-18 17:39:40

deatheater
Scratcher
Registered: 2008-04-11
Posts: 1000+

Re: ai car?!

http://scratch.mit.edu/projects/deatheater/223093 there's one with variables

Offline

 

Board footer