Slopes
quinn221
Member Posts: 280
I have been having trouble getting slopes to work on my platform game. Here is what I tried..but no luck
I have a actor with the tag of slopes (I also have a custom collision applied to the angle of the slope ( this is the slope platforms)
I have constrained an actor with the circle collision to the feet of my Hero actor.
On my Actor that is constrained to my feet of my Hero.. I have a Collide behavior set to bounce when overlaps with my tagged slopes.
Any suggestions?
Comments
What does 'no luck' mean in this context ?
I did not get the desired result. The Hero moves down the slope without moving the character with my move commands. And will not move up the slope once at the bottom.
Set the friction of the slope actor to 600 or any high value , the higher you go the sliding becomes less , so the hero will not move
You have a hero actor, a slope and a circle actor (constrained to the feet of the hero actor), but what is the 'character' ?
The Hero actor is the character
I guess what I am asking is what is a best way to handle slopes.
I was once trying to work out a GS issue with a user, and during one post they referred to the same actor as 'actor', 'hero', 'player', 'main actor' and 'you' . . . . . . interchangeable names is one thing that can really make a post hard to follow (for me at least) !
I suppose it depends on what kind of effect you are after, I'll often use a spinning wheel, hold on, demo coming . . . .
Quick example attached, left right arrows to move left and right, space bar to jump . . .
Actually this one should be more physically correct . . . (uses angular velocity instead of accelerate)
THANKS!!