Instant hit Laser?

For questions about using Classic.

Post » Wed Apr 30, 2008 8:15 pm

I'm trying to make an instant hit, rotating laser. If it's not possible to make it instant hit, it should be very fast. Here is a picture oof what I mean... Anyone know how I can do this? :?
B
2
G
4
Posts: 14
Reputation: 1,078

Post » Wed Apr 30, 2008 9:13 pm

I would try using the bullet behavior. Shoot a bullet from the turret, use instant hit. Upon hitting a wall, set the x/y coordinates to private variables in the laser. Then then set the length of the laser by geting the distance from the laser's point of origin to the xy you set earlier.

Admittedly, I haven't tried this, but it should work in theory.
Moderator
B
87
S
32
G
33
Posts: 3,005
Reputation: 27,397

Post » Wed Apr 30, 2008 9:45 pm

Yes but it works only in theory becouse i tried same ideology but it was failure becouse that instant-hit is a bit... inacurate , when using a detector with speed of 1000 it works pretty good yet its slow,
http://www.megafileupload.com/en/file/6 ... r-cap.html
B
4
S
2
G
4
Posts: 719
Reputation: 2,938

Post » Wed Apr 30, 2008 10:20 pm

Scirra Founder
B
359
S
214
G
72
Posts: 22,946
Reputation: 178,478


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 0 guests