Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Bug with 9-slices

A topic by cookiedraggy created Feb 06, 2024 Views: 188 Replies: 2
Viewing posts 1 to 2

In the Create-event of my object for water I set the sprite for the top of the water to live like so: sprite_set_live(spr_water_top, true);

The game starts when I run it and after a few seconds, the 9 slice gets stretched out instead of repeating like it does without live reload.

The sprite is setup as follows if that makes a difference for the bug: All guides are set to 0 and the center slice is set to tile mode "repeat".

Developer

That’s strange - as far as I can tell (and you can see it if you search GMLive’s code for sprite_nineslice_create()), I’m copying the guide info from the sprite object.

I’ll have a look for the next update, and till then you could assign a callback script to live_sprite_updated that fixes up the sprite’s nineslice.

Thank you!