View Single Post
Runtime Object Creation
Old
arty-fishL
Senior Member
 
arty-fishL's Avatar
 
Status: Offline
Posts: 1,878
Join Date: Mar 2008
Location: In the corner of your eye
Talking Runtime Object Creation - 05-04-2012, 09:21 AM

Some of you may remember my Breeding Like Rabbits thread.
I've looked into it a bit more, and I've come up with a new way.
Its for real this time!

Basically this allows you to create new objects, while the world is running!
This time around Alice clears up all of the extra objects you created when the world ends. They are also a lot more accessible and can be freely named.

View the example world. I will make this into a usable thing later on, but for now it is a tech demo.
First it will create 500 new spheres on the spot,
then it will continue creating spheres forever and move them away from each other, to show that these objects are usable.

You can move the spheres with the mouse and move the camera with the arrow keys.

WARNING - Alice has to delete all of these objects when the world stops, so if you create far too many, then Alice might hang for a long time before they are all cleared up.
Attached Files
File Type: a2w object creation.a2w (403.9 KB, 47 views)


█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░█
█░░▓░░░░░░░▓░░░░░░░░░░░▓▓░░▓░░░░░░▓░░░▓░░░░█
█░▓░▓░▓▓▓░▓▓▓░▓░▓░░░░░░▓▒▒░░▒░░▓▓░▓▓▓░▓▒░░░█
█░▓▓▓▒▓▒▒▒░▓▒▒▓▓▓▒▓▓▓░▓▓▓░░▓░░░▓▒▒▓▒▓▒▓▒░░░█
█░▓▒▓▒▓▒░░░▓▓░░▒▓▒░▒▒▒░▓▒▒░▓▓░▓▓▒░▓▒▓▒▓▒░░░█
█░▓▒▓▒░▒░░░░▒▒▓▓▓▒░░░░▓▓▒░░░▒▒░▒▒░░▒░▒▓▓▓░░█
█░░▒░▒░░░░░░░░░▒▒▒░░░░░▒▒░░░░░░░░░░░░░░▒▒▒░█
█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░█

I have mostly moved on from Alice, but may still respond to messages if important [¬º-°]¬

Last edited by arty-fishL; 05-04-2012 at 09:26 AM.
   
Reply With Quote