Deprecated: Function set_magic_quotes_runtime() is deprecated in /usr/www/users/phun/forum/include/common.php on line 58

Warning: Cannot modify header information - headers already sent by (output started at /usr/www/users/phun/forum/include/common.php:58) in /usr/www/users/phun/forum/header.php on line 31

Warning: Cannot modify header information - headers already sent by (output started at /usr/www/users/phun/forum/include/common.php:58) in /usr/www/users/phun/forum/header.php on line 32

Warning: Cannot modify header information - headers already sent by (output started at /usr/www/users/phun/forum/include/common.php:58) in /usr/www/users/phun/forum/header.php on line 33

Warning: Cannot modify header information - headers already sent by (output started at /usr/www/users/phun/forum/include/common.php:58) in /usr/www/users/phun/forum/header.php on line 34
Phun - 2D physics sandbox - forum / Basic Scripting Vid

Phun - 2D physics sandbox - forum

Official Forum

You are not logged in.

#1 2009-06-04 12:27:24

Paradigm 29
Spoonman!
From: Houston, Texas
Registered: 2008-07-22
Posts: 1565

Basic Scripting Vid

This Video just explains how to use oncollide scripting and how to set custom variables.

Last edited by Paradigm 29 (2009-06-14 14:24:40)


http://i42.tinypic.com/24y8sax.png

Offline

 

#2 2009-06-04 17:59:23

RA2lover
Post Addict
From: Brazil
Registered: 2009-02-08
Posts: 681

Re: Basic Scripting Vid

wait! video start scene looks so professionally done... im doubting about it^^

Offline

 

#3 2009-06-12 00:48:42

niffirg1
Very Active Poster
From: Somewhere
Registered: 2009-03-07
Posts: 370
Website

Re: Basic Scripting Vid

This is really great stuff many i love this you should make another one i mean only if you want but with some more complex stuff like using the mouse to control hinges and stuff like that. But only if you want and thanks again


PM me for any questions in Phun I will Most Likely Answer Back
http://i540.photobucket.com/albums/gg327/ioncann0ns/ubd9085-1.png
PM me for an idea you want made and just to lazy to make it

Offline

 

#4 2009-06-25 11:45:12

Sniperkasa
Respected Member
From: The bottom of a lake
Registered: 2009-05-29
Posts: 127

Re: Basic Scripting Vid

for some reason the video does'nt start :l


If you have a question, have a dollar and call somebody that cares.
http://img385.imageshack.us/img385/1441/monsterga3.gif
Press Image to see all of my creations

Offline

 

#5 2009-06-25 14:22:39

Physicsguy
Newtonator
From: A Life Sustainable Atmosphere
Registered: 2008-10-24
Posts: 914
Website

Re: Basic Scripting Vid

Wow.  I'll put this in the GTD!

One thing you could add though is a simple list of examples of where this's been used before, so people can see how amazing oncollide is!


http://i43.tinypic.com/zlp8b9.jpg << Magic Sig!    Click below to go to PGCode, my sub-site dedicated to all code!
http://tinyurl.com/ms5k47http://i26.tinypic.com/s6nfv4.jpg
^Click to level up my license!^

Offline

 

#6 2009-07-06 05:39:33

ianno
New member
Registered: 2009-07-05
Posts: 2

Re: Basic Scripting Vid

how can i decrease the variable??

Offline

 

#7 2009-07-06 06:47:54

Torpedo
Respected Member
Registered: 2009-04-07
Posts: 103

Re: Basic Scripting Vid

scene.my.variable1=scene.my.variable1-1

i haven't even done this type of script before but its fairly obvious!


http://i11.photobucket.com/albums/a180/manmuppet/PHUNLANDSIG.jpg

Offline

 

#8 2009-07-09 00:26:27

niffirg1
Very Active Poster
From: Somewhere
Registered: 2009-03-07
Posts: 370
Website

Re: Basic Scripting Vid

Torpedo is Right


PM me for any questions in Phun I will Most Likely Answer Back
http://i540.photobucket.com/albums/gg327/ioncann0ns/ubd9085-1.png
PM me for an idea you want made and just to lazy to make it

Offline

 

#9 2009-07-19 02:37:10

gaxxag
Member
Registered: 2009-07-14
Posts: 14

Re: Basic Scripting Vid

Can someone give a quick example of how to use an 'if' statement here? If I wanted to use scene.my.variableX as HP, for example, how would I kill an object which reached 0 HP?

Offline

 

#10 2009-07-19 02:45:38

Paradigm 29
Spoonman!
From: Houston, Texas
Registered: 2008-07-22
Posts: 1565

Re: Basic Scripting Vid

{scene.my.HP==0}?{Object gets killed}:{}


http://i42.tinypic.com/24y8sax.png

Offline

 

#11 2009-08-11 14:15:24

Endre!
Seasoned Member
From: Bergen, Norway
Registered: 2009-07-28
Posts: 80
Website

Re: Basic Scripting Vid

It helped me ALOT! Thank you thankyou!


The unofficial chat for the Phun community
I'm probably in the Algodoo forums smile

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson

Phun and Phunland.com is copyright of Algoryx