This didn't really help ME, but i know it will and has helped others. I'm hoping you make a tutorial about spawning I haven't quite got that completely down, I'm like 10% or less done with knowing spawning. And I don't know if i know all the things you can do with scripts., so i hope you will make a video about a scripting type/form that I go, "Oh, I didn't know you could do that." but i'm pretty sure I know all the types and just need help with spawning.
Remember to just press enter once, on some computers, if the scipt that you have typed is auto spaceing it means that the console confirms that it understand the order. To add a box, just type box(not sqare) instead of circle
I tried to build a simple timer by changing the cutom variable on collision. I made a heavy circle and glued a light box to it. Then I created a heavy box that was hit on every rotation. I used another box as display. From then on I followed your description but the text did not change.
@300istilmig well it is 1=a 2=b 4=c 8=d 16=e 32=f 64=g and then to make something have collideset abe it would be like 1+2+16=19 (haven´t tried using more than one collideset change scripts yet haven´t needed it :P )
well you click the object, go to material menu, click ON the number (in the restitution section, it probably says 0.500) hit backspace till its all gone and type in 10,000 or some other number thats REALLY high.
mechanical things are way more fun to build anyways, i dont see why people spend so much time scripting (sure some things you cant do without scripting but who cares)
im pretty sure thats not possible right now. ve never senany scripting tat uses colors for colliding, but itt seems possible theremigh be one in the future.
Pretty cool paradigm very clear and understandable! you continue to impress me no matter what. I wish i knew what you do. Continue to do what you always :D
This has been flagged as spam show
{''Variable=" + scene.my.variable1}
What's wrong with my text? I use Algodoo 2.0.0
TheDoubleHeadshot 2 months ago
-watch the vid- .. ?? -watch the vid again- ?? eh ? i thought i was watching porn movies XDXDXD
negimagics 7 months ago
This has been flagged as spam show
do u know how to make a object disappear when it collides?
otard95 10 months ago
1:54 <- how to open
TheMoo2000 11 months ago
@TheMoo2000 u press F11
DeanOddsword 9 months ago
This didn't really help ME, but i know it will and has helped others. I'm hoping you make a tutorial about spawning I haven't quite got that completely down, I'm like 10% or less done with knowing spawning. And I don't know if i know all the things you can do with scripts., so i hope you will make a video about a scripting type/form that I go, "Oh, I didn't know you could do that." but i'm pretty sure I know all the types and just need help with spawning.
Zach123187 1 year ago
@Zach123187 just what i want to know too, would be useful for creating guns :D
ikbenolaf2 8 months ago
This is great, im familliar with scripting but i couldnt grasp this that easy, you made me understand it.
Thanks!
xanox1 1 year ago
Hey, thank you very much, thank you i now can use some scripts =)
But i have a question, do you know which sintax it understand?
I cant do complex calculations, can you? like {var1 / ((var2*var2)+1)} i just cant make three operations at once, any tip? Thx!
{1 + 1 + 1}cant, {1 +(2*3)}can, {(1+1)+(1+1)}cant
naskah 1 year ago
I tried nothing happened
ioncannonon 1 year ago
when i try to put a script in the stupid fucking game changes it back to its defults
can some one please help me?
TheJimcat 1 year ago
@TheJimcat you have to make sure it understands the order and to press enter/backspace hope it helps
300istilmig 1 year ago
how do you spawn a box on collide?
commandoJamesthe1st 1 year ago
what is the song?
pkaka1 1 year ago
@pkaka1 the phun song...
ky13harbor 1 year ago
(e)=-{Scene.addcircle({pos:=e.pos})}
Remember to just press enter once, on some computers, if the scipt that you have typed is auto spaceing it means that the console confirms that it understand the order. To add a box, just type box(not sqare) instead of circle
dacke93 1 year ago
how is algodoo better than phun?
H8sH8ers 1 year ago
@H8sH8ers yes, but you have to pay for algodoo.
MrTheBestVideoMaker 1 year ago
@H8sH8ers lasers and more advanced changes in material
300istilmig 1 year ago
can you please make a scripting tutorial just like this that explains how to make spawners? 5 stars btw GREAT video :)
MrPossable 1 year ago
I tried to build a simple timer by changing the cutom variable on collision. I made a heavy circle and glued a light box to it. Then I created a heavy box that was hit on every rotation. I used another box as display. From then on I followed your description but the text did not change.
EPR89 1 year ago
huh weird
rofflvideo 1 year ago
wat is the red xross tool thing for???
General638 1 year ago
COOL!
Evaidge970 1 year ago
Wait... The "Utility key"? Umm sorry what key is that on an English keyboard?
Th4Pwnz0r 1 year ago
@Th4Pwnz0r Tilde (~)
LPGhatguy 1 year ago
Comment removed
Th4Pwnz0r 1 year ago
i know what it means but my head just exploded
LesMuise 1 year ago
Can you change collisions using onCollide?
PivoTMarshaL 1 year ago
@PivoTMarshaL
yeah use this in on collide
e.this.collideSet = 1-7
1 is a and so on
300istilmig 1 year ago
@300istilmig well it is 1=a 2=b 4=c 8=d 16=e 32=f 64=g and then to make something have collideset abe it would be like 1+2+16=19 (haven´t tried using more than one collideset change scripts yet haven´t needed it :P )
300istilmig 1 year ago
Woaaaaaaah, THANKS ALOT!!!
i got just 5 words for the use i immediately thought of after this video: collision based size sorting machine.
I would recommend this to ANYONE who wanna make contraptions with phun, it just opens up a WHOLE lot of possibilities!
(damn YT for removing stars :\)
anyone who dislikes this should get a slap ^^.
megadudeley 1 year ago
how to make delay script?
laurynas101 1 year ago
my head hurts
mrtall9999 1 year ago
everytime i type in and exit script menu the script disappears
FlyingIcoworker 2 years ago
Great tutorial!
Helped my a lot
thank you paradigm
burdokzII 2 years ago
sweet! i made a machine that tells me how many seconds I wasted. It also has a restart button!
gam3raddict89 2 years ago
Thats awesome, I made a damage script with it, Instead of using +1 I used -1, Thanks for the tutorial.
mgkrox 2 years ago
nice tutorial but i would really like to learn some advanced scripting like cloning or spawning
tomek123kotek 2 years ago 19
@tomek123kotek That's what I was looking for too. That opens up so many opportunities for creations.
haircutbob2 4 months ago
please make more tutorials like this!
dzedajusr 2 years ago 16
wow now ive made some springz engine randomness
tomek123kotek 2 years ago
how to spawn stuff?
and make more of these vids..their awesome
benjamintg00 2 years ago
i this script adds instend of minusing i really dont understand why that is (could somebody make one that takeaway)
OnCollide: (e)=>{a = a - 0.050000001}
pivmaster563 2 years ago
how can you affect the object itself? if e.other. is the other boject what is itself?
stickfigure101 2 years ago
It's e.this.
abs1296 2 years ago
instead of writing e.other.color you write color yo affect the object itself
Ostemorder 2 years ago
@Ostemorder wtf man are you high.
making sense not you're
nightfoxx26 1 year ago
thanks you it realy help me
brayam12345 2 years ago
thanks to you i made a soccer game
pivotannihilator 2 years ago
Finally i understand scripting for real!!
thnx para!!!!
- Jallaboy
Jallatrekk 2 years ago
Can you help? I did what you did with the color and density but the density wont change
inahurry123 2 years ago
density wont change for me
inahurry123 2 years ago
press enter when finished typing the scripting in
SNOWBOARDER1SAM 2 years ago
Oh right XD, thanks! u rock
inahurry123 2 years ago
THIS IS AWESOME
cameronbrownrox 2 years ago
now. how do i make a counter??? each hit schold = 100 points
please tell me!!!
Dragonicafan 2 years ago
Replace +1 by +100.
Bleenderhead 2 years ago
thank you so much!
pivotfreak007 2 years ago
Would you plz teach me the cloning script???
johnendocruz3515 2 years ago
THANKS ALOT
abgtent 2 years ago
does {e.other.restitution = 0,1}
change restitution to 0,1?
Somethingcrappy 2 years ago
its seems not to be working...
gam3pur3 2 years ago
It works! Finally!
Rudyfourth 2 years ago 2
Comment removed
Rudyfourth 2 years ago
nice one
Kurhul 2 years ago
thank you so much for uploading this!
crytek5000 2 years ago
This information was super important to me! Thank you so much!
glitchuser4 2 years ago 2
Comment removed
glitchuser4 2 years ago
ive copyed every thing in you count colision script, but it no work, please explain why
tails2fan 2 years ago
still confuses the hell out of me...
deathfire234 2 years ago
Awesome, this helped me a lot. I've done programming before, its just thyme was tripping me out. This helped a lot.
aMammoth 2 years ago
you should make more scripting tuts about others that oncollide
zbrolyz 2 years ago
how do you change the bounciness (restitution) so that i can make the cool guns?
SamC080 2 years ago
well you click the object, go to material menu, click ON the number (in the restitution section, it probably says 0.500) hit backspace till its all gone and type in 10,000 or some other number thats REALLY high.
YuLOOKINatMElikeDAT 2 years ago
Dude.............................i love you
niffirg51 2 years ago 2
And of course our awesome realistic physics simulation turns into a scripting paradise for coding geeks...*sigh*
Jrv2005 2 years ago
Yeah, not enough people are actually doing mechanical things anymore.
aMammoth 2 years ago 3
mechanical things are way more fun to build anyways, i dont see why people spend so much time scripting (sure some things you cant do without scripting but who cares)
deathfire234 2 years ago
make more of these...plz
benjamintg00 2 years ago
EPIC
19Cameron96 2 years ago
how do i make an object spawner?
stickfigure101 2 years ago
this spawn water when something hits it: "onCollide=(e)=>{scene.addWater({vecs=[e.pos]})}" (without the "")
YuLOOKINatMElikeDAT 2 years ago 3
no i mean objects
stickfigure101 2 years ago
sorry dude, i used to have that but it got erased from notepad, youll have to find someone else to give you that script.
YuLOOKINatMElikeDAT 2 years ago
how do i make it so only a certain color can collide with an object that changes the variable 1?
example:
a bullet of a certain color can only hit target A no other color can give points oncollide
thelonelysnail 2 years ago
im pretty sure thats not possible right now. ve never senany scripting tat uses colors for colliding, but itt seems possible theremigh be one in the future.
YuLOOKINatMElikeDAT 2 years ago
para.. this is epic :D
great ^^
Tank23333 2 years ago
finally i can start off scripting :)
lofse 2 years ago
Pretty cool paradigm very clear and understandable! you continue to impress me no matter what. I wish i knew what you do. Continue to do what you always :D
moe1243 2 years ago 2
i have to say thanks now if you can teach me how to make a spawner even more thx
if you want to
zeratul575 2 years ago 3
no.... you can get phun free
radrox895 2 years ago
this is really helpful!
is algodoo released yet, because on the website it said sometime in may. and i want to know how much it costs just in case i wantto get it.
YuLOOKINatMElikeDAT 2 years ago 2
Good tutorial! :)
tatt61880 2 years ago
great video!
ELRingoFa 2 years ago