1.8.5 child objects

If you have problems installing or running Algodoo, have found a bug or need in-game help - this is it!

1.8.5 child objects

Postby Kilinich » Sat Dec 18, 2010 1:34 pm

If dynamically created objects was assigned to scene.my. variable it will not be saved properly.

For example
scene.my.box1 := scene.addBox({});
scene.my.box1.color = [0,0,0,1]

Will work fine, but after save-load any scene.my.box1. methods will fail.

More that that, if I create too many such objects (like 1000), algodoo eve can't opes scene file after save (with error like ";" missed).
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: 1.8.5 child objects

Postby emilk » Tue Aug 23, 2011 11:13 am

Using the return value of Scene.add* is a dangerous buisness. Good luck!
Emil Ernerfeldt, lead developer
emilk
 
Posts: 616
Joined: Mon Aug 31, 2009 11:01 am
Location: Umeå, Sweden

Re: 1.8.5 child objects

Postby Kilinich » Tue Aug 23, 2011 12:45 pm

Actually, I've use it a whole lot and it's work fine. :thumbup:
The only problem is saving it and store in lists.
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 Help / Bug reports

Who is online

Users browsing this forum: No registered users and 4 guests