How do I make a laser work on collision with the enemy.

Get help using Construct 2

Post » Tue Nov 17, 2015 9:07 pm

Hello boys and girls, I'm here trying to do the programming of a tower that shoots lasers at enemies with pathfinding, it happens that the collision between the laser and the enemies is not happening as I will, ie the collision only happens once, I want to that while the laser touch the enemy does damage it, but I'm not getting.
B
30
S
9
G
3
Posts: 280
Reputation: 4,212

Post » Tue Nov 17, 2015 9:13 pm

what events and conditions are you using for this..?
Would a laser is overlapping work?
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 » Tue Nov 17, 2015 9:21 pm

I created some events for the laser to rotate and resize it to the object, but is not going to crash.
You can see this tutorial link:
https://www.scirra.com/tutorials/4867/how-to-make-an-object-rotate-and-resize-along-the-mouse-position
But at the time of the collision count only counts the first time collides with the solid object type.
B
30
S
9
G
3
Posts: 280
Reputation: 4,212

Post » Wed Nov 18, 2015 12:11 am

On collision is a triggered event and as such only triggers once while true..
That's why I asked if "is overlapping" would work in your case?
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 » Wed Nov 18, 2015 7:09 pm

I'll check here.
B
30
S
9
G
3
Posts: 280
Reputation: 4,212

Post » Wed Nov 18, 2015 7:36 pm

Perfect guy, worked properly, thank you.
B
30
S
9
G
3
Posts: 280
Reputation: 4,212


Return to How do I....?

Who is online

Users browsing this forum: charliesan763, JaredX and 10 guests