0
\$\begingroup\$

I am writing a touch enabled game in MonoGame (XNA-like API) and would like to display a an arrow 'cursor' as user is making a drag gesture from point A to point B. I am not sure on how to correctly approach this problem. It seems that its best to just draw a sprite from A to B and scale it as required. This would however mean it gets stretched as user continues dragging gesture in one direction. Or maybe its better to dynamically render the arrow so it looks better?

\$\endgroup\$
1
  • \$\begingroup\$ it really depends on what the user trying to achieve with the gesture. \$\endgroup\$
    – Ken
    Oct 21, 2012 at 9:41

1 Answer 1

3
\$\begingroup\$

You may split the arrow into a shaft and a head. Then you just enlarge the shaft and add the head later on. This will prevent your arrowhead from being stretched and if you pick a shaft image which will not show any signs of strechting (i.e. a rectangle) the whole process will be hidden.

\$\endgroup\$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .