Bug : Unknown crash

For questions about using Classic.

Post » Sun Jun 29, 2008 9:53 pm

http://upload.namelezz.net/downloader.p ... digger.cap

Steps :

1. Dig the ground by using left mouse click.
2. Repeat and move around the place you just digged.
3. Enjoy the crash.


To fix :

Disable "Animations" group in event sheet.



But why do animations make this cap crash? Can I have an explanation and a fix?
B
2
S
2
G
5
Posts: 512
Reputation: 2,674

Post » Sun Jun 29, 2008 9:56 pm

Explanation: When you have animation and you are on a slope there is a high probability that you change to frame that will overlap with solid object thus making a crash

Fix: You said it yourself
B
4
S
2
G
4
Posts: 719
Reputation: 2,938

Post » Sun Jun 29, 2008 10:13 pm

Thanks, I'll use a collider.
B
2
S
2
G
5
Posts: 512
Reputation: 2,674

Post » Sun Jun 29, 2008 10:19 pm

[quote="SuperV":3t4wogp2]Thanks, I'll use a collider.[/quote:3t4wogp2]

That didn't work, because when the player collides with the collider, it still overlaps and the game crashes!

But wait a minute... Why Overlap = Crash?

Why can't 2 sprites overlap?

Help me please.
B
2
S
2
G
5
Posts: 512
Reputation: 2,674

Post » Mon Jun 30, 2008 3:18 pm

It's the platform movement, one fix is to have a custom movement engine or another is to make the colliders have the platform movement and remove the solidity/movement of the sprite (just set the sprites position to the center of the collider)
"Construct 4 lets YOU make advanced games! (maybe)" Construct Classic - Examples Kit
B
86
S
28
G
13
Posts: 2,092
Reputation: 15,009

Post » Mon Jun 30, 2008 4:12 pm

Jay,

i dont "get it" by this. I have seen this bug mentioned like close to 1000 times.
But i still dont "get it".
My next target is to learn Platform. Could you explain this bug a little deeper ?
Not the avoiding, but how it happens.
B
3
S
2
G
4
Posts: 322
Reputation: 2,119

Post » Mon Jun 30, 2008 4:35 pm

Hmm, well I don't know for sure, but I think that what happens is that the platform movement tries to move the object, but because it is inside a solid it can not move it, nor put it into the same place it is already in, so the program freezes in a loop of trying to move/place the object (The movement constantly tries to move or stop the object but both actions still report that the object is touching another solid object). Does that make sense?
"Construct 4 lets YOU make advanced games! (maybe)" Construct Classic - Examples Kit
B
86
S
28
G
13
Posts: 2,092
Reputation: 15,009

Post » Mon Jun 30, 2008 5:21 pm

Oh yes that made sense, now i "get it", ty so much
B
3
S
2
G
4
Posts: 322
Reputation: 2,119

Post » Mon Jun 30, 2008 6:21 pm

Ok things got a little more f#$ck up, even simple collision detection is broken, if you do a jump the ball will just jump to the left and if you go right/left it will crash... its not even about animations.

http://www.mediafire.com/?5jgtx3ltzrn
B
4
S
2
G
4
Posts: 719
Reputation: 2,938


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 4 guests