Browse Search Popular Register Upload Rules User list Login:
Search:
Please Help Me

Image:
screenshot of the scene

Author: 8-BIT_Legacy

Group: Default

Filesize: 7.33 kB

Date added: 2011-12-05

Rating: 5

Downloads: 922

Views: 1158

Comments: 14

Ratings: 1

Times favored: 0

Made with: Phunlet

Tags:

Scene tag

"I May Be Amazing. But Even I Have Problems"--Unknown

Anyway I'm Trying To Figure Out How To Make An Object Wait To Spawn A Tracer, But I Don't Know The Command)|( . If You Could Help, Here's My Script:

(e)=>{Scene.addPen({pos:=e.pos;color:=[0,0,0,1];size:=0.05})}

Simple Script To Leave A Bullet Mark On An Object When It Is Hit.
Please log in to rate this scene
edit
Responses to this scene
show list
Title: Stalker[Mobile Combat]
Rating: 5
Filesize: 50.43 kB
Downloads: 577
Comments: 0
Ratings: 1
Date added: 2011/12/05 19:34:56
Made with: Phun
Rating: rated 5
download
Make a box with the script you want to use (use oncollide scripting) and put it on the tip of the bullet. This way it can't collide with the barrel and thus can't spawn a tracer on the barrel. Make the small box only collide with the target, because otherwise other things than the target get a tracer and I don't think that is what you want. Also you have to make sure the box with the script deletes itself when it collides with the target, so the tracer is placed only once.

I don't have any experience with these kind of things.
This idea just popped into my head.
Good luck!
Last edited at 2011/12/05 09:31:51 by Banjerboef
go to script menu, onCollide = place in the code then press enter and any thing bounce on the floor it will have tacer btw how to adjust the fate time?
The Command Is Supposed To Go On The Target, So That Any Bullet Will Work.

The Problem Is That It Spawns The Tracer On The Bullet Too Often. Once I Figure Thi Problem Out, I'll Upload The Target.

I Used Thyme To Fire Unlimited Ammo In The Gun I'm Using So Waiting Is My Only Option.

Also, If Anyone Want's To See My SMG, Tell Me.
Try this: (e)=>{Scene.addPen({pos:= (e.pos - 1);color:=[0,0,0,1];size:=0.05})}.
The e.pos - 1 should enable you to spawn a tracer a bit more on the target.
You'll need to play with the numbers to get it right.
Maybe you can add a killer script too to prevent a second tracer to be spawned.
I don't know how timer scripts work, otherwise you could have used a timer script.
@hwei8: in the tracer options menu you see two sliders one for the size and one for the fade time!
Bullet OnCollide:

(e)=>{e.other.controlleracc == 11 ? {Scene.addPen({pos:=e.pos;color:=[0,0,0,1];size:=0­.05})} : {}}

Then just make all your gun parts have different controlleracc. The default is 11, so anything other than your gun will have a tracer left on it.
Tried All Scripts, They Don't Work, They Still Spawn On The Bullet, I'll Upload The SMG So You Guy's Can See It, I'd Still Like You Guy's To Search For A Timer Script, Once This Problem Is Sorted Out, I'll Upload A Scene With Some Awsome Military Stuff. So Give Me Suggestions. I'll Load A Scene So U Can Upload Stuff You Want In It
This can be done in Algodoo by deleting the bullet, and then spawning a tracer slightly into the target:

(e)=>{
e.other.density = 0;
Scene.addPen({
pos := e.pos - [0.01, 0.0];
color := [0.0, 0.0, 0.0, 1.0];
size := 0.05
})
}

Does not work in Phun, but this may give you some ideas.

If you were to do this in Algodoo, then you could respawn the bullet if desired by using code similar to fruitmonger's Resizer.

http://www.algodoo.com/algobox/details.php?id=59402
Thank's s_noonan, But I'm A PHUN User Because It Runs Smoother
@8-BIT_Legacy: Is your computer powerful enough to run Algodoo?
If so you could try the script of s_noonan in the demo period of Algodoo.
If it works, you'll have to find a way to put it in Phun.

btw: I'm not a Phun user, so I don't know what's supported and not supported in Phun.
Last edited at 2011/12/07 15:16:45 by Banjerboef
I Can Use Alodoo, But I Can Run Bigger Things In Phun.


My Computer's Specs Are

Core 2 Duo (3.0GHZ)
4GB RAM
Windows Vista 32 Bit.


This Runs Nicely But I'm Building a new one using An AMD Athlon ii X2 And 8GB Ram, On Windows 7.
@8_BIT_Legacy: Why are you using Phun if you have such great specs???

I have:
AMD Athlon 64 X2 Dual-Core 1.9 Ghz
3 GB DDR2 RAM
Win 7 64 Bit

On my computer Algodoo is running smoothly, except for Kilinich' scenes they run at 70-80% realtime.

Maybe you don't know it yet, but Algodoo got improved.
It got much faster and runs smoother than previous versions.
Even I can run big scenes that I couldn't run before.

I mean, you have a great gaming computer.
Why not use Algodoo instead of Phun, your computer specs won't be the problem!

It's your choice, but if I had your specs I would definitely choose Algodoo.
By the time Algodoo starts to lag on a computer with your specs, I would have to create more than 1000000 particles.
Ok, I'll Get A New Beta
NOOOO I CANT GET BETA!!!!!


Better Now.

Anyway, I'm Building A New Gaming PC, I Try again then.