Skip to content

draw_arrow

drewmccluskey edited this page Jan 23, 2019 · 2 revisions

draw_arrow

Draw arrow with specified options

Syntax:

draw_arrow(p1, p2, size)
Argument Description
Vector2 p1 First position
Vector2 p2 Second position
int size size of arrow

Returns: void

Description:

This function will draw basic arrow to the game.

Example:

draw_arrow(Position, new Vector2(Position.X,Position.Y+200), 20);

Above code will draw arrow with a downward direction with a 200px length and size of 20px.

Back to Shapes

Clone this wiki locally