How do I fix the hanging on edges?

Get help using Construct 2

Post » Sun Jul 20, 2014 1:03 am

Message: Edelplastic can only post plain text URLS until they have 500 rep. 10 URLS modified. Why?
Hello.
I have a Question to the Rotate feature of C2.

I already have create a Circle with a collision Polygon, so that i can move the Player inside the Circle (The Player is a Circle too). But now at this point, my problem starts.

I have use the Platform Behavior for the Player and set the Acceleration and the Deceleration to 0, so the Player only can Jump.
Next at the Circle i have use the Rotation behavior, which is rotating left or right when i press the Left or Right Key on my Keyboard. That all works great, but when i insert some platforms , the player hanging on the edges and don´t falling down or slide down bevels when the Circle is rotating.. then i test it with the Physics Behavior AND then i get a Errormessage

Uncaught node.js Error

Assertion failed: 3 <= count && count <= 8, at: Box2D_v2.2.1/Box2D/Collision/Shapes/b2PolygonShape.cpp,122,void b2PolygonShape::Set(const b2Vec2 *, int32) at Error
at Error (native)
at x.___assert_func (http://localhost:50000/Physics_behavior.js:233:28)
at dc (http://localhost:50000/Physics_behavior.js:213:73440)
at nQ (http://localhost:50000/Physics_behavior.js:214:142833)
at Q.Set (http://localhost:50000/Physics_behavior.js:482:367)
at createPolygonShape (http://localhost:50000/Physics_behavior.js:568:11)
at behinstProto.createBody (http://localhost:50000/Physics_behavior.js:1469:24)
at behinstProto.postCreate (http://localhost:50000/Physics_behavior.js:1083:8)
at Runtime.createInstanceFromInit (http://localhost:50000/preview.js:2839:28)
at Layer.createInitialInstances (http://localhost:50000/layout.js:1316:25)

How i can fix the hanging on edges?

Here a Picture of the Problem:

http://s14.directupload.net/images/140720/jdxn2vye.jpg (Ball is not falling down.. it is hanging there)
B
8
S
2
Posts: 53
Reputation: 687

Post » Sun Jul 20, 2014 1:54 am

Why are you using physics and platformer? They are not compatible
B
83
S
22
G
15
Posts: 1,039
Reputation: 15,219

Post » Sun Jul 20, 2014 2:11 am

I only have tested with Physics, because the Ball hanging on Edges.
B
8
S
2
Posts: 53
Reputation: 687

Post » Sun Jul 20, 2014 2:22 am

Sorry, your english is kinda weird, but reading a second time I think I see what is that you're doing. The rotation behavior might be causing the collision polygons to move inside each other, screwing up the physics simulation... if you post the .capx we can take a look at it instead of just guessing
B
83
S
22
G
15
Posts: 1,039
Reputation: 15,219

Post » Sun Jul 20, 2014 4:35 pm

Message: Edelplastic can only post plain text URLS until they have 500 rep. 1 URLS modified. Why?
Sorry for my english, i´m from Germany :D

Here is the CAPX to view.

https://www.dropbox.com/s/3ja3w6aftwgfyx2/BPM.rar

If you start the CAPX, you see what i mean. The Ball is not in the middle of the Screen and it hanging on edges. To steer the Ball use the Left or Right Arrow on your Keyboard - Jump = Up-Arrow.
B
8
S
2
Posts: 53
Reputation: 687

Post » Sun Jul 20, 2014 5:02 pm

I've downloaded, but what the heck, 19MB?

I'm not sure what it is you are expecting to happen and what it is that is happening, so could youe xplain more clearly?
What do you mean by hanging and what are the edges you are talking about?

Also you are using a very big round thing with Way too many colisionpoints,but that is your choice..

I guess one of the issues is the 1000 collisionchecks per second when reaching the platforms..
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Sun Jul 20, 2014 5:11 pm

I just checked and your player has around 70 collision-points and the way to big circle-sprite has around 180..
It's just a bit too much..
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Sun Jul 20, 2014 5:21 pm

19MB = Maybe the Music at the Mainscreen. The Collision Points are needed for the round thing, if there are to less collision points, the ball move not on the inner edges of the round thing (you know).

Okay, how i can lower the collisionchecks? Or do you have a idea how i can make this concept (move inner the round thing) in other ways? Is here at the Forum a CAPX for some similar projects? I search for a Video to show you, what i want to make.
B
8
S
2
Posts: 53
Reputation: 687

Post » Sun Jul 20, 2014 5:27 pm

Message: Edelplastic can only post plain text URLS until they have 500 rep. 1 URLS modified. Why?
Okay... so -- do you know Super Mario Galaxy? Here Mario move above the Planet, but i want to make a game where "Mario" is movin in the Circle. I hope you understand now what i mean.

Here a example on a draw:

http://s1.directupload.net/images/140720/zjfur9jo.jpg
B
8
S
2
Posts: 53
Reputation: 687

Post » Sun Jul 20, 2014 6:00 pm

I understand..
You should create the circle out of smaller parts..
a 3840 by 3840 pixels sprite is never a good idea, one that needs 180 collisionpoints is even worse..

create a part copy it, turn it and copy that part and turn it, untill you have a circle..
This will take much less memory and won't demand near the processingpower you need now..
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Next

Return to How do I....?

Who is online

Users browsing this forum: ksiads, R0J0hound and 8 guests