Possible bug with BULLET behavior?

Bugs will be moved here once resolved.

Post » Wed Oct 24, 2012 4:20 pm

Hi, noticed something weird with the bullet behavior when I set it to BOUNCE OF SOLID. In the CAPX if I have this set OFF the bullets head for the mouse coords as I want them to, no problem. Set the bounce option to on and suddenly they're firing out in the opposite direction to the mouse position. I've tried adding +180 to the angle to counter this but it didn't work.

Any ideas?

ARENA CAPX

The option to bounce is set ON in the CAPX. Just turn it off to see how it works OK without it.

AMD 645 BLACK EDITION

4 Gig RAM

Nvidia 560 Ti

Windows 7 64

Google Chrome Version 23.0.1271.40 beta-m (tried with none beta too)vandinz2012-10-24 16:24:16
B
19
S
5
G
4
Posts: 208
Reputation: 3,960

Post » Wed Oct 24, 2012 4:47 pm

You're creating the Bullet's inside a Solid object.

Try setting an image point for your Sprite just in front of it and spawn the Bullets there.

edited capx (r108.2)OddConfection2012-10-24 16:53:01
Vote for all the Construct 2 games on Steam Greenlight - Find them here
B
27
S
7
G
4
Posts: 314
Reputation: 4,928

Post » Wed Oct 24, 2012 4:53 pm

Closing as not a bug. You should not make the player solid. If you spawn an object inside something solid, this is an impossible situation in the real world, so you should not expect anything realistic to happen either! Try spawning the objects just outside the object, or remove the solid behavior from the player.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,600

Post » Wed Oct 24, 2012 4:54 pm

LOL! What an idiot I am. Man I feel stupid. Obv the bullets are bouncing off the player sprite. Cheers man, you're a life saver. I'll get me coat ...
B
19
S
5
G
4
Posts: 208
Reputation: 3,960

Post » Wed Oct 24, 2012 5:14 pm

[quote]this is an impossible situation in the real world, so you should not expect anything realistic to happen either![/quote]

Hay! This is Constuct 2 we're talking about here, of course it can do impossible things, don't you ever doubt it again! There, there C2, don't you listen to the nasty man vandinz2012-10-24 17:15:53
B
19
S
5
G
4
Posts: 208
Reputation: 3,960


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 4 guests