How do I make a lightbeam

Get help using Construct 2

Post » Sun Mar 01, 2015 2:43 pm

I'm trying to create my first little test game in construct2 and I thought a simple tron game would be a good place to start.
i've got my objects moving around and I would like to have a light-beam added when my object moves.

how would one do this in construct2?

Posts: 5
Reputation: 185

Post » Sun Mar 01, 2015 3:01 pm

Depends on what you mean by "light beam" You need to be more specific about what you need.

My guess is that you want a laser beam from one point to another. I would solve this by creating a sprite only a few pixels high with the origin in the middle of the left side. I would set the position of this sprite to the starting point. I would set the angle of the sprite to the angle between the two points, then, finally, stretch the beam to length by setting the width to the distance between the two points.

If you have trouble implementing, post screenies or a capx so we can help you figure it out :)
Posts: 189
Reputation: 1,536

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 20 guests