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.

Newcomers DBPro Corner / point object problem

Author
Message
Heckno
20
Years of Service
User Offline
Joined: 8th Sep 2004
Location: Palm Coast, FL
Posted: 28th Jul 2005 04:57
DBP,The y position acts funny (pitches enemy to player position) when I try to loop through more than one enemy (mon_1=x: number of enemy)..if its just one enemy it tracks correctly......



any suggestions other than switch to vectors would be appreciated
Louiz ofRohr
20
Years of Service
User Offline
Joined: 11th Nov 2004
Location:
Posted: 28th Jul 2005 16:30 Edited at: 28th Jul 2005 16:59


figure this code out..
not difficult.. I think you did forget to point the objects when
they are inside the condition for to be moving... so.. when they can
move to main character's position, they stop pointing properly
to it..

Programming logic hint:
The first condition is: enemy must to stop? If doesn't, then
can it move? If yes, then move AND point to character.. If can't
move, so.. can it just point to object?
Ok.. you follow the logic you think it's easier for you..
But I hope that the code above helps..

(ignore that array.. I declared that just for setting up different
speeds to enemies (trying to get rid of those ugly 2 or more enemies' "fusions"))..

ok... blah blah blah
just enjoy

The worst foe lies within the self...
Louiz ofRohr
20
Years of Service
User Offline
Joined: 11th Nov 2004
Location:
Posted: 28th Jul 2005 17:01
oh! Is that what you wanted?


The worst foe lies within the self...
Heckno
20
Years of Service
User Offline
Joined: 8th Sep 2004
Location: Palm Coast, FL
Posted: 29th Jul 2005 03:08
No, the tilting problem still exists. Even with your code the AI boxes tilt according to the y position via the point object command...The tilting on the y axis is what is driving me insane...

I was hoping there was a way to get the AI to point and move toward the player without the y position being a factor...
master programmer
19
Years of Service
User Offline
Joined: 30th May 2005
Location: 3D Space
Posted: 29th Jul 2005 03:29 Edited at: 29th Jul 2005 03:32
Well, you might be able to get away with something like this, keeping in mind that you can change the Y positon to whatever the enemy is at. So, the key to my code is just where the enemy is that it uses the y position.



That's not much, but it may just be what you're looking for, but, the enemy may still look down, this is just my quick solution.....I'll ponder this and reply back later.

---------------
Vote for Excelsis in the Puzzle Game Compo

__________________________________________
<<<<<Check out my sites>>>>>
www.rhettgames.tk | www.slayerbattletanks.tk
Heckno
20
Years of Service
User Offline
Joined: 8th Sep 2004
Location: Palm Coast, FL
Posted: 31st Jul 2005 03:10
Master, you are the master.....

I just ran the point object command with x&z tracking the player while the y position is held by the mon and my problem seems to have been resolved....

thanks and on to the next issue

Login to post a reply

Server time is: 2024-11-27 20:50:12
Your offset time is: 2024-11-27 20:50:12