[Added in 1.6] Little Thing about RemoveObject

All about the core api and animation, input, sound, effect, collision and physics engines.
You can also post here your feature requests.

Moderator: Brume Dev Team

[Added in 1.6] Little Thing about RemoveObject

Postby MoDDiB on Sun Apr 01, 2007 10:26 am

The removeObject method of the brume object remove the object at the moment of the call.
I don't think it's a good idea because an object can't be removed itself in its move event.
Won't it be better if the removeObject will just add this object to a remove list and at the end of the MoveScene just remove all the objects of this list ?
MoDDiB
Brume user
 
Posts: 83
Joined: Mon Nov 20, 2006 5:05 pm

Postby rubbish on Sun Apr 01, 2007 1:37 pm

:? I haven't understand the removeobject method yet....
And how to use the removeObject method in the MoveScene??
rubbish
Brume user
 
Posts: 183
Joined: Fri Nov 03, 2006 5:05 am

Postby Silmaryls on Mon Apr 02, 2007 9:20 pm

Yes MoDDiB, you're right !

The method is not optimal. I will try to modify it for next release.

Rubbish : the RemoveObject method is just there to remove objects from the engine. If you don't need an object any more then you call the method.
User avatar
Silmaryls
Brume Team Member
 
Posts: 340
Joined: Tue Feb 21, 2006 10:09 pm
Location: Paris - France


Return to Technical discussion

Who is online

Users browsing this forum: No registered users and 1 guest

cron