The Daily Click ::. Forums ::. Klik Coding Help ::. Lasers
 

Post Reply  Post Oekaki 
 

Posted By Message

Milo



Registered
  17/09/2005
Points
  223
16th September, 2007 at 10:31:20 -

How would you go about making a laser that stops when it hits something. I mean not like Projectile "Lasers" (In truth those are bullets not lasers), but like a stream of light.

 
I've wasted my life.
I don't plan on stopping.

Knudde (Shab)

Administrator
Crazy?

Registered
  31/01/2003
Points
  5125

Has Donated, Thank You!Clickzine StaffKlikCast StarVIP MemberGhostbuster!Dos Rules!I donated an open source project
16th September, 2007 at 11:15:30 -

In mmf2 you could probably use the scale and rotation functions of actives to accomplish this, it's actually something I plan on working on on Monday/Tuesday of this week.

 
Craps, I'm an old man!

Sketchy

Cornwall UK

Registered
  06/11/2004
Points
  1970

VIP MemberWeekly Picture Me This Round 43 Winner!Weekly Picture Me This Round 47 WinnerPicture Me This Round 49 Winner!
16th September, 2007 at 11:26:11 -

indeed you could.
i made a slow and crappy example to give you the general idea.

http://www.angelfire.com/mech/banshee/Laser.mfa
(you need to copy & paste the link beacuse it's angelfire and they suck)

i was making a linerider clone a while back and you can actually get it to draw lines quite quickly if you do it right.
have you searched for this? i'm sure i've seen a tutorial or example somewhere before.

if you're not using MMF2, it's going to be a lot harder. you'd have to probably use trig to create a line out of loads of small active objects. there's also the drawline object but it is very buggy and sucks.

 
n/a

Milo



Registered
  17/09/2005
Points
  223
16th September, 2007 at 12:02:49 -

I'm pretty good with the Draw Object though.

 
I've wasted my life.
I don't plan on stopping.

Silveraura

God's God

Registered
  08/08/2002
Points
  6747

Game of the Week WinnerKlikCast StarAlien In Training!VIP Member360 OwnerWii OwnerSonic SpeedThe Cake is a LieComputerChristmas Tree!
I am an April Fool
16th September, 2007 at 12:09:29 -

A decent example of exactly how to do what you wanted, if you expected someone to tell you how it was done with the draw object, mention that before hand. Otherwise, we're going to give you a better way to do it without it.

 
http://www.facebook.com/truediamondgame

Milo



Registered
  17/09/2005
Points
  223
16th September, 2007 at 15:39:30 -

The draw object needs equations to make good looking things. I'd really rather not use it though

 
I've wasted my life.
I don't plan on stopping.

Silveraura

God's God

Registered
  08/08/2002
Points
  6747

Game of the Week WinnerKlikCast StarAlien In Training!VIP Member360 OwnerWii OwnerSonic SpeedThe Cake is a LieComputerChristmas Tree!
I am an April Fool
17th September, 2007 at 05:26:27 -

So then what are you asking for... you got a nice example of how to do it, but in response to it you just say "I'm good with the draw object though." and now you're saying you don't want to use the draw object.

 
http://www.facebook.com/truediamondgame

Muz



Registered
  14/02/2002
Points
  6499

VIP MemberI'm on a BoatI am an April FoolHonored Admin Alumnus
18th September, 2007 at 02:21:33 -

Hmm.. I'd like a laser example without using the draw object. Haven't opened that example yet, my MMF2 is at home, though.

 
Disclaimer: Any sarcasm in my posts will not be mentioned as that would ruin the purpose. It is assumed that the reader is intelligent enough to tell the difference between what is sarcasm and what is not.

Image
   

Post Reply



 



Advertisement

Worth A Click