![]() ![]() _num = _change(_num, e.other._num - 1, _num(e.other. Move the tutorial window to the upper right corner in Algodoo. Take time stepping through the guide and answer the given questions. In this lesson you will learn how to work with water and density inside Algodoo. ![]() 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 Start by opening the Float and Sink lesson tutorial. _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 This series will teach you thoroughly about making a marble race. _islist = _islist ++ //ADD THE MARBLE's NUM TO ISLIST I made a new tutorial series for marble racing. 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. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |