Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(+1)

"All was fun and aerial games...

But then, everything changed when the Spike Nation attacked!"

Solid gameplay, with polished fighter ladybug animations, a series of attack moves and checkpoints!

How did you figure out the checkpoints?

I imagine a state machine was used. Could I ask for a picture of the AnimationTree please? I love to see  them in this complexity :D

(2 edits)

Thanks!

If you're really curious about the implementation details, the source code is all public on GitLab:

https://gitlab.com/snopek-games/portal-bug

Yes, there was a state machine for each of the actors: the player, as well as the plant and spider enemies. We didn't use an AnimationTree, just lots of animations on an AnimationPlayer, that were all triggered by the different states in the state machine.

The checkpoints are actually super simple! There's just a variable that gets set with the last checkpoint you crossed, and its position becomes the respawn point for the player. This works because the enemies in the stage respawn on a timer, so we don't need to save any sophisticated game state with the checkpoints.