Why does my character fall through solid objects?

Get help using Construct 2

Post » Sat Jul 20, 2013 11:35 pm

Hello all, I have a problem and a question. Why does my main character fall through solid objects (and act all screwy) when I add animation to its default animation? When I remove the animation from the character's default animation, it works fine, I don't get it! Can someone please help me out?

P.S. "shoot" is the name of the character's default animation. Also, the ground that the character walks on and the character itself both have a solid behavior, so again, I really don't understand why the character starts to fall through the ground when I add animation to it:(




Thanks,
guannstar
B
27
S
5
G
1
Posts: 590
Reputation: 3,253

Post » Sun Jul 21, 2013 12:30 am

Your animation frames probably have different collision polygons and/or origin points which can cause problems with the platform behavior.

[quote=https://www.scirra.com/manual/100/platform]
Implementing reliable platform movements

For the most reliable platform movement, it is recommended to use a invisible rectangle sprite with no animations with the Platform movement. Then, the animated player object can be positioned on top of that. Otherwise, the changing size and collision polygon of the object as its animation plays can interfere with the Platform movement's floor, wall and slope detection, causing a shaking or glitchy movement. For more information and a complete guide, see the tutorial How to make a Platform game.[/quote]
B
55
S
29
G
19
Posts: 1,520
Reputation: 25,610

Post » Sun Jul 21, 2013 12:42 am

Yea, I checked that. My origin points are the same. I'm still puzzled:(
B
27
S
5
G
1
Posts: 590
Reputation: 3,253

Post » Sun Jul 21, 2013 4:32 pm

What about collision polygons? Are the frames the same size?
B
55
S
29
G
19
Posts: 1,520
Reputation: 25,610

Post » Sun Jul 21, 2013 10:56 pm

Yea, they're the same size. I think I need to pin the character to that invisible rectangle you were talking about.guannstar2013-07-21 22:57:26
B
27
S
5
G
1
Posts: 590
Reputation: 3,253

Post » Mon Jul 22, 2013 4:01 am

maybe the collisions or solids are turned off on your tiles/character.

are turned off in your code, or maybe they have been set to OFF by default?
B
35
S
5
Posts: 411
Reputation: 3,406

Post » Mon Jul 22, 2013 8:28 am

The character don't need a solid behavior. Maybe this is causing him to "collide with himself" and be considered inside a solid all times
B
83
S
22
G
15
Posts: 1,039
Reputation: 15,219

Post » Mon Jul 22, 2013 3:33 pm

Hey 7Soul, I turned the solid behavior of my character off to see if it was causing him to "collide with himself" (as you said), and it still does the same thing, I don't get it.

Can somebody please show me what to do with a little capx example?


Thanks,
guannstar
B
27
S
5
G
1
Posts: 590
Reputation: 3,253

Post » Mon Jul 22, 2013 4:19 pm

@guannstar

It makes much better sense for you to post your .capx, then everyone will be able to help you much easier and quicker.
If your vision so exceeds your ability, then look to something closer.
Moderator
B
129
S
29
G
78
Posts: 5,202
Reputation: 54,811


Return to How do I....?

Who is online

Users browsing this forum: AkbarAsgharMG, lwgames, Yahoo [Bot] and 3 guests