| Mirage Source http://miragesource.net/forums/ |
|
| smoother npc walking http://miragesource.net/forums/viewtopic.php?f=201&t=3576 |
Page 1 of 1 |
| Author: | seraphelic [ Thu Apr 10, 2008 9:27 pm ] |
| Post subject: | smoother npc walking |
I tryed fiddling with my source for a while but I need help with this one.. How can I make an npc walk more constant when following me? Instead of just walking one tile every second. |
|
| Author: | Robin [ Sat Apr 12, 2008 10:19 am ] |
| Post subject: | Re: smoother npc walking |
http://web.miragesource.com/forums/viewtopic.php?f=75&t=2305 |
|
| Author: | seraphelic [ Sat Apr 12, 2008 4:15 pm ] |
| Post subject: | Re: smoother npc walking |
Lol not ai, smoothness. When he's chasing me he looks like he's walking down the isle to get married. I'm talkin about him actually keeping up with you and continously moving as soon as he finishes his last step. |
|
| Author: | Robin [ Sat Apr 12, 2008 4:50 pm ] |
| Post subject: | Re: smoother npc walking |
When I reply with a link, it means it useful. Don't argue with me. The reason he walks like that is because of the AI. Seeing the link now? Fix the AI calculation so it's not the retarded 'Dice' system that is default and it'll sort out the NPC movement. Speed up the loop if it's too slow. |
|
| Author: | seraphelic [ Sat Apr 12, 2008 6:12 pm ] |
| Post subject: | Re: smoother npc walking |
Like i said i tryed fiddling around with it and I need some help.. I have dragoons master ai fyi. Ugh. |
|
| Author: | Robin [ Sat Apr 12, 2008 6:51 pm ] |
| Post subject: | Re: smoother npc walking |
If you'd have said that, I would have given you a different answer. Make sure you give us all information so we can analyse it properly. I suggest you try running the server on a semi-decent separate machine and turn your GameAI loop timer higher. |
|
| Author: | seraphelic [ Sun Apr 13, 2008 12:27 am ] |
| Post subject: | Re: smoother npc walking |
Thanks, I was trying to mess with the code inside GameAI. While Im on the subject though, dragoons master's ai causes some pretty annoying lag. Before I attempt, is it optimizable or is it about as good as it gets? |
|
| Author: | Robin [ Sun Apr 13, 2008 12:31 pm ] |
| Post subject: | Re: smoother npc walking |
Everything is optimisable. Simply make it so you don't recheck the entire matrix for the path every loop, and instead save the path when you need to. |
|
| Author: | seraphelic [ Sun Apr 13, 2008 5:05 pm ] |
| Post subject: | Re: smoother npc walking |
I made it so it saves my location and only rechecks the matrix when I move. I still get lag when Im running away though. |
|
| Page 1 of 1 | All times are UTC |
| Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |
|