Browse Search Popular Register Upload Rules User list Login:
Search:
Super-sweet scripted gun (Phunlet-safe!)

Image:
screenshot of the scene

Author: Frank

Group: Default

Filesize: 100.09 kB

Date added: 2009-05-09

Rating: 8

Downloads: 3641

Views: 5333

Comments: 9

Ratings: 13

Times favored: 1

Made with: Phun

Tags:

Scene tag

This is an improved version of my previous scripted water gun. Now it fires balls with really cool colors, uses even more ingenious scripting, and no longer has the bug where if you didn't fire for a few seconds while moving, the first projectile would just shoot off at some ridiculous speed.

DETAILS
There are two changes to how it works: first, it calculates velocity more efficiently, using two variables instead of four. Second, the velocity-calculating device is now separate from the firing device. The green ball in the back of the gun, which spins constantly, calculates velocity and saves it as the controller acceleration and text scale of the "barrel". Then the reddish ball at the tip reads that and adds it to the velocity of the projectile when it's spawned.

CONTROLS
UP to fly forward, DOWN for reverse, LEFT and RIGHT to turn. A to brake. W to shoot the gun. L to destroy stray bullets if it gets laggy.

If you want to use the gun for something, please give credit. I'm not usually a stickler for credit, but this took a lot of work on my part. It uses no custom variables, though, so if you save it as a phunlet and import it somewhere else it still works perfectly.

EDIT: Oh, and the propulsion was invented by RaRaMalum. The vehicle is pretty cool in its own right.
Last edited at 2009/05/09 16:42:23 by Frank
Please log in to rate this scene
edit
Similar scenes
Title: Phunlet Safe Gearbox And Display
Rating: 6.4
Filesize: 18.97 kB
Downloads: 1103
Comments: 6
Ratings: 4
Date added: 2015/11/10 04:28:40
Made with: Algodoo v2.1.0
Rating: rated 6.4
download
Title: Scripted cluster bomb
Rating: 5.6667
Filesize: 9.07 kB
Downloads: 410
Comments: 3
Ratings: 3
Date added: 2010/06/12 07:13:25
Made with: Algodoo before v1.8.5
Rating: rated 5.7
download
Title: Phunlet-Friendly Ornithopter- Birdy II
Rating: 5
Filesize: 314.33 kB
Downloads: 658
Comments: 1
Ratings: 1
Date added: 2011/01/27 17:10:33
Made with: Algodoo before v1.8.5
Rating: rated 5
download
Title: Phunlet-safe missile prototype
Rating: 6.5
Filesize: 42.97 kB
Downloads: 1630
Comments: 7
Ratings: 4
Date added: 2009/11/29 17:04:47
Made with: Algodoo before v1.8.5
Rating: rated 6.5
download
Title: Flak Cannon [Phunlet Safe][Read Desc]
Rating: 5
Filesize: 55.49 kB
Downloads: 2261
Comments: 0
Ratings: 1
Date added: 2012/06/19 18:30:07
Made with: Algodoo v2.0.1
Rating: rated 5
download
Title: Collision helicopter engine (CHE) concept
Rating: 7.2308
Filesize: 152.26 kB
Downloads: 2425
Comments: 6
Ratings: 7
Date added: 2011/02/19 19:13:33
Made with: Algodoo v1.8.5
Rating: rated 7.2
download
This scene is a response to:
Title Author Rating Downloads Comments Date added
Any-speed water spawn gun (Phunlet-safe!) Frank 6.7 (6 votes) 1245 5 2009/05/06 19:40:50
show grid
Responses to this scene
show list
Title: Script Gun (NOT MADE BY ME)
Rating: 5
Filesize: 3.83 kB
Downloads: 467
Comments: 0
Ratings: 1
Date added: 2009/11/23 17:47:31
Made with: Algodoo before v1.8.5
Rating: rated 5
download
Title: Pod Racer
Rating: 6
Filesize: 57.48 kB
Downloads: 520
Comments: 2
Ratings: 3
Date added: 2009/05/12 20:30:50
Made with: Phun
Rating: rated 6
download
Title: milenium falcon universe exploration v2
Rating: 6.4546
Filesize: 343.11 kB
Downloads: 829
Comments: 11
Ratings: 5
Date added: 2009/05/09 09:12:16
Made with: Phun
Rating: rated 6.5
download
man this is awsome:P
lolz! can it fly!:tup:
It's great! :lol: 10/10

Please add the controls to your file description in the phz file.
Dman, how did you script it?:| Can I use the idea of the stabelizers? (if i know how it works XD)
Nice.:*)
@Jelmerholland
If you want to know how it's scripted, read the description and look at the onCollide of the green and reddish circles. As for stabilization, there is no actual dedicated stabilizer in the vehicle. It uses propulsion invented by RaRaMalum, which happens to either absorb or amplify angular momentum as it runs, depending on how you build it. This example absorbs it. Also the brakes, which also make it easier to maneuver, are balanced within the body so the rear has a little more drag than the front, like an arrow.
Last edited at 2009/05/09 16:40:43 by Frank
How'd you make the stabalizers work?The only ones I know of aren't phunlet safe! (this is going into my walker btw):)
WIN, i'm gonna use the idea of circles to improve my water rocket, that obviously won't be called water rocket anymore :blink:
hey suggestion to make is try adding a high tension spring at the bullet maker ,the other end at the semi transparent circle, and no auto brake; this makes it so the gun can't misfire and it can still shoot with about 95% speed. In other words you take 5% of firing rate and create a non-misfiring shooter:tup: