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 / collision and ai (sparky or dark physic)

Author
Message
OnQue Int
17
Years of Service
User Offline
Joined: 8th Jun 2007
Location:
Posted: 25th Dec 2008 19:57
I under stand that using dark physic can conflick with the ai so the movement of the ai must be done with dark physics.
what i want to know is can i take my collision code of sparkys that i use with my player(fps) and make it a fuction and aloow all the ai entitys(enemy) use the same function if so how can i call the function for them do i do it once or do i have to call it for every individual entity?
Butter fingers
18
Years of Service
User Offline
Joined: 20th Mar 2006
Location: Mecca
Posted: 26th Dec 2008 11:52
for E= firstcharacter to lastcharacter

Collision(E)

next E

bergice
17
Years of Service
User Offline
Joined: 5th Jun 2007
Location: Oslo,Norway
Posted: 27th Dec 2008 17:47 Edited at: 27th Dec 2008 17:48


I think you should add that.

3.19GHz - 7600GT - 1GB - Windows XP
Visit my youtube profile: http://www.youtube.com/user/bergice1
Butter fingers
18
Years of Service
User Offline
Joined: 20th Mar 2006
Location: Mecca
Posted: 28th Dec 2008 01:14
lol.

Well, you should probably check if the character is alive, and if they are on screen, and if they are vivible and if they are currently active. I was just giving the most basic example. if you create your characters logically then there shouldn't be a need to check if they exist!

OnQue Int
17
Years of Service
User Offline
Joined: 8th Jun 2007
Location:
Posted: 29th Dec 2008 19:24
How di get the function to understand that (E) is my eney object
jason p sage
17
Years of Service
User Offline
Joined: 10th Jun 2007
Location: Ellington, CT USA
Posted: 3rd Jan 2009 03:49
e will be a numer. The loop counts from the first enemy to the last enemy - and presumes your enemies are using consecutive id's... e.g. 10,11,12,13,14

I personally use arrays in DBPro so I can add and remove them from the list, and make the loop work on the array length (or number of enemies in it)... also this array I decribe uses a userdefined structure so I can alot more information about each enemy than a bunch of IDs.

Consecutive ID's for enemies - would not be my personal approach... but it will get you started.

--Jason

Login to post a reply

Server time is: 2024-11-24 18:31:47
Your offset time is: 2024-11-24 18:31:47