How To script tracers to objects
6 posts • Page 1 of 1
How To script tracers to objects
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??
[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
Look at some other scenes that do this, and teach yourself. That's what I did.
-
Dare - Posts: 833
- Joined: Sat Nov 21, 2009 4:27 pm
- Location: Sydney, Australia
Re: How To script tracers to objects
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
I believe this topic should be in the "Thyme scripting" selection. There you'll find plenty of answers
make sure to check out my work.
-
Rideg - Posts: 948
- Joined: Tue Dec 15, 2009 5:17 pm
- Location: Östersund, Sweden
Re: How To script tracers to objects
- 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
-
Paradigm 29 - Posts: 284
- Joined: Tue Sep 01, 2009 12:06 am
- Location: Houston, Tx
Re: How To script tracers to objects
oh thank you so much
[imghttp://media.ebaumsworld.com/mediaFiles/picture/655669/80428065.jpg][/img]
- j-train09
- Posts: 5
- Joined: Sun Dec 12, 2010 4:50 am
6 posts • Page 1 of 1
Who is online
Users browsing this forum: No registered users and 3 guests