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.

Code Snippets / Amoeba Pathfinding

Author
Message
Elthan
22
Years of Service
User Offline
Joined: 29th Jul 2003
Location: Spain
Posted: 17th Nov 2004 01:26
Take a look at source button.

My little contribution for you. I try to give the same forum and code base gave me.

My english isn´t good enough I´m afraid. Try make me questions in a lenguage as simple as possible.

Thanks
Turoid
22
Years of Service
User Offline
Joined: 1st Nov 2003
Location: The Netherlands
Posted: 17th Nov 2004 01:39
WOW nice .. Do you think that you can convert this to 3D? and then i mean that an object is moving to it, not tile based movement but real time movement.

need help with programming?
Add me to your msn
Elthan
22
Years of Service
User Offline
Joined: 29th Jul 2003
Location: Spain
Posted: 17th Nov 2004 01:48 Edited at: 17th Nov 2004 01:49
Thanks Jopie dopie. Yes, but you can do it too. In second while loop you must assign the results to another exclusive array for your character/monster. Rest is like a path made with waypoints. In codebase there´s a editor. It will give you a good idea.

I think that I must keep things simple. Try it yourself please.
Turoid
22
Years of Service
User Offline
Joined: 1st Nov 2003
Location: The Netherlands
Posted: 17th Nov 2004 01:51 Edited at: 17th Nov 2004 01:55
ok.. figuring it out now ... very nice code.. really !

[EDIT]

look at this code, ive changed it a bit. You can see the player moving now



need help with programming?
Add me to your msn
Elthan
22
Years of Service
User Offline
Joined: 29th Jul 2003
Location: Spain
Posted: 17th Nov 2004 03:12
Very effective and smart. I knew you can get it.

Could you give your opinion about its difficult to learn it?

Thank u.
Turoid
22
Years of Service
User Offline
Joined: 1st Nov 2003
Location: The Netherlands
Posted: 17th Nov 2004 04:15
Not really hard. If you know how to place an object, or move an object from tile based coordinates its easy your pathfinder calculates all the coordinates.

need help with programming?
Add me to your msn
Elthan
22
Years of Service
User Offline
Joined: 29th Jul 2003
Location: Spain
Posted: 17th Nov 2004 04:20
Ok. I hope the rest of people has same opinion.

Anyway... no much people here.
sadsack
22
Years of Service
User Offline
Joined: 27th Nov 2003
Location: here
Posted: 18th Nov 2004 06:48
Nice Elthan, I like it
Elthan
22
Years of Service
User Offline
Joined: 29th Jul 2003
Location: Spain
Posted: 28th Nov 2004 21:14
Forgive my delay. Thanks.

Login to post a reply

Server time is: 2026-07-03 07:59:42
Your offset time is: 2026-07-03 07:59:42