scripting img change

If you have problems installing or running Algodoo, have found a bug or need in-game help - this is it!

scripting img change

Postby FuzzyLogicBrain » Tue Feb 15, 2011 2:28 pm

how do i script an image on the onLaserHit, or the onCollide menu? :?:
Image
these guys are awesome. <- full stop
User avatar
FuzzyLogicBrain
 
Posts: 315
Joined: Mon Jan 31, 2011 7:48 pm
Location: when online, on the computer. when not, probably on it anyways. ;D lulz

Re: scripting img change

Postby TC42 » Tue Feb 15, 2011 11:11 pm

There is a
Code: Select all
texture= "-insert file name here-"

and a
Code: Select all
texture matrix = [-bunch of numbers here-]


So you should be able to write onlaserhit
Code: Select all
(e)=>{e.geom.texture="gold"}
to turn an object's texture to gold on a laser hit
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: scripting img change

Postby FuzzyLogicBrain » Wed Feb 16, 2011 12:06 am

thanks, gotta go to bed, so ill try it out tomorrow
20 minutes later : ahh there we are, on the iphone
Image
these guys are awesome. <- full stop
User avatar
FuzzyLogicBrain
 
Posts: 315
Joined: Mon Jan 31, 2011 7:48 pm
Location: when online, on the computer. when not, probably on it anyways. ;D lulz


Return to Help / Bug reports

Who is online

Users browsing this forum: No registered users and 3 guests