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.

DarkBASIC Professional Discussion / From point A to point B avoiding an obstacle

Author
Message
Cescano
10
Years of Service
User Offline
Joined: 4th Sep 2014
Location: Italy
Posted: 9th Jun 2015 23:56
I have tried to look in the AI forum but sadly I didn't found anything usefull.

What I need to do is very basic, I have a character at point A, he needs to walk to point B, but between A and B there is an obstacle, how can I make so that the character reach point B without being stuck on the obstacle?
wattywatts
16
Years of Service
User Offline
Joined: 25th May 2009
Location: Michigan
Posted: 10th Jun 2015 03:45
A basic way I've seen it done is to place hidden boxes at various locations so the character walks to each box, then points to the next.
MrValentine
AGK Backer
14
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 10th Jun 2015 05:24
What AI system are you using? DAI controls this for you...

Cescano
10
Years of Service
User Offline
Joined: 4th Sep 2014
Location: Italy
Posted: 10th Jun 2015 05:56
the box thing will not work because the 2 characters are Always in different positions.

I am not using any AI system just wrote my own, the problem is that the enemy that wants to reach you, just point to you and move (obviously with animation), if there is an obstacle between me and the enemy, the enemy just keep walking without moving because he hit the obstacle.

If you move in another point obviously the enemy keep following you but if there is an obstacle exactly in the middle of you and him he can't reach you because pointing you just hit the obstacle, so he will not catch you unless you move in a different position
MrValentine
AGK Backer
14
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 10th Jun 2015 07:14 Edited at: 10th Jun 2015 07:14
You need an AI system, such as A*... Dark AI is pretty cheap... but I assume you are using the free version of DBPro... I am not aware of a free AI plugin on the forum but you can always look for Open Source AI or similar phrases...

If you bought the Dark Game Studio bundle then you have Dark AI included and I highly suggest looking at it for this issue... it also has STRAFING!

Cescano
10
Years of Service
User Offline
Joined: 4th Sep 2014
Location: Italy
Posted: 10th Jun 2015 08:08
Yes I have bought the dark studio bonanza pack so I have the Dark AI included, just I don't know how to use it for my purpose, as everything for DbPro the documentation is Always lacking or not present at all for some things.


What is strafing btw?
MrValentine
AGK Backer
14
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 10th Jun 2015 08:10
There is a .chm file and a lot of examples... Did you not find any of these?

The web is your friend go look up the term

Cescano
10
Years of Service
User Offline
Joined: 4th Sep 2014
Location: Italy
Posted: 10th Jun 2015 08:17 Edited at: 10th Jun 2015 08:22
As I said the commands are not documented so I don't know how to use them, there are examples yes but without a minimum of documentation is hard to understand what each command does


Edit:

Just found the chm file, it explains something, I might take a look at it when I have time
MrValentine
AGK Backer
14
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 10th Jun 2015 08:22
😁[i]

Green Gandalf
VIP Member
20
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 10th Jun 2015 12:06
Quote: "Just found the chm file, it explains something, I might take a look at it when I have time"


Sounds like a plan.



Powered by Free Banners
Scotty1973
AGK Backer
14
Years of Service
User Offline
Joined: 2nd Jun 2011
Location: Burton-on-Trent, uk
Posted: 10th Jun 2015 21:31
Hi

Re: Dark AI


I have a couple of videos from Daniel from this forum, he used to do tutorial videos(they were great and I do miss them )

Hope these help

Scotty
MrValentine
AGK Backer
14
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 10th Jun 2015 22:40
I do hope you asked for his permission to redistribute an illegal copy of his YouTube videos...

.FLV is a giveaway...

If I be wrong... Oh well just odd to redistribute an flv...

wattywatts
16
Years of Service
User Offline
Joined: 25th May 2009
Location: Michigan
Posted: 11th Jun 2015 03:53
Quote: "DbPro the documentation is Always lacking or not present at all for some things."

I know what you mean, I never did figure out how to rig a head for dark voices. I ended up just retexturing the default head on a new body.
MrValentine
AGK Backer
14
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 11th Jun 2015 04:23 Edited at: 11th Jun 2015 04:45
Quote: "I ended up just retexturing the default head on a new body. "


LOL... I might use that method too... there was something that needed doing in a modelling application... but this might be a neat idea to open that model up and see what is there and just copy it...



EDIT

Uses a MAX file....... and neither Blender nor MS3D can load these... might be able to get a loader for Blender but will likely not be free... where can I get an old copy of 3DSMAX from these days? anywhere still selling them?

wattywatts
16
Years of Service
User Offline
Joined: 25th May 2009
Location: Michigan
Posted: 11th Jun 2015 06:57
Quote: "where can I get an old copy of 3DSMAX from these days? anywhere still selling them?"

Ebay has a few copies that look legitimate but they're a bit pricey. There's a 30 day no restrictions trial at autodesk's website however.
Derek Darkly
13
Years of Service
User Offline
Joined: 22nd Sep 2011
Location: Whats Our Vector, Victor?
Posted: 11th Jun 2015 23:00
As a cheap solution, I would just do a distance check and, if too close, just rotate away from the object.

MrValentine
AGK Backer
14
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 12th Jun 2015 07:12
Quote: "Ebay has a few copies that look legitimate but they're a bit pricey. There's a 30 day no restrictions trial at autodesk's website however. "


[Joke] What is Ebay? I think I will give Max a miss and maybe do without facial movement in-sync...



Quote: "As a cheap solution, I would just do a distance check and, if too close, just rotate away from the object."


Cannot say I would agree with this method...

Login to post a reply

Server time is: 2025-08-09 02:29:42
Your offset time is: 2025-08-09 02:29:42