Help with physics

Get help using Construct 2

Post » Thu Feb 20, 2014 2:06 am

Hi guys, pretty new on this forum and construct. But the program is amazing. All the tutorials a great help, but I'm stuck on details. I've got an alpha game running to try out all sorts of things while working on my bigger project. My problem is, when you play the game, you will notice that the dolphin will bump with head and tails on the reef sections, but he can turn right through it. How can I also make him bump on his side part? Here's a link to the game: http://www.friedfishcomics.com/game/slaughter_in_taiji/

Hope anyone has a good tip for me here ;-)

Chill...
B
20
S
5
G
1
Posts: 148
Reputation: 1,736

Post » Thu Feb 20, 2014 4:10 am

just taking a shot in the dark here....

Did you make a custom collision boundary (collision polygon) for the dolphin, & it has a pointy tip at the nose? I've had this problem before. The problem was that the player's boundary was just narrow enough to slip between the tiles (the islands, in your case), & apparently that counts enough to let it pass.

If this is the same type of situation, try making the nose tip of the dolphin's collision boundary/polygon a little wider....close to the width of the rest of the body. That should solve it.
B
16
S
5
G
4
Posts: 106
Reputation: 2,450

Post » Thu Feb 20, 2014 10:42 am

Thanks Miketv, making the collision boundary a bit wider helped a little. It's now basically only when you move the left or right arrow, so when you are turning. That's when the body goes through solids, if you bump into solids without steering, you will bounce back. So now, figuring out how to bounce the body while steering. Any thoughts on that why the collision boundary is not working here.

Any shots in the dark here....
B
20
S
5
G
1
Posts: 148
Reputation: 1,736

Post » Thu Feb 20, 2014 10:47 am

Are you turning using physics?

If you are not, that will be the issue..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Thu Feb 20, 2014 12:01 pm

Hola LittleStain, I'm using Custom Movements for the turning. I think also there lays the problem, but also should the sollution be found here I believe. But how?
B
20
S
5
G
1
Posts: 148
Reputation: 1,736

Post » Thu Feb 20, 2014 12:21 pm

to get the turning done you could use torque or apply impulse or force to an offcenter point. Using none physics behaviours will give unwanted results as yoy have noticed.
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Fri Feb 21, 2014 2:40 am

Hola guys, your help much appreciated. I solved the problem more or less by adding a subevent at the 2 control inputs. You can't move through the reef anymore. It's a bit shaky but will work for the gameplay. Now if I only get the highscore list working I will upload the revised version ;-)
B
20
S
5
G
1
Posts: 148
Reputation: 1,736


Return to How do I....?

Who is online

Users browsing this forum: 25games, jatin1726, kiki4construct, Yahoo [Bot] and 28 guests