How do i solve when sprite animation can fall thru a solid

Get help using Construct 2

Post » Fri Jun 17, 2016 5:09 pm

Message: Evsun can only post plain text URLS until they have 500 rep. 1 URLS modified. Why?
Hello sir, it might seems a little bit weird for you but i have some problem here. Actually i didn't know why this happen.

But i have a sprite(player) that move left on a platform (board). When i didn't apply any animation to player, if the player move, it just fine and nothing strange happen. But when i apply an animation to player, if the player move it gonna fall from the board where player stand to the board below (board is solid object).

How to solve this sir? how i can setting the animation to not falling thru the solid object? Please help me sir.

In case you need my capx, here is it : http://bit.ly/1rttR5s
B
6
S
1
G
1
Posts: 19
Reputation: 888

Post » Fri Jun 17, 2016 6:03 pm

Neat game. One thing you need to add is keyboard controls too if you plan on ever putting it on a web browser or Construct2 arcade. Just add keyboard object, right click your touch conditions and add the appropriate arrow key then right click the tiny space to the left of one of the conditions and choose "make -OR- block"

I finally got it to do what your were referring to, it doesn't do it all the time.

Most likely this is being caused by one of the animation frames not having a collison bound setup.
My recommendation is to make a player control sprite that is set to invisible, all your movement options, collisons, and damage options etc should use this invisible sprite. Then pin your actual player graphic sprite that has animations to this invisible sprite. Now you don't have to worry about animation frame collisions since all this is being handled behind the "graphics". It also makes tweaking collision bounds soo much easier since you only have to do it once!
Check out my completed games on the Arcade! Capt. Doe Save the Universe! & Clicker Wizard!
B
65
S
17
G
8
Posts: 636
Reputation: 9,333

Post » Sat Jun 18, 2016 9:03 am

Hemmh, well sir i never think that idea. But it's great. I'll try to implement it.
B
6
S
1
G
1
Posts: 19
Reputation: 888

Post » Sat Jun 18, 2016 9:08 am

Using an invisible object for platform collision is a common practice, and often recommended since it will never change in shape or collision bounding box - it just makes life a little easier and consistent.

~Sol
Tired of crappy file hosts that are crappy? Get DROPBOX - https://db.tt/uwjysXJF
Moderator
B
80
S
34
G
40
Posts: 3,029
Reputation: 30,393

Post » Sun Jun 19, 2016 1:29 am

Yes sir, it's fully work now. Thanks...
B
6
S
1
G
1
Posts: 19
Reputation: 888


Return to How do I....?

Who is online

Users browsing this forum: Yahoo [Bot] and 10 guests