Spawning Bullets From wrong location

Discussion and feedback on Construct 2

Post » Tue Apr 21, 2015 12:56 am

I have a tank image and have set a image point for the main gun. When the space is pressed I have it set to spawn a bullet on image point 1, the tank barrel. for some reason this only works half the time. Sometimes the bullet will spawn from image point 0, or the origin. Any ideas why this is happening?
B
8
S
2
Posts: 47
Reputation: 610

Post » Tue Apr 21, 2015 1:09 am

Can you upload your capx?
B
60
S
10
G
10
Posts: 1,013
Reputation: 9,155

Post » Tue Apr 21, 2015 1:40 am

Is the image animated? The image-point locations can change between frames or sub-animation, if you're not careful.
FREEDOM: Diegesis - Out Now for Windows! http://freedom.quicksandgames.com
B
22
S
5
G
1
Posts: 83
Reputation: 1,818

Post » Tue Apr 21, 2015 2:06 am

Make sure there is an ImagePoint(1) on all frames - it sounds like some of them don't have one because the c2 fall-back option is to spawn at the origin....
A big fan of JavaScript.
B
74
S
20
G
71
Posts: 2,230
Reputation: 44,892

Post » Tue Apr 21, 2015 7:15 pm

I have a similar problem, expect the bullets would spawn a set distance away from the used image point. For my case, there's no work around expect making a ton of image points to counter-act the effect.

Put up a .capx
The moderators are corrupt and ban for no reason, especially that condescending neckbeard asshole Kyatric. The forums are filled with fanboys.
Banned User
B
22
S
7
G
1
Posts: 558
Reputation: 2,925

Post » Tue Apr 21, 2015 8:08 pm

That was it. It was animated, so I added the image points to all the frames and its good

thanks!
B
8
S
2
Posts: 47
Reputation: 610

Post » Sun Nov 29, 2015 3:19 am

You have a few Object points to check, INCLUDING BULLET OBJECT POINT. I just went made finding this out
B
5
S
1
Posts: 29
Reputation: 457


Return to Construct 2 General

Who is online

Users browsing this forum: DjPoke, SB Interactive and 16 guests