Dynamic Enemy Patrol for platformers!
I couldn't find anything regarding this feature. I did find the tutorial from @jamie_c (thanks for that:)!), but you had to pre program the patrol area for every enemy, which is not a bad thing though. But what if you blow up the platform where the enemy is patrolling on, and it's falling down onto another platform? Yep you guessed it right, it needs to update it's patrol area.
v1 of this demo still has a bug. Sometimes it doesn't update it's patrol area when multiple enemy's update it at the same time. I need to figure out which enemy is colliding with which platform, then it should be solved. Tonight or tomorrow I will have another look at it, I had the solution in my head for a minute, but then I lost it haha.
You can touch the white platforms to destroy them.
It's a very simple system, and overall it works really well.
Enjoy!
Comments
@Approw, very nice! Love the flexibility of your method.
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page
Very cool. Thanks for sharing!
Mental Donkey Games
Website - Facebook - Twitter
Nice, great method too !!