saving and opening phunlet/scene

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

saving and opening phunlet/scene

Postby golodupcew » Sun Feb 12, 2012 5:09 pm

1.How to save scene automatically on collide.
2.How to load scene/phunlet on this same position as saved not at mouse pos.?? :?:
User avatar
golodupcew
 
Posts: 10
Joined: Sun Feb 12, 2012 4:19 pm
Location: Poland

Re: saving and opening phunlet/scene

Postby TC42 » Mon Feb 13, 2012 4:45 am

1.) Not sure if possible--check thyme variables master list.
2.) Scene.loadscene() will load a scene, and there is probably something similar for phunlets. You can't load a phunlet at a non-mouse position, but there are ways around that, ie., spawning the object(s) themselves rather than spawning a phunlet.
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: saving and opening phunlet/scene

Postby Battle Field » Thu Feb 16, 2012 8:02 pm

To load a scene type
Code: Select all
Scene.open("type the name of scene here")
or
Code: Select all
scene.loadscene("type the name of scene here")

To make a new scene type
Code: Select all
Scene.new

And i tried using
Code: Select all
Scene.SaveAs("scene1")

but is says "Scene.SaveAs has been disabled!"
To load a phunlet type
Code: Select all
Scene.importPhunlet("name of phunlet")
Battle Field
 
Posts: 1
Joined: Sun Dec 11, 2011 1:57 am


Return to Thyme scripting

Who is online

Users browsing this forum: No registered users and 6 guests