one-time teleportation

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

one-time teleportation

Postby sunnyshi2005 » Wed Jun 14, 2017 3:48 am

How can I make a one-time portal using script?
And btw, how can I make a portal which only teleports a certain kind of things(like the things whose color aren't magenta)
sunnyshi2005
 
Posts: 7
Joined: Wed Jun 14, 2017 3:33 am

Re: one-time teleportation

Postby Kilinich » Wed Jun 14, 2017 12:14 pm

Just change pos on collide/laser hit?
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

Re: one-time teleportation

Postby sunnyshi2005 » Thu Jun 15, 2017 5:46 am

yup
sunnyshi2005
 
Posts: 7
Joined: Wed Jun 14, 2017 3:33 am

Re: one-time teleportation

Postby Kilinich » Thu Jun 15, 2017 10:00 am

sunnyshi2005 wrote:yup

Code: Select all
onCollide = (e) => {pos= newpos}
? :thumbup:
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

Re: one-time teleportation

Postby sunnyshi2005 » Mon Jun 19, 2017 3:39 am

but how can i make it one-time?
sunnyshi2005
 
Posts: 7
Joined: Wed Jun 14, 2017 3:33 am


Return to Thyme scripting

Who is online

Users browsing this forum: No registered users and 1 guest