Hi! I'm BlueMockingBird. I started scratch a few weeks ago, in the process of making a racing game w/acceleration, deceleration, etc.
Anyway on topic... I thought this idea might be a little too ambitious to tackle after only a few weeks of programming, but oh well...
I was wondering if it would be possible to make an entity with artificial intelligence on a Scratch-made game. If anybody posted ideas in this thread, almost anything would help me, since I only started and know only about acceleration, deceleration and the simplest of side-scrolling games.
Offline
You could have a yellow line running down the entire length of the track, and have the car try and follow that line and keep a small coloured sensor on that line, if it gets off of the line, make it turn back towards it.
Offline
zammer990 wrote:
You could have a yellow line running down the entire length of the track, and have the car try and follow that line and keep a small coloured sensor on that line, if it gets off of the line, make it turn back towards it.
Hmm, I see. So maybe I could have a few individual invisible yellow line sprites for various AI cars? That seems like a pretty great idea. Thanks for the feedback!
I'm also working on an rpg project, which is going to be much like zelda or those top view, scrolling games. When enemies come should I just add different phases to the attack behavior of the enemy, or should I add a feature that makes it react intelligently to the player?
Offline
BlueMockingBird wrote:
zammer990 wrote:
You could have a yellow line running down the entire length of the track, and have the car try and follow that line and keep a small coloured sensor on that line, if it gets off of the line, make it turn back towards it.
Hmm, I see. So maybe I could have a few individual invisible yellow line sprites for various AI cars? That seems like a pretty great idea. Thanks for the feedback!
I'm also working on an rpg project, which is going to be much like zelda or those top view, scrolling games. When enemies come should I just add different phases to the attack behavior of the enemy, or should I add a feature that makes it react intelligently to the player?
It depends, though you could do both. For example, if you have a hard enemy, then you could make it more intelligent, and if you had an easy enemy, then you could make it follow attack patterns, which is what I think would be best.
Anyway, hello BlueMockingBird and welcome to Scratch! I wish you good luck on your Zelda project! :)
Last edited by ErnieParke (2013-01-06 15:27:56)
Offline
BlueMockingBird wrote:
zammer990 wrote:
You could have a yellow line running down the entire length of the track, and have the car try and follow that line and keep a small coloured sensor on that line, if it gets off of the line, make it turn back towards it.
Hmm, I see. So maybe I could have a few individual invisible yellow line sprites for various AI cars? That seems like a pretty great idea. Thanks for the feedback!
I'm also working on an rpg project, which is going to be much like zelda or those top view, scrolling games. When enemies come should I just add different phases to the attack behavior of the enemy, or should I add a feature that makes it react intelligently to the player?
You can make it as complex as you want, you could for example have it check the distance and direction of the player, if they're behind the player and close, they could do a longer attack to set up, but that does more damage, or they could observe the player, and wait until they're vulnrable
Offline