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.

Dark Physics & Dark A.I. & Dark Dynamix / Dark AI - Sprites movement

Author
Message
BeastDeath
7
Years of Service
User Offline
Joined: 7th Jul 2011
Location:
Posted: 4th Nov 2011 22:16 Edited at: 4th Nov 2011 22:18
Hello, I'm trying to make it so that my player can run away from the AI's, my player never moves, everything else does.

In the code, I move the positions of the sprite when pressing the arrow keys. (It works when Dark AI is commented) How can I make it so that I can run away with Dark AI?

Here's an example:


Also how can I get the debug code to work?
Chris Tate
DBPro Master
10
Years of Service
User Offline
Joined: 29th Aug 2008
Location: London, England
Posted: 18th Nov 2011 14:50
It appears that you are trying to change the location of a static AI world. The AI system uses static obstacle points; these would need to be changed to reflect the current world position, something the static obstacle system was not designed for; but you could try to re-build the obstacle locations when the player moves, to see how smooth it runs.

I have not used the Dark AI system for a while, but if I remember correctly; for changing the AI world you'd need to work with way points and paths instead of obstacles; manual AI control.

Login to post a reply

Server time is: 2019-06-25 22:41:16
Your offset time is: 2019-06-25 22:41:16