Character getting stuck on slopes

Get help using Construct 2

Post » Fri Jun 08, 2012 6:27 pm

I'm trying to make a simple platform game. However, my character gets stuck on some slopes.

Angles up to about 50 degrees seem to be working fine, however, at higher angles my character will get stuck.

Now I'm trying to make the character slide down steep hills, so he won't be able to jump and twitch his way up.

I've uploaded the .capx here. The first slope is working fine and should stay as it is, the second one is too steep to climb, so I want it to make the character slide down, the problem is that it results in a twitchy slide and some more twitching when you walk into it from the side.

Can anyone give me advice on getting this to work properly?Xype2012-06-08 18:29:48
B
2
Posts: 2
Reputation: 254

Post » Fri Jun 08, 2012 10:08 pm

There was some discussion about this here.
Basically, you can use detector sprites to check if on a hill or not, and then add events according to that.
B
90
S
30
G
24
Posts: 3,189
Reputation: 32,400

Post » Fri Jun 08, 2012 10:16 pm

I have some sort of hill detector in my .capx file.

I realize this might be a stupid question, but what action should I use to make him slide down? At the moment I'm trying to make him slide by changing the Vector X, is there a better way to do this?
Or should I just avoid steep slopes in general?
B
2
Posts: 2
Reputation: 254

Post » Fri Jun 08, 2012 11:03 pm

I made mine slide down by making the vector X push him away from the slope a bit. It worked OK, it wasn't the smoothest but still manageable.
B
90
S
30
G
24
Posts: 3,189
Reputation: 32,400

Post » Sat Jun 09, 2012 5:07 pm

Bump - Still needs a answer. personally i think we should avoid steep slopes.
B
4
Posts: 11
Reputation: 372


Return to How do I....?

Who is online

Users browsing this forum: Braus, shinkan and 26 guests