Importing phunlet by clicking on an object or similar?

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

Importing phunlet by clicking on an object or similar?

Postby Ivan » Fri Oct 09, 2009 8:30 pm

Is it possible to import a phunlet by clicking or doing a similar action on an object? If it is, how?
Image
User avatar
Ivan
 
Posts: 201
Joined: Tue Oct 06, 2009 2:01 pm
Location: Croatia

Re: Importing phunlet by clicking on an object or similar?

Postby niffirg1 » Fri Oct 09, 2009 8:47 pm

Yes here is what i think you are looking for
Code: Select all
{(app.mousepos(0) >= (Position here) && app.mousepos(0) <= (Position here)) && (app.mousepos(1) >= (Position Here) && app.mousepos(1) <= (Position Here)} ? {scene.importphunlet "File Name Here"} :{}
User avatar
niffirg1
 
Posts: 376
Joined: Mon Aug 31, 2009 10:31 pm
Location: The Great American South!


Return to Thyme scripting

Who is online

Users browsing this forum: No registered users and 3 guests

cron