Discuss Scratch

CAA14
Scratcher
500+ posts

I need help with some A.I. Issues...

Hi,

Okay, so i am doing this block request that this person wants a block that tells a sprite to search for the player while avoiding the color of the walls.

SO…. I have a theory using clones to solve this, and i have my method in this project.

Please look over it and tell me what you see wrong. I do not yet really understand how scratch does clones, so this may be the root of the issue.
mwiedmann
Scratcher
100+ posts

I need help with some A.I. Issues...


You need to share that project so we can see it.

If the “playing field” is a grid of some kind, I saw someone just post an excellent “how to” on path finding. That will be exactly what you want. If the field is free-form it can be VERY hard to program AI to navigate that, especially if there are any curved walls. Your best bet is going to be to break the field down into some kind of grid, even if it is just a conceptual grid for the AI to look at.
CAA14
Scratcher
500+ posts

I need help with some A.I. Issues...

mwiedmann wrote:

You need to share that project so we can see it.

If the “playing field” is a grid of some kind, I saw someone just post an excellent “how to” on path finding. That will be exactly what you want. If the field is free-form it can be VERY hard to program AI to navigate that, especially if there are any curved walls. Your best bet is going to be to break the field down into some kind of grid, even if it is just a conceptual grid for the AI to look at.

Thanks for responding, but i think i've got it now…
sparks
Forum Moderator
100+ posts

I need help with some A.I. Issues...

Closed by request of the topic owner

Powered by DjangoBB