How do I polish the collision detection?

Get help using Construct 2

Post » Tue Apr 21, 2015 8:46 am

My goal is to make a small sound play when the character lands on the ground in this 2D platformer. The method I have used is to have two types of platforms: Walls and Ground. The script is set up to play the sound when the character collides with the ground, but not with the wall. However, this has caused some issue with the game detecting when it collides with the ground. For instance, when jumping up and hitting the underside of the platform, the sound will play even though the Ground platform is encapsulated within a Wall platform. This means on paper, no sound should play since only the the top of the Ground platform is exposed, but issues are still cropping up. Can someone help solve the issue or better yet provide a more efficient way of making a sound play when the character lands?
All help appreciated.
B
5
Posts: 26
Reputation: 285

Post » Tue Apr 21, 2015 8:49 am

it would be a lot easier to help you if you could provide a capx, or at least an image of your event sheet.
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 » Tue Apr 21, 2015 8:57 am

LittleStain wrote:it would be a lot easier to help you if you could provide a capx, or at least an image of your event sheet.

Hey man.
I remember you from the last thread I made. Did the megaupload link not work?
In any case, I've re-uploaded the capx to Gdrive. Hopefully you can access it.
Last edited by Forumpy on Tue Apr 21, 2015 9:09 am, edited 1 time in total.
B
5
Posts: 26
Reputation: 285

Post » Tue Apr 21, 2015 9:06 am

Well this didn't work..
I got to a link where I had to ask your permission, but the email attached to that request won't work..
Is there a way to put it in a place where the acces is public?
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 » Tue Apr 21, 2015 9:09 am

LittleStain wrote:Well this didn't work..
I got to a link where I had to ask your permission, but the email attached to that request won't work..
Is there a way to put it in a place where the acces is public?

Sorry about that, my fault.
Try this one, says it should be view able by everyone.
drive[dot]google[dot]com /file/d/0ByYPmF3UV10sVHJqOGcxVjluSkk/view?usp=sharing
B
5
Posts: 26
Reputation: 285

Post » Tue Apr 21, 2015 9:33 am

adding the condition "player is on floor" to the "on collission with solidplatform"- event is a quick solution.
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 » Tue Apr 21, 2015 9:47 am

LittleStain wrote:adding the condition "player is on floor" to the "on collission with solidplatform"- event is a quick solution.

Excellent, thanks a lot man.
Another issue I've been trying to deal with is running into walls while on the ground. The game seems to take it as the character starting a collision with the ground again, and therefore playing the sound. What would be causing this problem and what do you think would be the best fix?
B
5
Posts: 26
Reputation: 285

Post » Tue Apr 21, 2015 10:08 am

Forget the last solution..

It would actually work a lot better to use the player "on landed" - event
It's in the platform behaviour animation-triggers, but will work perfectly for this sound-effect..
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 » Tue Apr 21, 2015 10:16 am

LittleStain wrote:Forget the last solution..

It would actually work a lot better to use the player "on landed" - event
It's in the platform behaviour animation-triggers, but will work perfectly for this sound-effect..

I've changed it for 'on landed' and also included 'is on floor' since the original issue from before was happening. However, the sound will still play when walking into walls while on the ground.
B
5
Posts: 26
Reputation: 285

Post » Tue Apr 21, 2015 10:25 am

- Sorry.. noticed the issue returning..
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: No registered users and 7 guests