0 Favourites

# How do I make a physics object move forward constantly

• 7 posts
• I'm trying to replicate that sled game, the one where your santa guy or what have you is always moving and you have to create a line below him to keep him going. I'm having a problem figuring out how to get him to keep moving forward, while going faster on a down slope, and slower on an up slope (unless physics does that already, but how would I tweak that?)

• I'm not really familiar with Construct 2 physics just yet but have you tried tweaking the 'Friction'. Decrease friction on down slope and increase on up slope, or vice versa.

• Maybe you can use the Apply force at angle action to always be pushing him along and get it to read the objects orientation ( is within angle or is between angle ) to either increase or decrease that force?

• I tried apply force ar angle and It failed, but only because I didn't know what angle to set it at. I think the friction thing will work though. I just don't know how to let it know it's going down a slope or up a slope.

• Well if it's any help, in Construct 0-degrees means something is pointing to the right, and then the degrees go upwards in a clockwise direction. So if you're traveling to the right, a number between 0 and 90 is going down, and a number from -270 to 0 is going up a slope.

In the Line Rider game you could also slide backwards, though, and it wouldn't change which way you were facing. In that case, traveling left while having an angle of -270 to 0 would still be on a downward slope!

So in that case, in your events you first need to determine if you are facing left or right, then you need to determine if you're MOVING left or right, and THEN you have to find the angle of the slope to figure out if he is going up or down a slope.

I'm new to construct myself, so this is the only thing that popped into my head, haha.

• Apply not force, but impulse to object.