Spawining Water, 4 n00bz!

Post your tutorials here.

Spawining Water, 4 n00bz!

Postby Dezzeron » Mon Sep 28, 2009 6:14 am

Welcome to spawning water, 4 n00bz. (lol) I know something like this is already on here, probley, but here it is. IN 5-(five) EASY STEPS!!

1-draw a shape;
2-select it and go to "Script menu..." (if you can't see it, go to "Options" and check the advanced mode setting);
3-search "onCollide": there should be a box with this text inside: (e)=>{} ;
4-put this code between "{" and "}" : Scene.addWater({vecs = [e.pos]});
5-type lots of "e.pos" separated by commas and a space to get lots of particles.

Hope it helped!
Check out my stuff HERE!
MY WEB SITE HERE!

Image
Sorry, I just had to.

Phundamentalist!
Mystery wrote:I'm convinced that dezzerons scenes are all epic. He's one of the biggest underdogs of algobox.
User avatar
Dezzeron
 
Posts: 296
Joined: Tue Sep 01, 2009 12:45 am
Location: Dark Side Of The Moon

Re: Spawining Water, 4 n00bz!

Postby Mystery » Mon Sep 28, 2009 10:23 am

You should expand to spawning squares, circles and polygons.
And i find the name "Spawning Water, for dummies!" much more fitting.
User avatar
Mystery
 
Posts: 2802
Joined: Thu Sep 03, 2009 1:16 pm
Location: Southern Australia

Re: Spawining Water, 4 n00bz!

Postby Jrv » Tue Sep 29, 2009 4:40 am

No, because if he said "dummies", that would make him a hypocrite.
Bang
User avatar
Jrv
[Best Musician 2010] [Funniest Person 2010] [Most Infamous Member 2010]
 
Posts: 1951
Joined: Mon Aug 31, 2009 7:21 pm
Location: Living in the Past

Re: Spawining Water, 4 n00bz!

Postby niffirg1 » Tue Sep 29, 2009 5:38 am

Wow JRV.... Oh wait no that is typical.
User avatar
niffirg1
 
Posts: 376
Joined: Mon Aug 31, 2009 10:31 pm
Location: The Great American South!

Re: Spawining Water, 4 n00bz!

Postby Altro » Wed Oct 07, 2009 7:25 pm

how do i spawn water with lasers?
http://www.speedtest.net/result/546516101.png
EAT THAT LOWLOL ( now ivanlul)! ALMOST DOUBLE YOUR DL SPEED! - HAVE FASTEST INTERNET SPEED IN FORUMS! w00t!
I was on the old forums aswell
I cant be a Phundamentalist because Im crap at algodoo.
"Every cloud has silver lining. Except the mushroom shaped ones, which have a lining of Iridium and Strontium 90."- Kevin Holmes
Altro
 
Posts: 94
Joined: Mon Aug 31, 2009 5:56 pm

Re: Spawining Water, 4 n00bz!

Postby Sniperkasa » Wed Oct 07, 2009 8:21 pm

Altro - I think you just add this
Code: Select all
{Scene.addWater({vecs = [e.pos, e.pos, e.pos, e.pos, e.pos, e.pos, e.pos, e.pos, e.pos, e.pos, e.pos, e.pos, e.pos, e.pos, e.pos, e.pos, e.pos, e.pos, e.pos, e.pos]})}

In the laser script menu
If you have a question, have a dollar and call somebody that cares.
No really just PM me if you have a problem :)
User avatar
Sniperkasa
 
Posts: 493
Joined: Tue Sep 01, 2009 5:34 pm
Location: The bottom of a lake.

Re: Spawining Water, 4 n00bz!

Postby standardtoaster » Wed Oct 07, 2009 8:37 pm

It's the same script but you just put it into the onLaserHit script menu.
User avatar
standardtoaster
 
Posts: 606
Joined: Mon Aug 31, 2009 7:57 pm

Re: Spawining Water, 4 n00bz!

Postby simey j dude » Fri Oct 16, 2009 6:49 pm

Sniperkasa wrote:Altro - I think you just add this
Code: Select all
{Scene.addWater({vecs = [e.pos, e.pos, e.pos, e.pos, e.pos, e.pos, e.pos, e.pos, e.pos, e.pos, e.pos, e.pos, e.pos, e.pos, e.pos, e.pos, e.pos, e.pos, e.pos, e.pos]})}

In the laser script menu

standardtoaster wrote:It's the same script but you just put it into the onLaserHit script menu.


i tried that and algodoo crashed :wtf:
User avatar
simey j dude
 
Posts: 61
Joined: Sat Sep 05, 2009 3:11 am
Location: under your bed!

Re: Spawining Water, 4 n00bz!

Postby standardtoaster » Fri Oct 16, 2009 7:03 pm

Hmm... it spawned to much water. :lol: sorry about that. to make it better just have one e.pos instead. :D
User avatar
standardtoaster
 
Posts: 606
Joined: Mon Aug 31, 2009 7:57 pm

Re: Spawining Water, 4 n00bz!

Postby Sniperkasa » Sat Oct 17, 2009 10:12 pm

Yeah.. I didnt remember to warn you about that xD as the laser hits so many times a second.. boom :shock:
If you have a question, have a dollar and call somebody that cares.
No really just PM me if you have a problem :)
User avatar
Sniperkasa
 
Posts: 493
Joined: Tue Sep 01, 2009 5:34 pm
Location: The bottom of a lake.

Re: Spawining Water, 4 n00bz!

Postby Sgt. Pepper » Thu Oct 22, 2009 11:04 pm

Thanks Dezzeron for this tutorial, but, when you release 8 mission of your exciting series?
Quiero tacos
I want tacos
Ek wil taco
Haluan tacoja
Dua tacos
Ich möchte Tacos
أريد التاكو
Я хoчу тако
Искам Такос
Vull tacs
Chci tacos
我要炸玉米餅
Želim tacos
Jeg vil tacos
Je veux tacos
Voglio tacos
Eu quero tacos
Θέλω tacos
אני רוצה טאקו
私はタコスしたい
Es gribus tacos
Chcę tacos
Soovin Tacos
Ik wil taco's
Here, i say "I want tacos" in some languages
Thanks and give more languages!
User avatar
Sgt. Pepper
 
Posts: 28
Joined: Sat Sep 26, 2009 4:07 am
Location: Your brain, any black hole of the universe, Eagle nebula, ISS, Vietnam, UK, the Moon, my house

Re: Spawining Water, 4 n00bz!

Postby Dezzeron » Sat Oct 24, 2009 11:32 pm

Sgt. Pepper wrote:Thanks Dezzeron for this tutorial, but, when you release 8 mission of your exciting series?


I dont know, as soon as I get around to it, i guess. It's good to know that i'm loved! :lol:
Check out my stuff HERE!
MY WEB SITE HERE!

Image
Sorry, I just had to.

Phundamentalist!
Mystery wrote:I'm convinced that dezzerons scenes are all epic. He's one of the biggest underdogs of algobox.
User avatar
Dezzeron
 
Posts: 296
Joined: Tue Sep 01, 2009 12:45 am
Location: Dark Side Of The Moon

Re: Spawining Water, 4 n00bz!

Postby abaddon » Tue Dec 01, 2009 10:03 pm

my algodoo crashes everytime i script an object or laser ... even if i kave only one e.pos ,
a have a powerful machine so i dont think its my comp ...

EDIT : i misread a few words in tutorial , now i understood it and it works .... tnx ...
tip of the day , dont sleep 3 hours per day for whole week ...
abaddon
 
Posts: 1
Joined: Tue Dec 01, 2009 9:57 pm

Re: Spawining Water, 4 n00bz!

Postby Papriko » Wed Dec 02, 2009 8:11 pm

The object that spawns the water self should not collide with water.I made a water spawner and just threw once a small ball against it. It turned to an infinite fountain.
I am currently only using Phun 5.28 and not Algodoo. I would annoy the people on the Phun Forum and not here, but the Forum refused new registrations when I looked the last time.
Papriko
 
Posts: 29
Joined: Tue Nov 17, 2009 8:43 pm

Re: Spawining Water, 4 n00bz!

Postby ToshNeox » Fri Jan 08, 2010 7:38 pm

I don't seem to be able to do it. I add the code in. That doesn't work. I try fixing the code, doesn't work! :crazy: Please help!
Image
ToshNeox
 
Posts: 11
Joined: Thu Jan 07, 2010 2:46 pm

Re: Spawining Water, 4 n00bz!

Postby Rrobba » Tue Mar 23, 2010 11:04 pm

Mystery wrote:You should expand to spawning squares, circles and polygons.
And i find the name "Spawning Water, for dummies!" much more fitting.


This.
Image
I don't suffer from insanity. I enjoy every minute of it.
User avatar
Rrobba
[Best Sig 2010]
 
Posts: 1480
Joined: Mon Aug 31, 2009 6:01 pm
Location: Gibraltar

Re: Spawining Water, 4 n00bz!

Postby Mystery » Thu Apr 01, 2010 10:07 am

Update this to current methods.
Add Version := 1 to the waters code
I.E Scene.AddWater({ version := 1; })

This is for Algodoo to make it spawn the new advanced water (uncompress-able) with out it it will make algodoo revert its water behavior to phun's less-then-perfect water..
User avatar
Mystery
 
Posts: 2802
Joined: Thu Sep 03, 2009 1:16 pm
Location: Southern Australia

Re: Spawining Water, 4 n00bz!

Postby phunbox1 » Sat Oct 09, 2010 7:48 pm

Dose anyone know how to spawn water with velocity?

I tried but i just keeps spawning in the direction left <----

please help me!
phunbox1
 
Posts: 4
Joined: Sat Apr 17, 2010 1:00 am

Re: Spawining Water, 4 n00bz!

Postby Chronos » Sat Oct 09, 2010 10:55 pm

You can't.
TheWinkits wrote:They both looks of cuking amazing
User avatar
Chronos
[Most Active Member 2010]
 
Posts: 4457
Joined: Mon Aug 31, 2009 6:00 pm
Location: Californania

Re: Spawining Water, 4 n00bz!

Postby Mystery » Sun Oct 10, 2010 2:10 am

Chronos wrote:You can't.

:roll:
Water has three definable variables.
Vecs, Vels and Version.
Vecs is position
Vels is the velocity.
And version defines what algorithms to use for the water. (1 = old, 2 = new)

So your pimping new code should look something like
Code: Select all
(e)=>{
    Scene.AddWater({
        vecs := [e.pos];
        version := 2;
        vels := [scene.my.ws]
    })
}

For what ever reason algodoo won't accept anything other then a variable for vels or vecs. A simple by pass of this is to create a variable of the velocity or position that you desires in my case is did
Code: Select all
scene.my.ws = [0.0, 10]

Making the water shoot straight up.

Hope this helps.
User avatar
Mystery
 
Posts: 2802
Joined: Thu Sep 03, 2009 1:16 pm
Location: Southern Australia

Re: Spawining Water, 4 n00bz!

Postby Chronos » Sun Oct 10, 2010 2:55 am

Oh, wow, never mind. I could've sworn you couldn't. Sorry 'bout that.
TheWinkits wrote:They both looks of cuking amazing
User avatar
Chronos
[Most Active Member 2010]
 
Posts: 4457
Joined: Mon Aug 31, 2009 6:00 pm
Location: Californania

Re: Spawining Water, 4 n00bz!

Postby InfinityPlayer » Sun Feb 06, 2011 12:30 am

Sniperkasa wrote:Altro - I think you just add this
Code: Select all
{Scene.addWater({vecs = [e.pos, e.pos, e.pos, e.pos, e.pos, e.pos, e.pos, e.pos, e.pos, e.pos, e.pos, e.pos, e.pos, e.pos, e.pos, e.pos, e.pos, e.pos, e.pos, e.pos]})}

In the laser script menu


I've copied and pasted this code into the OnCollide box on my laptop, and it freezes it, and i have to close it down.

Why does it only work with ALL those "e.pos"'s in it?
I am still learning, not an expert yet. I'm just here to have some phun.
InfinityPlayer
 
Posts: 40
Joined: Thu Dec 09, 2010 7:57 pm

Re: Spawining Water, 4 n00bz!

Postby TC42 » Sun Feb 06, 2011 2:40 am

:facepalm:
Don't bump.

Anyway, I dunno why it doesn't work... It only works with one 'e.pos' on my PC. If you want to spawn more, just add another 'scene.addWater...' with all those 'e.pos's. I never spawn water though, so I don't mess up my config with incorrect scripting :D Just curious, but why do you want to spawn water?
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: Spawining Water, 4 n00bz!

Postby Mystery » Sun Feb 06, 2011 4:56 am

That was a very acceptable bump.
Rather a bump then a new thread.
User avatar
Mystery
 
Posts: 2802
Joined: Thu Sep 03, 2009 1:16 pm
Location: Southern Australia

Re: Spawining Water, 4 n00bz!

Postby Rideg » Sun Feb 06, 2011 1:14 pm

Mystery wrote:That was a very acceptable bump

I'm fine with bumps as long as it sticks to the subject.
Image
make sure to check out my work.
User avatar
Rideg
 
Posts: 948
Joined: Tue Dec 15, 2009 5:17 pm
Location: Östersund, Sweden

Next

Return to Tutorials

Who is online

Users browsing this forum: No registered users and 3 guests

cron