How do I make a laser

Get help using Construct 2

Post » Sat Apr 16, 2016 12:21 am

So you don't actually need secondary laser bouncing, just straight pointing laser with limited length to where it pointed.
Well laser doesn't behave that way but here you go:
https://www.dropbox.com/s/d855c8du24oin ... .capx?dl=0
Last edited by alextro on Mon Jul 03, 2017 9:11 am, edited 1 time in total.
ImageImage
B
105
S
46
G
23
Posts: 778
Reputation: 22,226

Post » Sat Apr 16, 2016 8:28 am

Thank you so much Alextro, you helped me a lot!!
B
14
S
6
Posts: 63
Reputation: 1,236

Post » Sun Apr 17, 2016 3:01 pm

Message: ElChuchis can only post plain text URLS until they have 500 rep. 2 URLS modified. Why?
I made exactly your laser ray capx to my project but still not working well. The problem is on the width of laser.

https://gyazo.com/b7aa9482842689d8efdd89d4573b0031

What i did wrong?

RESULT:

https://gyazo.com/6cc832605a0f5f8256df6ce86ef04aa5

Needs Capx?
B
14
S
6
Posts: 63
Reputation: 1,236

Post » Sun Apr 17, 2016 8:19 pm

Message: ElChuchis can only post plain text URLS until they have 500 rep. 1 URLS modified. Why?
alextro wrote:So you don't actually need secondary laser bouncing, just straight pointing laser with limited length to where it pointed.
Well laser doesn't behave that way but here you go:
https://dl.dropboxusercontent.com/u/659 ... laser.capx


I stayed finding for solution about 1 hour... nothing
B
14
S
6
Posts: 63
Reputation: 1,236

Post » Sun Apr 17, 2016 10:24 pm

It seems that you didn't adjust the image point origin for laser. Change the image point origin x to 0 in image editor
ImageImage
B
105
S
46
G
23
Posts: 778
Reputation: 22,226

Post » Mon Apr 18, 2016 12:53 am

Message: ElChuchis can only post plain text URLS until they have 500 rep. 1 URLS modified. Why?
alextro wrote:It seems that you didn't adjust the image point origin for laser. Change the image point origin x to 0 in image editor


Yeep! It works better, but the laser still not working well :(

https://gyazo.com/3e8a0cf76f4b4a92438b2c6a8df4c9aa
B
14
S
6
Posts: 63
Reputation: 1,236

Post » Mon Apr 18, 2016 9:11 am

How many image point the ship has? Did your game use parallax movement?
Okay let's look at event 6 from my example. Disable or remove 'set position' from very last action then add pin behavior to laser.
Now add event, set condition to 'trigger once' and action 'set position' of laser to the canon and 'pin' laser to the canon too.
ImageImage
B
105
S
46
G
23
Posts: 778
Reputation: 22,226

Post » Mon Apr 18, 2016 10:57 am

Message: ElChuchis can only post plain text URLS until they have 500 rep. 1 URLS modified. Why?
alextro wrote:How many image point the ship has? Did your game use parallax movement?
Okay let's look at event 6 from my example. Disable or remove 'set position' from very last action then add pin behavior to laser.
Now add event, set condition to 'trigger once' and action 'set position' of laser to the canon and 'pin' laser to the canon too.


Yes, I have a parallax on layer "HUD", but laser and turret are on other layout without parallax. I will pass you a capx... I don't understand nothing :(

mega:

https://mega.nz/#!uJREmTbD

Pass: !ArSiOOr2H48bKFQ4G2DAvMscljTgegJFtUjPXnNSTHI
B
14
S
6
Posts: 63
Reputation: 1,236

Post » Mon Apr 18, 2016 6:30 pm

Please remove the "Spaceship" behavior first otherwise I can't open the file.
ImageImage
B
105
S
46
G
23
Posts: 778
Reputation: 22,226

Post » Mon Apr 18, 2016 9:57 pm

alextro wrote:Please remove the "Spaceship" behavior first otherwise I can't open the file.


no matter, I think this is too much for me... I abandon the project of spaceships, too much complex movements and things.

Thanks you Alex you helped me a lot!! :)
B
14
S
6
Posts: 63
Reputation: 1,236

PreviousNext

Return to How do I....?

Who is online

Users browsing this forum: evillair and 14 guests