Collision don't work sometimes[Still need help]

Get help using Construct 2

Post » Mon Feb 17, 2014 1:11 pm

I'm having trouble with some levels in my game, for some reason collision stop working sometimes, I have no ideia why that happens. On level 5 for example after you play once, hit retry and then hit play, the ball just falls through the see-saw without moving it. Can someone please have a look and see if I'm doing something wrong? I enable collision between the 2 objects everytime I hit the play button, so I see no reason for it not to work.
Thanks in advance.

PS: Objects at the bottom are draggable.

[EDIT]
drag ball above seesaw
play
ball hits seesaw
reset
play
ball fails to hit seesaw

but if you drag ball around after reset and then back to above seesaw it works (most of the time)
[/EDIT]

Full version project:

https://dl.dropboxusercontent.com/u/392 ... oHelp.capx

Reduced project demo with physics problem:

https://dl.dropboxusercontent.com/u/392 ... mDemo.capx
Last edited by caiorosisca on Thu Feb 20, 2014 8:09 pm, edited 5 times in total.
B
11
S
4
G
1
Posts: 272
Reputation: 1,643

Post » Tue Feb 18, 2014 3:04 pm

bump. I still didn't solve my problem.
Can someone help?
Please tag me with @caiorosisca if your post is refering to me :). I don't always follow the topics I answer.
B
11
S
4
G
1
Posts: 272
Reputation: 1,643

Post » Thu Feb 20, 2014 5:00 pm

Can't anyone help me with this?
B
11
S
4
G
1
Posts: 272
Reputation: 1,643

Post » Thu Feb 20, 2014 5:02 pm

A lot of people here are not about to download and install a plugin they never use, so if you could you create a new capx without the plugin, maybe you'd get more help.
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Thu Feb 20, 2014 5:09 pm

@LittleStain Thanks, that's probably the reason why I got so many views an no response then.
I updated the download link to a version without the plugin, hope to get some help now.

This is the link:
https://dl.dropboxusercontent.com/u/392 ... oHelp.capx
B
11
S
4
G
1
Posts: 272
Reputation: 1,643

Post » Thu Feb 20, 2014 7:31 pm

Here's a link to a reduced project, with only one level where the problem still persist.

https://dl.dropboxusercontent.com/u/392 ... mDemo.capx
B
11
S
4
G
1
Posts: 272
Reputation: 1,643

Post » Thu Feb 20, 2014 7:43 pm

Euhh, I gave it a try, adn the banana just tilts the board a small bit down and back up ...

The ball just falls a couple inch ...

edit: nvm, just noticed I need to drag the ball


I tried it, and it keeps going through it ... seems it happening when its moving.
I'll try for a bit.
B
57
S
17
G
21
Posts: 1,878
Reputation: 19,567

Post » Thu Feb 20, 2014 7:50 pm

Ok, for the ball and the seesaw, set their physics bullet both to YES


@caiorosisca
EDIT:
Seems that worked half, as soon as you drop it form higher it stopped ....

So I dove a little more into your capx .. and noticed quite a bit of excessive for each usage.

I changed most to picks and removed some ...

Here is an updated capx
B
57
S
17
G
21
Posts: 1,878
Reputation: 19,567

Post » Thu Feb 20, 2014 8:21 pm

Thanks @lennaert
I'm new to C2 and really don't know the easiest/best way to do stuff yet. Good to know that using pick all is better than using the for loop.
Unfortunately I still have problems with the physics.
B
11
S
4
G
1
Posts: 272
Reputation: 1,643

Post » Thu Feb 20, 2014 8:32 pm

After some testing, if you lift the balll too high, and overlapping the wall, it fails ...

I gave the ball the behaviour bound by layout now too, and it stopped that ...

So far xD

new capx
B
57
S
17
G
21
Posts: 1,878
Reputation: 19,567

Next

Return to How do I....?

Who is online

Users browsing this forum: blue visionary, OBLIVION and 14 guests