Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags
(1 edit)

Hello! I am really sorry I didn't saw your comment.

 it didn't pop up on my notification for some reason.

I am not confident enough to share my code( I don't think it's a good example to begin with. plus, it's too specific to use elsewhere ).

but I'm just going to explain how I did it :

in short, I used state machine and list.

first, I put all the states the golem can be in in a list( kind of like array in other programming language ) and shuffles the list.

after that, the code just goes through the list, executing states one by one and after it reaches the last entry on the list, it re shuffles again and the cycle continues.

If you have more questions, feel free to ask! I'll try to check it faster this time.

and last, I want to show you this fantastic blog posts that helped me a lot with this game.

https://nikles.it/2019/gamemaker-tutorial/how-to-code-a-platformer-engine/

it teaches you how to make a platformer and I highly recommend it.

I hope my English wasn't too bad! I wish you a good luck! cheers!