mine car as moving platform - slopes?
I have a mine car that works like the moving platforms of DaveC's Kid Icarus Example.
In my little game the mine car only moves, if the player character is on top of it.
For the car movement I just use the basic code:
X position to X object position +1
or for a slope:
X position to X object position +1 and
Y position to Y object position -1
But if I don't want to change the speed I have only one angle I can use for slopes.
How can I determine movement angles for different slopes without using X position X +1 and Y position Y -1?