How do I shoot a bullet up

Get help using Construct 2

Post » Sat Oct 04, 2014 1:00 pm

Hi guys,

So i am working on a game again in Construct 2 and let's just start by saying i am a beginner.

Right now i have an issue where i can properly shoot my bullet up with a bullet behaviour.
Right now i charge a bullet by holding my mouse key making it bigger. As soon as i release
the mouse key it should shoot up. This works but the problem is the following:

In the first attachment you can see that the bullet is growing correctly out of a certain point.
However as soon as i release the button it will spawn on another place with another angle.
Now i do sort of know the problem because i think it has to do with the bullet angle of motion however
i have no idea how to fix it or another way to let the bullet go up.

I hope someone can help me with it?

Thanks in advance
You do not have the required permissions to view the files attached to this post.
B
4
Posts: 11
Reputation: 222

Post » Sat Oct 04, 2014 1:52 pm

Set the angle after the speed.
ImageImageImage
B
71
S
21
G
220
Posts: 3,648
Reputation: 123,725

Post » Sat Oct 04, 2014 2:09 pm

I tried that but is has the same outcome
B
4
Posts: 11
Reputation: 222

Post » Sat Oct 04, 2014 2:32 pm

Post a CAPX.
ImageImageImage
B
71
S
21
G
220
Posts: 3,648
Reputation: 123,725

Post » Sat Oct 04, 2014 3:21 pm

Here is the capx
You do not have the required permissions to view the files attached to this post.
B
4
Posts: 11
Reputation: 222

Post » Sat Oct 04, 2014 3:30 pm

Set the bullet's "Set angle" property to No.
ImageImageImage
B
71
S
21
G
220
Posts: 3,648
Reputation: 123,725

Post » Sat Oct 04, 2014 3:39 pm

Wow, how did i not see that.... Well, thanks a bunch mate!
B
4
Posts: 11
Reputation: 222


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 9 guests