≡
Products
▼
Support
▼
Company
▼
Forum
Ambiera Forum
Discussions, Help and Support.
Create a new account
,
Search
, or Login:
Create reply in
Robbo's path finding algorithm
Posted by:
(you are not logged in)
Enter the missing letter in: "Inter?ational"
(you are not logged in)
Text:
[quote][b][/b] wrote: [quote][b]Robbo[/b] wrote: You would need to code that yourself. The final path array is calculated for you so just get the node from the name, and its position then send your character to that position - its fairly simple. You can borrow existing code for this purpose if you like - either 'Just_in_case' free code or 'Svens' version all have the ability to move a player from one location to another. They both include player rotation also or you can use the CC API to do all of that bit easier with "ccbAICommand(alien, "moveto", PlayerPos);" There are other version floating around also... Every xxx ms check if the player has reached the next position and if so then move to the next position and so forth....[/quote] Hi Robbo, Thanks for posting the initial code for your "Path finding" I tried it out in the script window and it seems to do as you say, it printed the "path", however the difference between your approach and say Svens Pathfinding is quite different. You post the algorithm and code but did not make an example to show it working in CC. That's completely fine for those who are skilled enough at coding but for those who are not it's more difficult. Some users are wired differently in terms of being able to code directly in JS or use the behaviors/action system. I can code very basic stuff and it really comes hard to me to grasp more complex stuff. Now as far as graphics and creating art, that's my trade and I do that for a living so that comes more naturally. Please understand I'm not being judgmental on you putting up the raw-code , your contributions are always generous and welcomed, just saying putting up a video like you have in the past we can see it actually working as non-coders. Sven takes it a bit further and offers the code and cc file etc. Again that's his choice. Some of us will never be able grasp "coding" like some will never grasp..oil painting or 3d modeling and animation etc. Any way man that's my 2 cent and again thanks for posting this, and it helps our community. CF[/quote]
Possible Codes
Feature
Code
Link
[url] www.example.com [/url]
Bold
[b]bold text[/b]
Image
[img]http://www.example.com/image.jpg[/img]
Quote
[quote]quoted text[/quote]
Code
[code]source code[/code]
Emoticons
Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact