Physics

Get help using Construct 2

Post » Sun Feb 09, 2014 11:35 pm

How can i make physics objects not get all wonky when colliding whit the player character? i can post(?) an pic if needed
B
3
Posts: 11
Reputation: 197

Post » Mon Feb 10, 2014 1:55 am

I'll hazard a guess that you have not regulated the collision object(s) for your player. There are two easy ways of doing this in C2.
1) Create a transparent rectangular sprite the ssame size as your player assign the pin behaviour then pin the player animation to this invisible rectangle. From then o you want your collisions tocoinide with hittingthis collision detector NOT the player which will probably not be a uniform shape.
2) In the C2 image editor set the collision boundaries to a rectangle and apply throughout all animations.


Full story and pics here.

https://www.scirra.com/tutorials/253/how-to-make-a-platform-game/page-4
There are 10 types of people in the World, those that understand binary and those who don't.
B
7
S
2
Posts: 93
Reputation: 797

Post » Tue Feb 11, 2014 11:44 pm

No. i have got the collisions kinda working BUT. When ever i for example jump on a "box" it passes halfway trough the player and just flings itself to h*ll
B
3
Posts: 11
Reputation: 197

Post » Wed Feb 12, 2014 12:15 am

Btw i was trying to make a pointer out of a sprite that would follow the mouse but the positions wouldnt match
B
3
Posts: 11
Reputation: 197

Post » Wed Feb 12, 2014 12:47 am

Are you combining Platform behaviours and Physics behaviours in your game, they don't work well together.
There are 10 types of people in the World, those that understand binary and those who don't.
B
7
S
2
Posts: 93
Reputation: 797

Post » Wed Feb 12, 2014 4:07 pm

Yes. and indeed they dont... :(
B
3
Posts: 11
Reputation: 197

Post » Wed Feb 12, 2014 9:57 pm

So should i use some alternative movement option?
B
3
Posts: 11
Reputation: 197


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 19 guests