Bullet not shooting from image point

Get help using Construct 2

Post » Sun May 26, 2013 2:50 am

Hi all, this is my first post so I apologize if this is addressed elsewhere. I am running into an issue where the bullet is shooting from either above or below the player but not the image point.

My event is Gamepad-Button B Pressed-Player-Spawn-"bullet image"-at game layer and image point 1. Image point 1 is definitely set correctly and the player sprite is not oversized.

Any advice would be greatly appreciated!
B
3
Posts: 6
Reputation: 187

Post » Sun May 26, 2013 3:52 am

If you have an animation playing, make sure you have that image point on each frame, not just the first one.
B
40
S
12
G
7
Posts: 603
Reputation: 7,646

Post » Sun May 26, 2013 4:12 am

No animations just one frame. Default 0 that I mirror to go left and right.
B
3
Posts: 6
Reputation: 187

Post » Sun May 26, 2013 5:48 am

This is how I do mine.



You can get the capx here:

http://ephrisian-trial.kissr.com/bulletDirection_example.capxephrisian2013-05-26 05:49:25
B
4
Posts: 24
Reputation: 325

Post » Sun May 26, 2013 9:12 pm

Yeah it doesn't work. I notice that if the player is facing left the projectile is about a player length above the player sprite. When mirrored its a players length below.
B
3
Posts: 6
Reputation: 187

Post » Sun May 26, 2013 9:25 pm

Is your projectile origin set approprietly?
https://www.scirra.com/forum/viewtopic.php?t=152506

And that is why you shall respect the bug reports guidelines, not only giving a capx is making the bug reproductible in one click in a situation they can work with (less time wasted trying to reproduce vague instructions) but also it helps filtering false positives.

Game design is all about decomposing the core of your game so it becomes simple instructions.
B
42
S
17
G
16
Posts: 2,090
Reputation: 15,347

Post » Sun May 26, 2013 10:46 pm

Ok sorry for being so bad at this lol. By origin do you mean for the projectile spawn event? I placed it at image point 1 on my sprite like in the tutorial.

Also I really appreciate the help its cool that so many have responded.
B
3
Posts: 6
Reputation: 187

Post » Sun May 26, 2013 11:02 pm

@leroyjackson : the Image point 0 of the projectile (not of your character), it should be centeredAphrodite2013-05-26 23:03:16
https://www.scirra.com/forum/viewtopic.php?t=152506

And that is why you shall respect the bug reports guidelines, not only giving a capx is making the bug reproductible in one click in a situation they can work with (less time wasted trying to reproduce vague instructions) but also it helps filtering false positives.

Game design is all about decomposing the core of your game so it becomes simple instructions.
B
42
S
17
G
16
Posts: 2,090
Reputation: 15,347

Post » Sun May 26, 2013 11:42 pm

Changed it to zero. Same thing happened. I thought I had two "player" sprites with one being invisible but that wasn't it either.
B
3
Posts: 6
Reputation: 187

Post » Sun May 26, 2013 11:54 pm

I meant more that for your projectile:

(image here)


the Origin (point number 0) be at the center of your projectile, Sometimes, it doesn't go right in the middle, an non-centered object can explain the problem you encountered
https://www.scirra.com/forum/viewtopic.php?t=152506

And that is why you shall respect the bug reports guidelines, not only giving a capx is making the bug reproductible in one click in a situation they can work with (less time wasted trying to reproduce vague instructions) but also it helps filtering false positives.

Game design is all about decomposing the core of your game so it becomes simple instructions.
B
42
S
17
G
16
Posts: 2,090
Reputation: 15,347

Next

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 29 guests