708
edits
(Again I beg for some help) |
No edit summary |
||
Line 282: | Line 282: | ||
--[[User:Loser|Loser]] 21:03, 14 July 2008 (CEST) | --[[User:Loser|Loser]] 21:03, 14 July 2008 (CEST) | ||
The short answer: I don't know. | |||
The long answer: | |||
I haven't looked too much into Oni's AI code partly because it is quite large and complex (in fact it's probably the largest piece of code in Oni). I don't think AI can do more than simple tap jump but that really depends on how the AI controls the character: | |||
:*simply tell the character to execute an animation: that makes doing more than tap jumps impossible because there isn't a special animation for "jetpack" jump. | |||
:*simulate keypresses and mouse input: that means that it might possible but the AI needs to simulate holding the jump key which I have no idea if it can. | |||
The "simulate keypresses" method is more likely to be used in Oni. In fact I know for sure it does simulate some keypresses but I don't know if that's the only way. | |||
Pathfinding & stuff: I know there is something called "local movement" which may be what happens when the character is close by. This code seems to do character - environment collision detection so it may be true the pathfinding grid is ignored sometimes bacause there's not much point in AI doing collision detection if it always used the grid. | |||
Nice video anyway :) | |||
[[User:Neo|Neo]] |
edits