How do I used gravity to make the Player slide off an edge?

Get help using Construct 2

Post » Fri May 09, 2014 9:45 pm

So on my platformer, my player is standing off the edge of a ledge. If he is more than 50% off the edge I want him to start sliding such that he will eventually fall off ... right now if even his "tippy toe" is there he stays level.

Any thoughts?
B
5
S
1
Posts: 15
Reputation: 405

Post » Fri May 09, 2014 10:07 pm

You could either make the collision polygon on the player smaller than the player so his feet dont fit in the box or I believe if you make the colision polygon an up sidedown trapazoid the bottom edges will be at an angle and he should slide off.. would be careful though as im not sure how these will affect the rest of your the game play...
B
20
S
7
G
1
Posts: 221
Reputation: 2,077

Post » Sat May 10, 2014 10:54 am

You can make invisible sprite
And when player overlapping sprite
(Sub event ) Every tic ------------- set player platform x to to 100
Image
B
60
S
10
G
10
Posts: 1,013
Reputation: 9,155

Post » Sat May 10, 2014 11:09 pm

I don't know if this will help , but might be close .
You do not have the required permissions to view the files attached to this post.
What I know would fill a Book , what I don't know would fill a Library
B
37
S
12
G
29
Posts: 331
Reputation: 16,499


Return to How do I....?

Who is online

Users browsing this forum: korbaach, marc254, Yahoo [Bot] and 5 guests