Command to clone an object

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

Command to clone an object

Postby leroidangleterre » Wed Aug 20, 2014 1:59 pm

Hi everyone,

I would like to know how I could clone an object with a script; for example, I would have a box glued to the background, and any other object that would hit that box would immediately be duplicated.

Thanks for your help!
leroidangleterre
 
Posts: 12
Joined: Fri Sep 06, 2013 5:27 pm

Re: Command to clone an object

Postby Kilinich » Fri Aug 22, 2014 10:03 am

scene.cloneEntityTo(entity, pos)
Dream of Algodoo as game development engine...
User avatar
Kilinich
[Best bug reporter 2010]
 
Posts: 2098
Joined: Mon Aug 31, 2009 8:27 pm
Location: South Russia


Return to Thyme scripting

Who is online

Users browsing this forum: No registered users and 20 guests