Hi all. I’m setting up a demo in the game engine, and I’d like my character to move through a list of set locations each time a key is pressed.
For example, [spacebar]>move to [0,1,2], [spacebar]>move to [10,4,2], [spacebar]>move to [10,8,2], [spacebar]>move back to [0,1,2].
Ideally, I’d be able to move backward through the list of positions with a different key, but that’s a secondary goal.
I thought maybe I could do this with animation keyframes, but while I can play an animation, I don’t know how to just set the location to that of a single keyframe.
My next thought was to place empties at each location I want, and then copy the location of the empty into own.worldPosition. I suppose I could do that with python, but my guess is that there’s an easier solution.
Doesn’t matter to me if the character transports to the new location, or moves through gradually. Is it possible to do this with logic bricks? Seems like it might be, but I’ll do it in python if needed. Either way, I could use some direction. Thanks.