- draw_text_transformed doesn't display scaled fonts correctly. I created a bit where I was displaying centered text on the screen, and shrinking/enlarging it so it 'zoomed' in and out. This worked fine in GameMaker 8.1, but resulted in unreadable text squished together starting at the halfway point on the screen, for GameMaker HTML5.
- The development environment crashed and corrupted my project file. It took hours to redo my work in GameMaker. I have since resorted to using the HTML5 editor only as an 'importer' because of this.
- The SplitLines script I created works in GM 8.1, but not in HTML5. This script takes some text delimited by '#' (or any other char you specify) and returns a ds_list of strings. In HTML5, it's breaking on both the delimiter AND chr(13) and chr(10), even though I replace those chars with '' before I do the split.
[code=auto:0]
var str, token, ignore, list, tlen, temp, i;
str = argument0;
str = string_replace_all(str, chr(13), "");
str = string_replace_all(str, chr(10), "");
token = argument1;
ignore = argument2;
list = ds_list_create();
tlen = string_length( token);
while( string_length( str) != 0) {
temp = string_pos( token, str);
if( temp) {
if( temp != 1 || !ignore)
ds_list_add( list, string_copy(str, 1, temp - 1));
str = string_copy( str, temp + tlen, string_length( str));
}
else {
ds_list_add( list, str);
str = "";
}
}
return list;
[code=auto:0] - Sound - When playing a background MP3, it 'eats' all wav's sound effects that I'm trying to play. This kinda worked in GameMaker 8.1 (though the sound effects were too quiet), but in HTML5, the background music totally obscures all sound effects -you can't even hear them.
- Fullscreen breaking. When you hit F10 to go fullscreen in GameMaker, it doesn't keep the aspect ratio, and there are lines in between all the blocks. You can't control this behavior, or fix the picture file. There are lots of explanations of why this happens in GameMaker 8.1 and how to fix it, but none of those techniques are used in the HTML5 version of the game. The sprites are placed very close together on the single PNG sheet it creates, and it's obviously taking color from the right or left of the block when drawing due to the scaling. If this is the best it can do, F10 should ONLY double the screen size - it shouldn't resize to any other size at all, since the GameMaker code is weak in this area.
- No screen transitions. The screen transitions in GM 8.1 work great, but don't work at all in the HTML5 version. Specifically, 'RotateRight' is used when going to the ending credits screen, and doesn't show on the HTML5 version of the game.
- current_time always returns 0. I had coded up my own 'is_sound_playing' routine in GameMaker to get around the buggy internal versions, but it relied on current_time. The sound routines now don't work because of it.
Item 1 I 'fixed' by pre-drawing the text as a bitmap, and stretching the bitmap. You can see that on the ending credits screen.
Edited by Kamilche, 18 May 2012 - 01:27 AM.













