Need a growing Laser?
Hey. Im having a little trouble figuring out how i would do this. Basically i have an actor that can move around in a big square, i want to be able to fire a laser which grows in size from the actor until it hits something, whether it be something in the square or the squares walls/edges.
Any ideas greatly welcomed and appreciated.
Any ideas greatly welcomed and appreciated.
Comments
If I wanted a laser to come out of a gun, I would do something like
Interpolate self.size.width to 50
Constrain self position x to (gunX +( gunWidth/2))+(laserwidth/2)
I'm a little confused about what exactly you want. You may want to do this.
Self Boolean - collided (false)
If collides, change self.collided to true
Every .3 seconds,
If collided is false,
interpolate self.size.width with a duration of .3
Matt
http://matthewredler.com
Make sure the duration and timer are the same.
beefy, maybe try some reverse technology on the tutorial for the health bar from tshirtbooth? It's basically the same thing but in reverse…kinda.
I don't think that will work. The whole idea of changing its size based on a number is fine, but with health, you would start at say 100 and work down. The problem is, the 100 in this case will always need to be changing. If for instance you are close to the wall your laser may be as short as 20, if you are far away it maybe 200, if the laser is straight at say 200 but something comes in front, it needs to adapt to that.
@SlickZero My thoughts as well, but was thinking Space Balls...
http://gamesalad.com/forums/topic.php?id=23688