Spawning Stuff, For Dummies

Post your tutorials here.

Re: Spawning Stuff, For Dummies

Postby Someone Else » Wed Feb 09, 2011 5:35 am

Get creative with partially transparent geoms and scripted lasers with 1 maxRays?

One, spawn a laser. I dunno how.

Two, put a script in the laser something like this:
Code: Select all
e.geom.controllerAcc = e.geom.controllerAcc + 1;
{e.geom.controllerAcc >= 0} ? {e.geom.density = 0} : {}


If the laser has 1 maxRays and the geom is not completely opaque (that is, the opacity slider is not all the way to the right, or color(3) is less than 1), this should work.

'Course, my code has been known to not work in the past...
Matthias Wandel is epic, in my humble opinion.
I love my brain...
TC42 wrote:Also, your sig is too big, please change it.

ARE YA HAPPY NOW?????

Thymechanic/Phundamentalist

Recently, I discovered something a lot of you probably already knew: Minecraft is awesome.
Due to this, I may not be as active as usual for a while.
User avatar
Someone Else
 
Posts: 1147
Joined: Sun Nov 21, 2010 10:53 pm
Location: The Milky Way Galaxy

Re: Spawning Stuff, For Dummies

Postby TC42 » Wed Feb 09, 2011 5:37 am

Laser spawning is scene.addLaserpen({--all aspects go here--})
Image
Spambot wrote:Nowadays, memes usually are studied less in the field of biology, but more with the arena of psychology along with sociology. But, the major area of a meme, getting embraced and imitated all the time is what’s at any core connected with any meme.
User avatar
TC42
 
Posts: 984
Joined: Sun Jan 09, 2011 1:53 pm
Location: $ sudo apt get-install sandwich_

Re: Spawning Stuff, For Dummies

Postby Someone Else » Wed Feb 09, 2011 5:49 am

Do lasers attach to a geom with a geomID?

That is, can you spawn one to an already-existing geom without Grady's New Method? (find the topic yourself, I could only find it once, it is on the Algoforum somewhere)

Or, must you specify the geomID of whatever the laser will attach to?
Matthias Wandel is epic, in my humble opinion.
I love my brain...
TC42 wrote:Also, your sig is too big, please change it.

ARE YA HAPPY NOW?????

Thymechanic/Phundamentalist

Recently, I discovered something a lot of you probably already knew: Minecraft is awesome.
Due to this, I may not be as active as usual for a while.
User avatar
Someone Else
 
Posts: 1147
Joined: Sun Nov 21, 2010 10:53 pm
Location: The Milky Way Galaxy

Previous

Return to Tutorials

Who is online

Users browsing this forum: No registered users and 6 guests

cron