laser beams (and slick termination thereof)

For questions about using Classic.

Post » Sat Apr 23, 2011 9:46 am

hi all (wow its been a long time since I last posted!)

I wanted to ask if anyone could point me in the right direction with this small dilemma.

I'm playing with a simple 2d top down shooter, i wanted to try making a continuous vertical laser beam that shot from the player ship at the bottom of the screen upwards.. one that would smoothly change height according to the targeted enemies Y position .

I tried using a stream of bullets that when hitting an enemy created another object for me to get a distance between the player ship and the enemy for the laser length, but when the enemy changes height, the end of the lazer beam tends to jerk about vertically due to the bullet collision, because the enemies need the laser on them for a while before they die, the vertical juddering is quite visible..

I cant use a stream of bullets to do the effect straight off, as the laser sprite has alpha fading on it, so any vertically overlapping bullet parts make the graphic look bad.

would anyone be able to suggest a smoother way of doing a vertical laser that terminates at the top smoothly according to where the enemy is on the y axis? I hope i've made myself clear...

as always, thanks so much!

W3
B
4
S
2
G
5
Posts: 149
Reputation: 2,025

Post » Sat Apr 23, 2011 10:38 am

Would that help?
viewtopic.php?f=8&t=915&p=6478&hilit=laser+end

edit: and if you need the laser to covers up more exactly at edges, click on "Bullet", while
you are at the layout editor, left select Collisions(properties category) and select "point". :wink:
B
24
S
9
G
2
Posts: 294
Reputation: 3,160

Post » Sat Apr 23, 2011 1:11 pm

man, that perfect, my apologies for not checking properly before hand..

thanks so much.
B
4
S
2
G
5
Posts: 149
Reputation: 2,025


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 7 guests