View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0016073||Runner||[All Projects] Functions||Public||2014-10-03 10:33||2016-11-29 17:26|
|Reporter||grix||Assigned To||Mike Rennie|
|Priority||High||Severity||C - General||Reproducibility||100%|
|Target Version||Fixed in Version|
|Summary||0016073: Functions: Imprecise draw_arrow()|
|Description||I have an object that draws an arrow based on some variables, this is the code:|
When the arrow faces in some directions, it draws fine. But when it faces some other directions, the arrowhead is not exactly where it should be. It is shifted one or two pixels off the line, to the point that that you can actually see that the arrow has two ends, one where the arrowhead ends and one where the line ends. I uploaded a screenshot here: http://i.imgur.com/0jn11fj.png
|Additional Information||Original helpdesk ticket: http://help.yoyogames.com/tickets/72900|
|1.4 Found In||1.4.1451|
|2.x Runtime Found In|
|2.x Runtime Verified In|
drawArrow.gmz (904,085 bytes)
|I think there is a problem with drawing lines in general. I have noticed similar problems, when for example trying to draw a circle at the tip of a line, or drawing a line by the edge of a triangle etc.|
These problems with one-pixels offsets are ancient, by the way. It's long overdue that someone looks at them and fixes all of them once and for all.
For example, drawing a rectangle gives a different result than drawing a primitive using the same numbers for the vertices. I think these should be the same.
Any progress on this?
It might be worth mentioning that this bug doesn't seem to be present in HTML5 exports, so it is platform dependent.