Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / [AGK] Waypoints AI

Author
Message
nonom
7
Years of Service
User Offline
Joined: 12th Nov 2017
Location: Picking mushrooms
Posted: 2nd Apr 2018 22:25
I did this test the last weekend,

I'm using sprites as waypoints to change the direction of the "enemy" sprite, so emulating some AI where the mobs change the direction not only if they collide with the wall -checking the current tile +/- 1- but decide to change the direction pressing the waypoint sprite.

Some code as example, it has a little state machine



Attachments

Login to view attachments
nonom
7
Years of Service
User Offline
Joined: 12th Nov 2017
Location: Picking mushrooms
Posted: 21st Apr 2018 20:12
nonom
7
Years of Service
User Offline
Joined: 12th Nov 2017
Location: Picking mushrooms
Posted: 5th May 2018 15:45 Edited at: 5th May 2018 15:58
I'll try to finish this game. But the pirate force may go with me.
http://www.nyan.cat/pirate

Login to post a reply

Server time is: 2024-11-23 19:41:02
Your offset time is: 2024-11-23 19:41:02