Author Topic: (Unity C#) Help with beam attack  (Read 865 times)

Offline MarkHest

  • Video Game Music Composer
  • Astral Trancist
  • *****
  • Posts: 700
  • LV: 16
  • Gender: Male
  • Smile, Laugh, Live
    • View Profile
    • My Youtube Site
(Unity C#) Help with beam attack
« on: January 13, 2016, 10:10:20 PM »
Hi!  :haha: I need some help from an experienced Unity programmer that can help me make this happen and make it look awesome! ;)
So I decided one of the bosses in my sideproject I'm working on is going to have a giant Beam attack that shoots from the body of the boss and follows the player with small delay in movement.
The beam is going to scale from the boss all the way to the ground it touches. Once a new ground level(height) is met the beam will scale accordingly.

Here's a gif of an animation I made to describe more precise what it is I want to do:
(click to show/hide)

Here is also a video of a game called Wings of Vi. Skip to 11:22 to see what kind of beam I want to create with better graphics:

How can I scale the beam while one end of the object(the starting point, AKA the boss) is a set vector?
I'm not sure how to do this. Is the beam just an animation-object with a collider or is there a lot of programming involved? There are probably multiple ways of doing this. Show me the way you think is best :)

EDIT: I'm not asking to get the full code with files and animations and everything :P. I just want some guidance on what would be the best way to get this done. (Feel free to write code if you want though.)
« Last Edit: January 14, 2016, 12:37:20 AM by MarkHest »