Hi everyone,
I tried searching for this, and was surprised that I couldn't really find anything. I just want a way of implementing a moving platform for a top-down game, to fit with the 8-direction behaviour.
I have attached my first attempt in a test capx here:
TopDownTest (Dropbox)
So this test works, sort of. It's all OK, except for one issue: when you are on a platform that is moving along the Y axis, moving the player left or right doesn't quite work (with the same issue on a platform moving in X).
I was thinking that I need to set the Y vector to something like max(player.vectorY,platform.dy) but that would only work when the platform was moving down, plus I'd have to do the same in the x axis and then I'd struggle when the platform was moving diagonally. It is annoying that setting the player 8direction xvector to the platform custom movement dx doesn't make the player move at the same rate as the platform!
Basically I'm not clever enough, so any ideas would be appreciated