New method not working

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

New method not working

Postby Rideg » Thu Apr 29, 2010 7:06 am

Hello I don't know if this is an 1.7 bug but anyways, when I make a hinge spawner I gave it and the other colliding object two different GeomIDs. I tried it and it worked. So I saved the scene but when I load it again The GeomIDs are gone. How come??
Image
make sure to check out my work.
User avatar
Rideg
 
Posts: 948
Joined: Tue Dec 15, 2009 5:17 pm
Location: Östersund, Sweden

Re: New method not working

Postby Mystery » Thu Apr 29, 2010 9:01 am

Post your codes.
User avatar
Mystery
 
Posts: 2802
Joined: Thu Sep 03, 2009 1:16 pm
Location: Southern Australia

Re: New method not working

Postby Mr_Stabby » Thu Apr 29, 2010 9:26 am

thats coz the geomID retrieved by "new method" is stored just like any custom var and is lost upon reload, you have to build it so that it uses the method every time you load the scene
Mr_Stabby
 
Posts: 155
Joined: Wed Dec 16, 2009 12:16 am

Re: New method not working

Postby Mystery » Thu Apr 29, 2010 9:49 am

Fyi it is Method-X, not "New Method" :lol:
User avatar
Mystery
 
Posts: 2802
Joined: Thu Sep 03, 2009 1:16 pm
Location: Southern Australia

Re: New method not working

Postby Chronos » Thu Apr 29, 2010 9:52 am

Mystery, stop calling it that shitty name. :| You're the only one who calls it that. By majority, it's called the New Method.
TheWinkits wrote:They both looks of cuking amazing
User avatar
Chronos
[Most Active Member 2010]
 
Posts: 4457
Joined: Mon Aug 31, 2009 6:00 pm
Location: Californania

Re: New method not working

Postby Rideg » Thu Apr 29, 2010 5:13 pm

Is there anyway to make it stick when I load the scene? ( I'm typing it in existing objects )
Image
make sure to check out my work.
User avatar
Rideg
 
Posts: 948
Joined: Tue Dec 15, 2009 5:17 pm
Location: Östersund, Sweden

Re: New method not working

Postby Chronos » Thu Apr 29, 2010 5:56 pm

You could put the code to start it into an objects oncollide, make the object hit something before anything else happens, and then make it delete itself. If that doesn't work because objects that need the New Method are already created, you could always spawn the scene after. :D
TheWinkits wrote:They both looks of cuking amazing
User avatar
Chronos
[Most Active Member 2010]
 
Posts: 4457
Joined: Mon Aug 31, 2009 6:00 pm
Location: Californania

Re: New method not working

Postby Rideg » Thu Apr 29, 2010 6:42 pm

wut..?
Image
make sure to check out my work.
User avatar
Rideg
 
Posts: 948
Joined: Tue Dec 15, 2009 5:17 pm
Location: Östersund, Sweden

Re: New method not working

Postby Mr_Stabby » Thu Apr 29, 2010 10:54 pm

too tricky solution since objects cant add custom vars to themselves (would have to bounce a script back and forward between the object and its collider or spawn something) and no there is no way to make it stick especially since its dynamic and gets changed upon instancing. the only solution tbh is just to control the scene, i mean all it takes is a hit from a laser or whatever.. every object starts from somewhere - thats where you put the script
Mr_Stabby
 
Posts: 155
Joined: Wed Dec 16, 2009 12:16 am

Re: New method not working

Postby Rideg » Thu Apr 29, 2010 11:56 pm

I don't know what you're trying to say.
Image
make sure to check out my work.
User avatar
Rideg
 
Posts: 948
Joined: Tue Dec 15, 2009 5:17 pm
Location: Östersund, Sweden


Return to Thyme scripting

Who is online

Users browsing this forum: No registered users and 0 guests