Interpolating Speed
CharlieG97
Member Posts: 52
I currently have two actors, one the player and one an enemy. I want the enemy to follow the player, which I have already done. What I can't figure out is how to make the enemy faster every second of the game. I want to interpolate his speed from say 0-1000 over 2-3 minutes. Can I use game.time to put this into effect? Just not sure what to do at the moment.
Any help would be much appreciated.
Any help would be much appreciated.
Comments
If you don't provide more details in a question like this it's a bit tricky to give an exact answer sorry - but be super careful of using game.Time - it does not stop or act like self.Time.
Cheers, M@
Make a 'real' attribute, let's call it 'ABC'.
Interpolate ABC to 1,000, duration 180 (which is 3 minutes).
Move To player's X and player's Y, speed ABC.
@matarua thanks, this is the method I'm using.
@Socks Thanks for the help, but matarua's suggestion is working well