Mantis

View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0020027Runner[All Projects] FunctionsPublic2016-01-11 15:292017-08-04 17:26
ReporterBrandon Murphy 
Assigned ToFritz 
PriorityHighSeverityC - GeneralReproducibility100%
StatusClosedResolutionFixed 
PlatformWindowsOSWindows 8OS Version
Summary0020027: Functions: sprite_collision_mask(bboxmode=0) not redefining bbox_left, bbox_top, ...etc
DescriptionThe function "sprite_collision_mask" given bboxmode=0 (automatic) and kind=1 (bounding box) does not update the bbox bounds.

I have put together a small sample project detailing the issue
 
In this project I have a sprite that is 100x100 with all of that being transparency aside from a small portion in the middle.

I then do the following
var mask_sprite = sprite_duplicate(sprite_index);
sprite_collision_mask (mask_sprite, false, 0, 0, 0, 0, 0, 1, 0);

when I query
sprite_get_bbox_top (mask_sprite);

It returns 0 when I would expect it to return 41. bottom, left, and right bounds show the same symptom. SAMPLE URL: http://gmc.yoyogames.com/index.php?showtopic=686220 [^]
Steps To Reproduce1) Run the project to see the above behaviour
Additional InformationOriginal helpdesk ticket: http://help.yoyogames.com/tickets/98939 [^]
1.4 Version1.4.1690
2.x Runtime Version
2.x Runtime Version Verified In
Attached Files? file icon BugReport.gmz [^] (19,669 bytes) 2016-01-11 15:30

- Relationships

-  Notes
(0052522)
Fritz (Developer)
2017-03-28 17:25

This was fixed some time ago in C++ runner & I've just put the fix in for the html5 runner too.


Copyright © 2000 - 2017 MantisBT Team
Powered by Mantis Bugtracker