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.

P#31376 2016-10-21 08:24 ( Edited 2017-01-28 10:45)

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.

P#31384 2016-10-21 10:47 ( Edited 2016-10-21 14:47)

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

P#31386 2016-10-21 11:06 ( Edited 2016-10-21 15:06)

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!

P#36809 2017-01-28 05:45 ( Edited 2017-01-28 10:45)

[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2024-04-18 06:32:38 | 0.022s | Q:18