Log In  


Cart #31375 | 2016-10-21 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
3

In more of a attempt to learn Pico 8 simply from the manual I have created a enemy that cases the player.

There is nothing very exciting to this as it is a test of the logic. Essentially the enemy looks to see where the player x and y is. it then minuses or adds 1 to its own location depending on if it is > or < the target location on the x and y.

3


Sudoradish. Consider perhaps a turn-based game. Where the enemies don't move until the player does.

THEN it gets interesting to create an enemy that is intelligent and knows how to get around obstacles to reach the player.


This is mainly me learning how the LUA code works. I am looking at grid based movement also.


I know this is an old thread, but I'd been struggling with how to do something like this and this is a million times simpler than anything I came up with, thanks!



[Please log in to post a comment]