PLEASE CREDIT ME IF YOU USE MY AI, I WORKED SUPER HARD ON IT ;-;-EG64 Arrow keys to move, Z to jump. The AI just follows you around. If it goes off the edge of the screen, it returns to roughly your position. Updates: okay, so i tryed to add and AI-safty border feature.... but it doesnt really work, what its supposed ti do is this: when tails is near it, or touching it, he's supposed to speed up alot just so he can follow sonic... but that doesnt work, like, at al.l and i think i messad with some varibles so now the ai safty border can move, not sure why-1/31/2025-FIXED 2/3/25: Okay, so i fixed up tails's small problem with the ai safter border, and now im planing on... adding his flight ablitly (i got the code from @chavis10)-Okay, however, while trying to add tails flying code... i acidentally added his, uhm.... other tails, if you will, the second tails, isnt ai, he just follows the same engine as sonic..-SONIC HAS TAILS ARMY!?!?-for now..- it also breaks the way tails works-fixed and removed the tails army,, tho i might add it back aain. Note: sonic's and tiels speed variables are tied together in order to make it so that sonic desnt out run tials to easly. (HAVENT UPDATED IN A WHILE, DONT WORRY, IWILL THOUGH, EVENTUEALLY.)
Credit: Tomicool Eg64 for the ai engine