Help with player collision

Get help using Construct 2

Post » Wed May 27, 2015 2:48 pm

I'm having some trouble regarding collisions in a prototype I'm working on. I've managed to get the controls feel exactly as I want them, but when it comes to interacting with solids it just goes crazy, particularly thick ones. Here's a link to the prototype so you can see what I mean: http://www.newgrounds.com/projects/games/868367/preview

I just can't seem to wrap my head around how to stop this from happening! Sorry about the vagueness it's just I'm not sure sure how to explain the issue.

Here's a link to the .capx: https://www.dropbox.com/s/uxfi81x659915 ... .capx?dl=0

Thanks for any help, totally stumped on this one!
Need help finding the right look for your game? I can help! hayes2D.com
B
28
S
5
Posts: 173
Reputation: 2,126

Post » Wed May 27, 2015 3:00 pm

do you mean when the player bumps into the brown wall?
B
88
S
29
G
14
Posts: 1,158
Reputation: 15,011

Post » Wed May 27, 2015 3:04 pm

@jobel Yeah. The biggest problems are when you can glitch through the thicker ones and the rapid increase in speed when you slide across it. Though, tbh, none of its working well
Need help finding the right look for your game? I can help! hayes2D.com
B
28
S
5
Posts: 173
Reputation: 2,126

Post » Wed May 27, 2015 3:12 pm

the only glitching I see is when you are touching more than 1 solid at a time.. otherwise it seems solid.. (no pun intended)
B
88
S
29
G
14
Posts: 1,158
Reputation: 15,011

Post » Wed May 27, 2015 3:23 pm

@jobel Dare say I'm flattered! Did you not notice that if you hit a horizontal ledge just right you can either stick to it or be shot up? Maybe I'm noticing it more because I've tested it so much but its still happening.

Were you on mobile or desktop btw? Noticed it more on desktop myself.
Need help finding the right look for your game? I can help! hayes2D.com
B
28
S
5
Posts: 173
Reputation: 2,126

Post » Wed May 27, 2015 3:47 pm

desktop.. yes you shoot up the side, I just thought that was because I had my mouse up..didn't really notice it. but now that you mention it...

I noticed you have the camera lerping inside fly=1 or fly=0.. I think that should be outside of that logic and should always be happening - meaning the camera should always follow the player no matter what logic happens..
B
88
S
29
G
14
Posts: 1,158
Reputation: 15,011

Post » Wed May 27, 2015 3:51 pm

@jobel Ah that good, I'm not just going crazy then haha.

The camera is because I want to experiment with a more active camera that shows more in front of your flying up and more bellow if your flying down. Just not got around to playing with it yet.
Need help finding the right look for your game? I can help! hayes2D.com
B
28
S
5
Posts: 173
Reputation: 2,126

Post » Wed May 27, 2015 4:06 pm

I've been messing around with it... I think it's because of your Waypoint.X The code is still trying to get to the X over and over and is trying to get through the solid..

I noticed it depends on how far over you click which determines the speed of which it shoots up the right side, or shoots down the left side
B
88
S
29
G
14
Posts: 1,158
Reputation: 15,011

Post » Wed May 27, 2015 4:08 pm

I would suggest using custom-movement instead of lerp, but if you want it your way, I guess this is the best solution..

https://dl.dropboxusercontent.com/u/485 ... owEsc.capx

By the way, you might want to put your sprites (especially the walls) on pixel coordinates instead of inbetween pixels..
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 » Wed May 27, 2015 4:10 pm

LittleStain wrote:By the way, you might want to put your sprites (especially the walls) on pixel coordinates instead of inbetween pixels..

is that why there's sometimes overlap? I was wondering that..
B
88
S
29
G
14
Posts: 1,158
Reputation: 15,011

Next

Return to How do I....?

Who is online

Users browsing this forum: jasontoups, OddConfection, Yahoo [Bot] and 2 guests