Racing AI Example

user_icon chalkmarrow shared it 5 months, 2 weeks ago
288 views, 7 people love it, 35 downloads, in 3 galleries, 7 remixes
Add to my favorites?
Flag as inappropriate?

Comments

You need to be logged in to post comments

Add a Comment

chalkmarrow chalkmarrow 3 months, 2 weeks ago

Looby: That's a bug. The actual driving I game I made took care of that problem and simplified the movement of the waypoints (this version uses trig functions, which is overkill).

(view all replies)
Comment Reply

Looby Looby 3 months, 2 weeks ago

Have you noticed that the waypoints always move closer towards the center after a while? The car began driving on grass...

(view all replies)
Comment Reply

dingdong dingdong 3 months, 4 weeks ago

kool

(view all replies)
Comment Reply

Fractal Fractal 4 months ago

Great ideas in this project. I may remix some of it for my own racing game.

(view all replies)
Comment Reply

beepbeep beepbeep 4 months, 3 weeks ago

make the waypoints draggable

(view all replies)
Comment Reply

geckofreak geckofreak 4 months, 3 weeks ago

Spazy

(view all replies)
Comment Reply

geckofreak geckofreak 4 months, 3 weeks ago

Spasy driver!!

(view all replies)
Comment Reply

extraevil extraevil 5 months ago

alright

(view all replies)
Comment Reply

chalkmarrow chalkmarrow 5 months ago

Note that I used trig functions to make the waypoints go back and forth smoothly, but that takes a lot of processor time, so I think it is much easier to use the glide block and just go back and forth.

(view all replies)
Comment Reply

chalkmarrow chalkmarrow 5 months, 1 week ago

bla: that's another good way to do it.

(view all replies)
Comment Reply

bla bla 5 months, 1 week ago

i used bumper control

(view all replies)
Comment Reply

bla bla 5 months, 1 week ago

i did not use waypoint on my racing game

(view all replies)
Comment Reply

fbboi999 fbboi999 5 months, 1 week ago

I edited it really quick.. It may be a little buggy. (link to project) sorry... I was going fast and didn't know how to make the sprite turn correctly while driving... so I used the old marble racer sprite

(view all replies)
Comment Reply

fbboi999 fbboi999 5 months, 1 week ago

I'll try and mod it. I won't try and add more levels yet, until I understand how this actually works. :)

(view all replies)
Comment Reply

EGEmedia EGEmedia 5 months, 1 week ago

Good work. I am juging the things in my new gallery THE SCRATCH GALLERY and the best will get there work on my website WWW.EGEmedia.co.uk with a mention about you and your work but I will need your 1st name and your work will have a reamake by me, a love it from me, It will be added to the EGEmedia public gallery plus It will go on my favorets.

(view all replies)
Comment Reply

chalkmarrow chalkmarrow 5 months, 1 week ago

Note that the movement of the waypoint circles is very simple, and just uses one trig function to make it go back and forth smoothly. The same movement would be very useful in tgames you are making.

(view all replies)
Comment Reply

simonpokemonmaster simonpokemonmaster 5 months, 1 week ago

you can zizins

(view all replies)
Comment Reply

infinex infinex 5 months, 1 week ago

SWEET

(view all replies)
Comment Reply

zizins zizins 5 months, 1 week ago

you can stop them

(view all replies)
Comment Reply

Paddle2See Paddle2See 5 months, 2 weeks ago

Very nice....now I'm starting to get a little motion sick from watching the waypoints go back. and forth. and back...Seriously though, a very simple and elegant solution. I was starting down Jens' path when you came up with this beauty.

(view all replies)
Comment Reply

Jens Jens 5 months, 2 weeks ago

Brilliant! I didn't even think of (simple) waypoints to accomplish AI when reading the forum question, since I was so preoccupied about letting sprite-robots 'sense' their way around checking for overlapping colors and adjusting their direction accordingly that the more elegant solution didn't even occur to me. Cool! Now, could you make some more levels, please !

(view all replies)
Comment Reply

EdnaC EdnaC 5 months, 2 weeks ago

Awesome, and a very quick response to the forum question. I imagined waypoints that changed each level, or each lap, but the waypoints in motion idea is even better...

(view all replies)
Comment Reply

chalkmarrow chalkmarrow 5 months, 2 weeks ago

Another thing that could be improved, right now it only heads toward the next waypoint when it hits the previous waypoint. It would be smoother if it switches waypoints when Distance to [waypoint] is less than some number.

(view all replies)
Comment Reply

chalkmarrow chalkmarrow 5 months, 2 weeks ago

Before Paddle2See asks me for more levels, perhaps someone can mod the project to add a player race car...

(view all replies)
Comment Reply

Processing