My bullets don't spawn from the tip of the gunld

Just started using Construct 2? Post your questions here

Post » Tue Sep 09, 2014 8:58 pm

I was trying to learn Construct 2 by recreating the tutorial top-down shooter but I've hit a snag, for whatever reason my shots don't originate from the tip of the gun like they should, instead they're far off to one side (see attached image)

Anything I should be checking for to see if it's set correctly? I can't figure out why it's doing this.
You do not have the required permissions to view the files attached to this post.
B
6
Posts: 10
Reputation: 274

Post » Tue Sep 09, 2014 9:10 pm

Have you set the position of the image point correctly in the sprite editor? Double click on the sprite that is meant to fire the bullet to open the image editor > Click on the 'set origin and image points' icon > Check the image point you are using is at the tip of the gun.
ImageImageImageImageImage
B
19
S
5
G
1
Posts: 614
Reputation: 2,542

Post » Tue Sep 09, 2014 10:21 pm

oh yeah I did that ... firing left or right produces the same result as in the picture, firing up is close, but it's off to the right and originates from behind him, firing down doesn't seem to do anything.
B
6
Posts: 10
Reputation: 274

Post » Tue Sep 09, 2014 10:29 pm

Are you spawning the bullets on the correct layer?
B
55
S
29
G
19
Posts: 1,520
Reputation: 25,670

Post » Tue Sep 09, 2014 10:58 pm

yeah it's all exactly as described in the tutorial, so I can't figure out where I'm going wrong (I attached the project file so you guys could see what its doing)
You do not have the required permissions to view the files attached to this post.
B
6
Posts: 10
Reputation: 274

Post » Wed Sep 10, 2014 6:26 am

actually I think I fixed it! I went back and resized the area cause it wasn't set to 1200x1024 and that seemed to fix the bullets coming from off to the side! Hopefully tomorrow I can finish the last parts of the game maybe add some sounds/music. But thanks for the suggestions guys!
B
6
Posts: 10
Reputation: 274


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 1 guest