I’m working on a doodling tool (for the mobile version of
We released a game recently in which we used polylines for drawing. We did get into a bug in which it stopped appending lines also. To be honest I think appending lines wouldn’t work at all.
I noticed something though that when I drew a new line, the appends I did before to the other one would show up!
I tried doing something a bit strange that ended up working that is: Every time I append a new line segment, I also draw a new line. What is this second line for? absolutely nothing, only to trigger the drawing of the first one appends. So I even draw it off screen. I also remove it before creating a new one.
It looks something like:
line1:append(123,123)
line2:removeSelf()
line2 = newLine(...)
With this fix I am able to draw an apparently indefinitely big polyline. I was able to fill an entire iPad screen with a 2 or 3 pixel wide line. Lines were drawn every 50 ms or less. So it was made of a few hundred lines at least. No slowdowns by the way. [import]uid: 61899 topic_id: 23418 reply_id: 93953[/import]
Thanks for the suggestion. I tried your suggestion and it works sometimes but not often enough to be a good workaround. [import]uid: 133481 topic_id: 23418 reply_id: 93980[/import]
Well, sorry to hear that. For me it fixed everything.
I did report that bug at the time but apparently it had no fix.
Do a report yourself, as they’ll assign a higher priority to bugs reported multiple times. [import]uid: 61899 topic_id: 23418 reply_id: 94133[/import]