Fall through solid ground

For questions about using Classic.

Post » Thu Jan 12, 2012 11:26 am

Hi.
I dont know if theres another topic wich discribes the same problem.
Anyway...
I made a solid ground and set the players properties (Platform Behavior).
The Player has Idle,Walk,Jump and Fall Settings.
At the first Gametest all does worked nice, but after I changed Jump and Fall Grafic, it doesent worked really good.
So i set it again, like it was before.
Now the Player falls, by starting the game, throught the solid ground.
I really dont know why.
http://www.2shared.com/file/PH0-NSNj/Projekt.html
Thats the .capWhiteEarb2012-01-12 11:37:44
B
1
Posts: 3
Reputation: 231

Post » Thu Jan 12, 2012 11:28 am

Without seeing the .cap. it's just guesswork, but I'd suggest checking the collision mask. Looks like it's missing.
If your vision so exceeds your ability, then look to something closer.
Moderator
B
120
S
28
G
68
Posts: 4,850
Reputation: 48,301

Post » Fri Jan 13, 2012 10:21 am

Does anyone know, how the problem can be fixed?
B
1
Posts: 3
Reputation: 231

Post » Fri Jan 13, 2012 10:49 am

Edit the sprite and delete the collision mask, then click on collision mask again and close and save. Right mouse on the edited sprite and 'copy collision mask to each frame'.

Do this for all anims.

This will fix the falling problem but I wouldn't recommend this way of doing things. Using the animation 'tags' has always caused problems for me. It is usually better to use a dummy sprite with the platform behavior and set the position of the main sprite to this using System: always set position to object.

Try to hunt down the platform school examples - they have lots of useful tips.

In case you're interested, the first 5 lessons from Platform School are HERE, and part 6 can be found HERE.zenox982012-01-16 15:35:07
If your vision so exceeds your ability, then look to something closer.
Moderator
B
120
S
28
G
68
Posts: 4,850
Reputation: 48,301

Post » Sat Jan 14, 2012 12:46 pm

Thank you for your help, but i dont understand
it complete how you explain...
"Edit the sprite and delete the collision mask"
Do you mean the collision mask sprite, or one the player sprite?
"then click on collision mask again and close and save"
There you mean the c-m sprite, do you? But you have to edit it to close and save.
And after that i have to copy the cm to each frame.
Thats what ive done, but it doesent work.

"a dummy sprite with the platform behavior and set the position of the main sprite to this using System: always set position to object."
I dont understand it. How do i do this?
Sorry if that are silly questions, but im a beginner.
Maybe the Tutorials explains it too.
Anyway, i look to them.
WhiteEarb2012-01-14 12:47:16
B
1
Posts: 3
Reputation: 231

Post » Mon Jan 16, 2012 4:14 pm

A VERY quick and simple way to get you going is just to click on the main sprite in the layout (Spieler), then in the Properties bar on the left, change the 'Collision' property to bounding box.
If your vision so exceeds your ability, then look to something closer.
Moderator
B
120
S
28
G
68
Posts: 4,850
Reputation: 48,301


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 4 guests