ScratchData LogoScratchData
Back to MartinXD12's profile

Chasing AI

MAMartinXD12•Created October 28, 2018
Chasing AI
1
1
61 views
View on Scratch

Instructions

Your character is red and always facing your cursor. To move it, press W or the up arrow key. You're constantly getting chased by a yellow cube Press Space to summon a bunch of black bars.

Description

This AI is by no means perfect, it will still get stuck every now and then, but it's still better than just chase this sprite. I'm still working on it, but this is the foundation of the AI. This is more of a proof of concept, so nothing happens if it touches you and you can go through walls. 1.0: The AI is pretty simple, it chases the player until it touches black, then it turns until it no longer touches black (or that's how it should work) and then chases you again. It's very slightly faster than you. I'm going to work on an AI that runs away. 1.1: Added a purple AI that gets chased by a green AI pretty quickly, this is still a very early version. The boxes are now smaller because they get in the way too often. The AIs now don't physically turn, so they should get stuck less. 1.2: Experimenting with letting AIs get out of walls easier, it's game-breaking for now so the current/old way is still getting used. 1.3: Added an AI that runs away from you.

Project Details

Project ID257423648
CreatedOctober 28, 2018
Last ModifiedNovember 17, 2018
SharedOctober 28, 2018
Visibilityvisible
CommentsAllowed