Welcome Guest [Log In] [Register]
We hope you enjoy your visit.


You're currently viewing the Ultimate 3D Community as a guest. This means that you can only read posts, but can not create posts or topics by yourself. To be able to post you need to register. Then you can participate in the community active and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.

Join our community!

If you are already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
Separate weapon and pathfinding; solid or not, some suggestions
Topic Started: May 18 2007, 09:38 PM (274 Views)
The eleventh plague of Egypt
Member Avatar
Forum Leader
[ *  *  *  *  * ]
I love AIs, but developing them is like a war :D
I have a great pathfinding code, but it's mined at his basis

I have made every character object brings its own gun object
The basic pathfinding code is mp_potential_step (x,y,speed,checkall) SO
setting characters and guns as non-solid
1) if I set checkall to 1 the character tries to avoid his own gun
2) if I set checkall to 0 characters go one on the other

A solution would be setting characters as solid and guns as non solid...but the Game Maker manual says not to set moving objects as solid...but it works anyway

What would you do ? Should I ignore the manual ? Remember each gun is close to his carrier.
Enigma R4 beta released.
Offline Profile Quote Post Goto Top
 
skarik
Member Avatar
kitten eating scum
[ *  *  *  *  *  * ]
Quote:
 
A solution would be setting characters as solid and guns as non solid...but the Game Maker manual says not to set moving objects as solid...but it works anyway

There goes my whole RTS pathfinding then.

Yeah, I would do the "AI" the same way. If not, I would put 'nodes' all over my level, where the "AI" could navigate to and from, calculating enemies by finding the shortest node path.
Blog|EHS
Offline Profile Quote Post Goto Top
 
The eleventh plague of Egypt
Member Avatar
Forum Leader
[ *  *  *  *  * ]
This is only a function used by my AI: I'm trying to solve the collision problem, nothing more and nothing less...no generic suggestions, please

So would you ignore the manual ? I'm probably taking this way :dunno:
Enigma R4 beta released.
Offline Profile Quote Post Goto Top
 
Hedgehog
Advanced Member
[ *  *  * ]
ignore the manual, you wont get any fatal errors :)
Offline Profile Quote Post Goto Top
 
« Previous Topic · Off-topic · Next Topic »
Add Reply