![]() |
foo[0].add(stuff) and recursive nodes in showpoly
Firstly,
PHP Code:
foo = {{0},{0}}; foo = new[2]; and foo = {0,0}; just to be sure. All of the above work when the adds are done without using functions, so it is clearly something peculiar about the fact that this is done in the function. Secondly, showpoly(0,{playerx,playery,playerx+5,playery,play erx,playery}); Will not do anything, while showpoly(0,{playerx,playery,playerx+5,playery}); works fine, as it should. Now, you may be wondering why I have an extra "playerx,playery" in the first, I shall explain: In order to show a segmented line via showpoly with but one showpoly object (the usefulness of this practice should be obvious) one must retrace part of the path in the showpoly. |
Showpoly with 2 points will draw a line, with >=3 points it will draw a polygon, which is not visible if it doesn't have a volume.
The sub-array update can be a problem yes, need to fix that. |
| All times are GMT +2. The time now is 06:57 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.