View Issue Details

IDProjectCategoryView StatusLast Update
0020027Runner[All Projects] FunctionsPublic2017-08-04 17:26
ReporterBrandon MurphyAssigned ToFritz 
PriorityHighSeverityC - GeneralReproducibility100%
Status ClosedResolutionFixed 
PlatformWindowsOSWindows 8OS Version
Product Version 
Target VersionFixed in 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 Found In1.4.1690
2.x Runtime Found In
2.x Runtime Verified In

Activities

Stewart Bishop

2016-01-11 15:30

Adminstrator  

BugReport.gmz (19,669 bytes)

Fritz

2017-03-28 17:25

Developer   ~0052522

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