View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0026251RunnerFunctionsPublic2017-04-19 14:452017-08-04 14:04
ReporterStewart Bishop 
Assigned ToMike Dailly 
PriorityLowSeverityC - GeneralReproducibility100%
PlatformOSOS Version
Summary0026251: Functions: sprite_replace does not work on HTML5
DescriptionSample project replaces a sprite from sprite1 to sprite2.

TESTED AND WORKING ON: windows, android, uwp
Steps To Reproduce1) Run sample project on Windows to see expected output
2) Run project on HTML5
3) See that where it should have replaced the sprite it removed the sprite
1.4 Version1.99.533
2.x Runtime Version2.0.6.68
2.x Runtime Version Verified In9.9.1.668
Attached Files? file icon spritereplacebug.gmz [^] (269,523 bytes) 2017-04-19 14:45
? file icon spritereplacebuggms2.yyz [^] (46,503 bytes) 2017-04-19 14:45

- Relationships

-  Notes
Mike Dailly (Manager)
2017-04-21 10:18
edited on: 2017-04-21 10:52

Not a bug. It helps when you specify it actually HAS a frame to load.

example has:

should be:
sprite_replace(spr,working_directory+"sprite2.png",1,0,0,0,0) [^]

if anything, "native" should fail to load this. Changing to 1 (as it should be), it works fine.
EDIT: Will change HTML5 to accept "0" as meaning a 1 - same as windows, just for consistency sake.

Copyright © 2000 - 2017 MantisBT Team
Powered by Mantis Bugtracker