.delete thyme function

Suggest changes and improvements to Algodoo.

.delete thyme function

Postby Kilinich » Mon Dec 06, 2010 12:07 am

Add .delete thyme function to all entities.
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: .delete thyme function

Postby ducky21 » Mon Dec 06, 2010 3:36 am

What would this do? delete the object it applys to?
User avatar
ducky21
 
Posts: 301
Joined: Tue Aug 03, 2010 8:58 pm

Re: .delete thyme function

Postby Kilinich » Mon Dec 06, 2010 8:52 am

ducky21 wrote:What would this do? delete the object it applys to?

Yes. Useful for removing springs, hinges, fixates and geoms from scripts.
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: .delete thyme function

Postby Rideg » Mon Dec 06, 2010 12:58 pm

How would you go around deleting entities that are not 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: .delete thyme function

Postby ducky21 » Mon Dec 06, 2010 5:50 pm

Once the thing raydeg said have been figured out; Support
User avatar
ducky21
 
Posts: 301
Joined: Tue Aug 03, 2010 8:58 pm

Re: .delete thyme function

Postby Kilinich » Mon Dec 06, 2010 8:30 pm

Rideg wrote:How would you go around deleting entities that are not objects?

You mean not geoms? Well, I've see few ways, child objects for example or scripts with code execution for some parameters like color.
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: .delete thyme function

Postby Rideg » Mon Dec 06, 2010 8:34 pm

Kilinich wrote:
Rideg wrote:How would you go around deleting entities that are not objects?

You mean not geoms? Well, I've see few ways, child objects for example or scripts with code execution for some parameters like color.

Like circle = scene.addCircle... and then when you want to get rid of it something you execute a code that would look like this: circle.exist = true; correct me if I'm waaay out of bounds here :)
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: .delete thyme function

Postby Rrobba » Mon Dec 06, 2010 8:52 pm

Support, could be particularly useful for an idea for a scene I've been thinking about for a while now. Can't seem to come up with an efficient way of making it though.
Image
I don't suffer from insanity. I enjoy every minute of it.
User avatar
Rrobba
[Best Sig 2010]
 
Posts: 1480
Joined: Mon Aug 31, 2009 6:01 pm
Location: Gibraltar


Return to Suggestions

Who is online

Users browsing this forum: No registered users and 4 guests