![]() _num = _change(_num, e.other._num - 1, _num(e.other. If a marble of the same color reached before this marble.Į.other.pos = (scene.entitybyid(_l(e.other._num - 1))).pos //Teleport the marble to the marble holder This video is about how to make a marble race using Algodoo Algodoo is perfect for homeschooling because it can teach you about physics.Click 'see more' for. _l = _change(_l, e.other._num - 1, _cir) //Change the value of _l, so that when other marbles of the color reached, we can get the entity of the marble holder asapĮ.other.pos = (scene.entitybyid(_cir)).pos //Teleport the marble to the marble holder ![]() _cir := eval("scene.my._circles" + (_n)) //Get the entityid of the marble holder we want _n = string.length(_islist) //Get the number of the marble holder we want to teleport the marble to _islist = _islist ++ //ADD THE MARBLE's NUM TO ISLIST IF THE COLOR REACHES THE END FOR THE FIRST TIME. ![]() Set the marble holders's onspawn to below: (e)=>) Give all marble holders a variable _num, and set the value according to the number of it, as shown below. The value of _num is determined by the color of the marble. :DĮach marble have a variable _num, below. There is also a short explanation at the comments. Later during the scripting part of the tutorial, if you don't understand what are the lists are for later, check the comments.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |