New (Fast) Line Drawing Code
HappyKat78
Member, BASIC Posts: 173
Hi All,
I'm posting this on behalf of EricZingeler who shared this with me. Below is a link to the best line drawing code I've seen yet. It uses the new loop behaviors and is pretty fast. I've set it so that there are segments, but you can make it a solid line (check how in the notes).
There is a bug though, I've noticed the first segment doesn't rotate properly. If anyone can improve on this or fix this bug then please share.
Here is the link:
http://www.mediafire.com/download/sgubfybawslnjlu/Draw-object_v2.0.zip
Regards,
HK
Comments
Great to hear that Eric is still working with GameSalad! Thanks for sharing!
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
@HappyKat78 were you able to fix the bug in this that you pointed out? thanks so much
thanks for sharing