A bug or what?

Discussion and feedback on Construct 2

Post » Sat Jan 31, 2015 5:14 pm

I have a ball (32x32 px) bouncing off walls. Sometimes the ball will shoot through the wall eventhough the walls and ball are solids. Is this a bug or do I have a setting not right?

Regards,

Justin
Image
B
42
S
9
G
6
Posts: 77
Reputation: 5,320

Post » Sat Jan 31, 2015 5:39 pm

How you implement it? With physics? Or you wrote own collision routine? The walls are solids?
B
11
S
2
Posts: 213
Reputation: 1,266

Post » Sat Jan 31, 2015 6:01 pm

Also depends on speed of ball and width of collision object, as it is possible that in one tick, if the ball is traveling too fast, it can pass through an object due to it moving too many pixels in that 1 tick.

Need more info.
If your vision so exceeds your ability, then look to something closer.
Moderator
B
137
S
31
G
87
Posts: 5,545
Reputation: 60,434

Post » Sat Jan 31, 2015 6:08 pm

zenox98 got it right! And if trying to play on a slower device then risk is higher....

You have to add condition that will trigger when the ball leave the layout and return it back into layout at the position where it left. Of course before the border.
B
58
S
18
G
13
Posts: 447
Reputation: 10,740

Post » Sat Jan 31, 2015 7:01 pm

I think it has to do with speed. The ball's bullet speed was 500 and I guess since the walls are also 32x32 the ball will shoot right through. I lowered the ball's bullet speed to 350 and it seems to be reacting alright. Thanks all :)
Image
B
42
S
9
G
6
Posts: 77
Reputation: 5,320


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 2 guests