Mantis

View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0016073Runner[All Projects] FunctionsPublic2014-10-03 10:332016-11-29 17:26
Reportergrix 
Assigned ToMike Rennie 
PriorityHighSeverityC - GeneralReproducibility100%
StatusClosedResolutionFixed 
PlatformWindowsOS OS Version
Summary0016073: Functions: Imprecise draw_arrow()
DescriptionI have an object that draws an arrow based on some variables, this is the code:

draw_arrow(x+90-controller.anixtrans/$ffff*55,
y-6-controller.aniytrans/$ffff*55,
x+90+controller.anixtrans/$ffff*55,
y-6+controller.aniytrans/$ffff*55,
12);

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 InformationOriginal helpdesk ticket: http://help.yoyogames.com/tickets/72900 [^]
1.4 Version1.4.1451
Runtime Version
Runtime Version Verified In
Attached Files? file icon drawArrow.gmz [^] (904,085 bytes) 2014-10-03 10:34

- Relationships

-  Notes
(0032824)
grix (Reporter)
2014-10-04 20:51

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.
(0033111)
Erik Leppen (Updater)
2014-10-10 16:15

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.
(0035163)
grix (Reporter)
2015-01-12 16:59

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.


Copyright © 2000 - 2017 MantisBT Team
Powered by Mantis Bugtracker