How To script tracers to objects

Post your tutorials here.

How To script tracers to objects

Postby j-train09 » Sun Dec 12, 2010 5:14 am

im trying to make a gun that spawns cirles with traces but i cant seem to get it right so can some one hwlp me?? :angel:
[imghttp://media.ebaumsworld.com/mediaFiles/picture/655669/80428065.jpg][/img]
j-train09
 
Posts: 5
Joined: Sun Dec 12, 2010 4:50 am

Re: How To script tracers to objects

Postby Dare » Sun Dec 12, 2010 10:59 am

Look at some other scenes that do this, and teach yourself. That's what I did.
ImageImage
TC42 wrote:Dare, you are creepy.

Official Algobox Admin! Please PM me if you have any issues regarding Algobox.
User avatar
Dare
 
Posts: 833
Joined: Sat Nov 21, 2009 4:27 pm
Location: Sydney, Australia

Re: How To script tracers to objects

Postby j-train09 » Sun Dec 12, 2010 5:39 pm

ok
[imghttp://media.ebaumsworld.com/mediaFiles/picture/655669/80428065.jpg][/img]
j-train09
 
Posts: 5
Joined: Sun Dec 12, 2010 4:50 am

Re: How To script tracers to objects

Postby Rideg » Sun Dec 12, 2010 10:17 pm

I believe this topic should be in the "Thyme scripting" selection. There you'll find plenty of answers ;)
Image
make sure to check out my work.
User avatar
Rideg
 
Posts: 948
Joined: Tue Dec 15, 2009 5:17 pm
Location: Östersund, Sweden

Re: How To script tracers to objects

Postby Paradigm 29 » Mon Dec 13, 2010 8:44 pm

Code: Select all
Scene.addcircle({
            color := [0.0, 0.0, 0.0, 1.0];
            friction := 0.0;
            restitution := 1.0;
            drawBorder := false;
            airFrictionMult := 0;
            density := 1;
            collideSet := 1;
            pos := [1,1];
            vel := [0,0];
            radius := .1
        });
        Scene.addGroup({
            name := "selected";
            entityIDs := []
        });
        Scene.addPen({
            color := [1.0, 0.0, 0.0, 1.0];
            fadeTime := 0.6;
            size := 0.13409157;
            pos := [1,1]
        })

Spawns a circle with a tracer on it at [1,1]
You should be able to adapt that to your needs. You should also bookmark this page: http://www.algodoo.com/algobox/profile. ... 146&page=2
Image
User avatar
Paradigm 29
 
Posts: 284
Joined: Tue Sep 01, 2009 12:06 am
Location: Houston, Tx

Re: How To script tracers to objects

Postby j-train09 » Wed Dec 22, 2010 4:45 am

oh thank you so much :clap: :clap:
[imghttp://media.ebaumsworld.com/mediaFiles/picture/655669/80428065.jpg][/img]
j-train09
 
Posts: 5
Joined: Sun Dec 12, 2010 4:50 am


Return to Tutorials

Who is online

Users browsing this forum: No registered users and 1 guest