Working on a top down game?  Need to show an arc of some kind?  Maybe it's to show the basic trajectory of a tossed item?  Maybe it's a line indicating one unit attacking another?  Or maybe it's just a cool spell effect!

Top Down Dynamic Arc is for you!  It's not the fanciest arc you can imagine, but it does a lot, and is very easy to use.  It's a single function call:

draw_arc(startX, startY, endX, endY, 
         color, texture, 
         width, height, segmentCount);

That's it!  You'll get an awesome arc displayed in your game.
There are a couple optional arguments as well "startZ" and "endZ" can be defined after segment count.  This will lift the start or end point of the arc "off the ground".  This is good if the arc is pointing from one elevation to another; like if you need the arc to come out of a character's head and point to the ground.

Background art for demo project created by the awesome @space_bake

Download

Download NowName your own price

Click download now to get access to the following files:

draw_arc.gml 1 kB
DrawDynamicArcExample.yyz 110 kB

Comments

Log in with itch.io to leave a comment.

Perfect and beautiful and so much better than what I was using before <3

(+1)

I'm glad you're active again too!!!!

(+1)

Im so happy to see your active again ;D Your stuff is brilliant.

(+1)

This is great, thank you!

(+1)

Thanks