laser length

Get help using Construct 2

Post » Fri Dec 07, 2012 11:34 pm

So I have this laser turret here (capx) and I was wondering if someone could guide me in the right direction so that the laser will only go to the edge of the closest overlapping cube if the mouse is past it. (Image)EncryptedCow2012-12-07 23:35:10
B
47
S
14
G
7
Posts: 603
Reputation: 8,141

Post » Fri Dec 07, 2012 11:56 pm

New to Construct ? Where to start

Image Image

Image Image

Please attach a capx to any help request or bug report !
Moderator
B
294
S
117
G
96
Posts: 7,313
Reputation: 71,094

Post » Sat Dec 08, 2012 12:03 am

I must have skipped right over that, thanks for your help!
B
47
S
14
G
7
Posts: 603
Reputation: 8,141

Post » Sat Dec 08, 2012 12:53 am

started on this before I saw kyat's reply

I added 3 event groups for different methods.

The first is really simple but imprecise
The second two are slightly complex but as precise as you want.

They all work with multiple lasers too, so I set it to create four lasers.

Disable/enable the groups to test them out.

linkkeepee2012-12-08 00:57:33
B
28
S
8
G
1
Posts: 469
Reputation: 4,683

Post » Sat Dec 08, 2012 1:26 am

@keepee

Already got it done, but thanks for your help too. I might change mine around a bit and make it more like your example.
B
47
S
14
G
7
Posts: 603
Reputation: 8,141


Return to How do I....?

Who is online

Users browsing this forum: Google [Bot] and 8 guests