Laser

0 favourites
From the Asset Store
A sound pack containing 132 laser gun sound effects, including mono and stereo versions of audio files.
  • Hi :D, this is my first post here and i need help making a laser.

    I'm making an endless runner shooter in 2D with mouse aiming in 360� and i was wondering how do i make a laser with recoil, in Super Crate Box when you grab the minigun and you shoot it you go back(it trows you in opposite direction of the gun firing).. i want to do that but with a laser(the laser must start from the gun and finish on the layout)

    I've been struggling with this for weeks now :/ i have read many other posts from here talking about lasers but it's not useful for what i need... for more graphic reference i'll post some images:

    this is the gun i was talking (Super Crate Box):

    cdn.mobygames.com/screenshots/16722071-super-crate-box-windows-the-minigun-has-a-lot-of-recoil.png

    and this is how i want my laser to look (No Time To Explain):

    destructoid.com/ul/210337-review-no-time-to-explain/notime3-620x.jpg

    if you could help me i'll be very happy, also excuse my awful english(is not my native language)

  • Example

  • Sam, is there any chance we can get a capx for that example so we can see how you did it? That's actually perfect for a project I'm working on, as well.

  • ohh awesome Sam!! that's exactly what i was looking for, as whiteheat says, is there any possibility you upload the .capx? or at least to told us how you managed to do it?

  • Does this help?

    Example

    CAPX

  • Laser specialists well done examples

  • Thanks Zero, that's perfect! My game shall soon have awesome lasers :D

  • Zero6 can you create that type of laser- when i click mouse button player shot short wave laser when i hold mouse button much longer laser have longer wave ?

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • thanks Zero6 !!!!!!!!!!

  • Can you show me an example of what you're talking about, delgado?

  • Hey Zero6, you know how to create a sort of recoil for the laser? like in the Sam's example

  • 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 :(

  • 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:

    <img src="smileys/smiley21.gif" border="0" align="middle" /> 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.

  • Thanks!

    Glad to help!

  • 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.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)