Laser

Get help using Construct 2

Post » Tue Sep 11, 2012 8:41 pm

Hey Zero6, you know how to create a sort of recoil for the laser? like in the Sam's example
B
8
S
1
Posts: 7
Reputation: 569

Post » Tue Sep 11, 2012 11:45 pm

If you talking about making the recoil push the player around like in "No Time To Explain", I'm not sure. :(

All I can say is to mess around with the Platform behavior's VectorX and VectorY expressions. You would have to find a way to change the amounts added to those expressions based on the angle of the laser. I know it's possible; I just don't know the math behind it.

Sorry :(Zero62012-09-11 23:45:57
B
13
S
4
Posts: 117
Reputation: 2,242

Post » Wed Sep 12, 2012 12:48 am

Nice one Zero6! I updated a new version with your Hitscan Logic and works great on the platform! The credits for the Hitscan Logic going to you!

Edited Post:

I'm very pissed off! When I save the project it deleted totally from my computer. It said someting like "Contruct 2 can't save it on the disk". I dont know if this is a bug or what. Sorry!

@grumpymeerkat, the recoil logic is easy to create. When shooting the laser set player "move to angle". Put 3 on distance and gun.angle-180 on angle (this will make the player to move inverted to the angle of laser. Also in this moment you need to set gravity and max fall speed to 0 (this will help make the player float on air). When you stop shooting change the gravity and max fall speed to normal.SamCartagenaPR2012-09-12 22:56:58
B
61
S
5
G
5
Posts: 32
Reputation: 6,743

Post » Wed Sep 12, 2012 1:34 am

Thanks!
Glad to help!
B
13
S
4
Posts: 117
Reputation: 2,242

Post » Wed Sep 12, 2012 6:12 pm

What would need to be done to make this system work with multiple lasers? In my game the lasers are in the environment, and damage the player if he crosses their path.
B
7
G
1
Posts: 27
Reputation: 991

Post » Wed Sep 12, 2012 8:35 pm

Many thanks Sam :D it's fully working now
B
8
S
1
Posts: 7
Reputation: 569

Post » Fri Sep 14, 2012 2:44 am

I uploaded a New example on the arcade example section. Using the "Hitscan logic" by Zero6.

Laser Gun Effect Example
B
61
S
5
G
5
Posts: 32
Reputation: 6,743

Post » Fri Sep 14, 2012 2:17 pm

Very nice example! I've never messed with picking instances or IIDs or anything, so I'm still having quite a bit of trouble making this work with multiple lasers going at once. Can any of you help me figure it out?
B
7
G
1
Posts: 27
Reputation: 991

Post » Fri Oct 11, 2013 1:24 pm

What to do,if i have two or more lasers?
Thanks anyway =)
B
3
Posts: 4
Reputation: 337

Post » Mon Oct 14, 2013 10:20 am

@SamCartagenaPR
Thanks for sharing that great example with us, and Hats off to you mate zero6, great example very nice I am impressed.

@Saturn
if you are asking something please be more clear, I am just guess what you want, if you want more than one laser, than I think that you have to put two image points and then you can define the laser as from were it will come out. Some thing like that. Hope that helps. thehorseman0072013-10-14 10:21:53
B
89
S
17
G
13
Posts: 199
Reputation: 13,087

PreviousNext

Return to How do I....?

Who is online

Users browsing this forum: blackhornet, selaus and 0 guests