Laser?

triton13triton13 Member Posts: 161
edited February 2012 in Working with GS (Mac)
Hey guys, how do you get a laser to come out of something? I want it to be a straight line. I don't want it like a laser gun that shoots but a straight laser that comes out of an object and destroys stuff.

Comments

  • 921creative921creative Member, PRO Posts: 140
    One idea would be to spawn a rectangular "laser" image from the object and then, much like a health bar, have the spawned image quickly grow in size the entire width of the scene.
  • triton13triton13 Member Posts: 161
    Thank you but I'm having a serious problem. Nothing comes out when I go to shoot. I have my guy spawning the laser and under the laser I have a move on there at 0 degrees and nothing happens.
  • LeonardDeveloperLeonardDeveloper Member Posts: 4,630
    Particles... Or spawn actor.... But particles would be your best bet... I have particle tutorials over on my websit: http://www.thermo-apps.com/gamesalad
  • triton13triton13 Member Posts: 161
    I got my laser to shoot now, but I want it to be straight line of laser beam coming out. How can I do this?
  • LiquidGameworksLiquidGameworks Anchorage, AKMember, Sous Chef Posts: 956
    Try using the replicate behavior. Play with the spacing (1 pixel should do it). If you replicate it 3 times, it'll be 3 times the length, and so forth.
  • triton13triton13 Member Posts: 161
    Okay that worked but how can I hold the button down to keep it shooting? Sorry, I'm such a noob but i am learning =) Also is there anyway to make it when I stop shooting the laser stops immediately and doesn't keep going till it's off the screen?
  • RThurmanRThurman Member, Sous Chef, PRO Posts: 2,881
    Here is a laser demo I did a few weeks ago. It shows how to destroy the laser-beam when the shooting stops.
    http://www.mediafire.com/?2gmf4x3i4nkgilg

    Hope this helps!
    RThurman
  • triton13triton13 Member Posts: 161
    Thanks so much man. This forum is extremely helpful. =)
  • RThurmanRThurman Member, Sous Chef, PRO Posts: 2,881
    You are welcome!

    RThurman
  • RoksaltRoksalt Member Posts: 87
    Hey @RThurman do you still have that laser demo... the link no longer works
  • fatlung123456fatlung123456 Member Posts: 1

    I want to download the tutorial and the laser demo.Can anyone send them to me? Thank you

Sign In or Register to comment.