Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Game is fire!
How did you managed to do AI for player? Also AI for, well, AI? It's mindblowing.
Can you tell some info about how player moves and AI chooses what to do?

From what i knew of the game, the logic of the dumb player (or dummy) is it has some pre-coded/hardcoded moves (move left, move right, jump, jump right, jump left, do nothing) and every few seconds, do a random move from the pre-coded moves. The randomness is a bit skewed to try to get the dummy closer to the end point (green orb)

(+1)

Hey, don't know how I missed this comment! The AI is actually pretty simple. It works as follows: It has a chance of moving to the finish, or not moving. Whatever it decides, it does that for a random amount of time before choosing again. It also has a small chance to attempt to jump every frame. I'm glad you find it cool :)

Cool! Thanks for reply :)

I don't remember well, but i think that the most i was interested in 'hostile' AI. Like, how it's deciding what to do? Player ai seems pretty straightforward, yeah :)

(+1)

Ahhh my bad, the evil guy AI isn't really an AI, it just spawns bombs at a random position above the player, and it only spawns once the cursor reaches within a certain distance of that point. Between bombs, it decides on a random point to go to, and triggering any actions (like moving the finish) causes the cursor to complete that as its next task. The cursor basically always lerps to wherever something needs to be done. I don't 100% remember how it works so lmk if you want to know more.

Thanks, i guess that's enough. I don't wanna know every detail anyway, so i accidentally don't copy that logic. Better to invent things like that by yourself. Thanks a lot!

Haha yeah that's right. No worries ;)