Thanks for taking the time to read this. I'm a bit new to game programming in general, though I've dabbled in it before but not very seriously.
I just have a question more related as to how you would do something, not so much to solve it for me.
When I move a node between lets say point A(0,0,0) and point B(456,0,38), I'm wondering how to make it seem like it's smoothly tweening between positions and not rigidly move. I'm making a system sort of a long the lines of Diablo 2 where you click and the character moves there.
My first guess is to implement (in psuedo code)
Code: Select all
If ( the character is not currently moving )
{
set a start position
set an eind position
calculate the time it should take
create a scene animator
}
Else ( if he already has a path )
{
Delete the old animator
set a new start position
set a new eind position
calculate the time
Create a scene node animator
}
I'm just wondering from the more experienced people if this is a good option, or if otherwise how have you handled it?
Edit: I also saw the smooth movement in the FAQ, but it's not really what I'm looking for.