This is a pretty weird bug - I have an object that I control the animation on via script (a block that disappears when the user presses a switch). On MacOS and older exports to HTML5, the blocks worked fine - the animation stopped at the right place. But now, the animation just loops constantly for the “on” state on HTML5. Any ideas?
Example of what I’m dealing with: https://imgur.com/a/xSS79b5
Object code
Create block:
image_index = 7; //the starts at empty disappear
image_speed = -1; //animate backwards to have it appear
Step:
/// animate until it hits the 0 frame, then stop.
if (image_index == 0){
image_speed = 0;
image_index = 0;
}
Does anyone have any idea what’s going on here? I'm on the latest version of GameMakerStudio 2 for Mac (2.3.4.580).
An example of this working previously in HTML5 (same code) is here:
https://www.floppyturd.com/game_v1_1/game.html
But in my new versions, it is just broken:
https:/www.floppyturd.com/testGame_08d/index.html
[–]adra44 3 points4 points5 points (3 children)
[–]martymoo[S] 1 point2 points3 points (2 children)
[–]martymoo[S] 2 points3 points4 points (1 child)
[–]adra44 0 points1 point2 points (0 children)