How do I shoot bullet only once?

Get help using Construct 2

Post » Mon Oct 06, 2014 9:05 am

How do i shoot only once?
Example:
Touch to shoot a bullet and can't shoot more.
if this bullet overlaps another object => can shoot another bullet.
Please help me, sorry for my English :|
B
7
S
1
Posts: 36
Reputation: 501

Post » Mon Oct 06, 2014 9:13 am

Many different ways

on touch start
bullet is not overlapping object- shoot bullet

on touch end
bullet is not overlapping object- shoot bullet

is touching
bullet is not overlapping object
system trigger once - shoot bullet
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Mon Oct 06, 2014 12:37 pm

Oh, thank you. I do it. Amazing
B
7
S
1
Posts: 36
Reputation: 501

Post » Mon Oct 06, 2014 5:46 pm

From what I understand you want to have only one bullet, but you get another bullet if your first bullet hits a certain object?
If so, this should work with variables.

On touch, if variable =1
-shoot bullet
-set variable to 0

Bullet collide with object
-set variable to 1
Be sure to check out my Metroidvania game, A Hole in the Earth
B
59
S
24
G
3
Posts: 359
Reputation: 5,683


Return to How do I....?

Who is online

Users browsing this forum: David181, luckyrawatlucky, shawnzien and 7 guests