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 / Enemy not avoiding obstacles?

Author
Message
baxslash
Valued Member
Bronze Codemaster
17
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 2nd Jul 2009 12:12
Can anyone help me in getting my enemy shown in the attached screenshot to avoid the obstacle?

I can see from the DEBUG that the obstacle has been added correctly from my table object using;

AI Add Static Obstacle obst1, 0, 1
AI Complete Obstacles

The waypoints are visible but the enemy does not create a path? Do I have to manually create paths for him to follow on the fly in automatic mode or what?

Any help would be greatly appreciated!

Attachments

Login to view attachments
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 2nd Jul 2009 14:53
your Container Number seem to be the wrong value, shouldn't be 0 for first level.

Dark Physics makes any hot drink go cold.
baxslash
Valued Member
Bronze Codemaster
17
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 2nd Jul 2009 15:19
I get the following from the Dark AI chm file:

Syntax
AI Add Static Obstacle Obstacle Number
AI Add Static Obstacle Obstacle Number, Height
AI Add Static Obstacle Obstacle Number, Height, Container Number

My code
AI Add Static Obstacle obst1, 0, 1

Giving:
Obstacle Number = obst1
Height = 0 (Half height)
Container Number = 1

...I don't think that's the problem. Thanks anyway though.
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 2nd Jul 2009 15:34
Quote: "The container number allows you to add the obstacle to a different container, the default is 0.
"


I read the above as if I am on my main level it will be zero, if I went upstairs then it would be container 1.

have look at this thread
http://forum.thegamecreators.com/?m=forum_view&t=152922&b=30
might help.

Dark Physics makes any hot drink go cold.
baxslash
Valued Member
Bronze Codemaster
17
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 2nd Jul 2009 16:03
Got it! Thanks @HowDo I get what you meant now!

I had my obstacles set up for container 1 but I hadn't specified that my enemy was in container 1 (AI Set Entity Container enemy, 1).

Attached is working screenshot if you are interested!

Attachments

Login to view attachments
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 2nd Jul 2009 16:16
Well done knew you get.

You my not have done what I did which was to print out all 300 odd pages so I could read the AI commands, that how I work it out , plus I have made my own ide help files.

Dark Physics makes any hot drink go cold.
baxslash
Valued Member
Bronze Codemaster
17
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 2nd Jul 2009 17:22
I saw the help files on the post and I'll be after those later for quick searching (thanks again!) but for the time being the chm file is OK.

AI is pretty cool once you start getting into it

Login to post a reply

Server time is: 2024-04-24 04:40:04
Your offset time is: 2024-04-24 04:40:04