Texture traansfer

About advanced scenes, and the Thyme scripting language used in Algodoo.

Texture traansfer

Postby CrystalCube » Sun Nov 08, 2009 5:57 am

How do I move a texture to another object, or through an object to another object?
I'm not CrystalCube anymore.
User avatar
CrystalCube
 
Posts: 35
Joined: Sat Sep 26, 2009 11:48 pm
Location: Poulsbo WA

Re: Texture traansfer

Postby standardtoaster » Sun Nov 08, 2009 6:01 am

Code: Select all
e.this.texture = e.other.texture
User avatar
standardtoaster
 
Posts: 606
Joined: Mon Aug 31, 2009 7:57 pm

Re: Texture traansfer

Postby algadoodle123 » Mon Nov 09, 2009 5:49 pm

if you want the original to change too, then you can use this code ;)

Code: Select all
(e)=>{e.other.texture = e.this.texture;e.this.texture=("")}
**/\ /\
>( ' ; ' )<***<---------- cat
*((")("))
i'm right-side-up
uʍop-ǝpısdn ɯ,ı
http://www.sherv.net/flip.html
User avatar
algadoodle123
 
Posts: 66
Joined: Tue Sep 08, 2009 6:04 pm


Return to Thyme scripting

Who is online

Users browsing this forum: No registered users and 11 guests