Help with destroying bullets(Lasers)

Get help using Construct 2

Post » Fri May 08, 2015 9:38 pm

I want my lasers to be destroyed once the whole laser has entered an object, or half way through an object. Can someone help me with that? I'm completely new with construct2 and have watched a lot of tutorials on youtube, but none have shown me how to do this.

Just to clarify, I don't want my laser to be destroyed once the tip touches an object, because it'd look weird when the last half of the laser just disappears without making contact with the object.
B
2
Posts: 2
Reputation: 154

Post » Fri May 08, 2015 10:10 pm

Hello,

One thing you can do is have a sprite for your characters or monsters or whatever, and an invisible sprite pinned to it, with the shape you want, and a little bit smaller for the collision. Thus the laser will overlap with the entity's sprite and will only be destroyed once it has collided with the inner collision sprite.
B
14
S
4
Posts: 109
Reputation: 1,281

Post » Fri May 08, 2015 10:40 pm

or maybe use a small timer that delays the destroy and in that short moment reduce the size ,height or width like its impacting
ImageImage
B
69
S
21
G
7
Posts: 827
Reputation: 10,017

Post » Fri May 08, 2015 11:15 pm

ah that makes sense. Thanks for the reply, guys.
B
2
Posts: 2
Reputation: 154


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 14 guests