J
John Kollar
Guest
Hello. I've been trying to learn GameMaker 2 and use the room designer to place sprites.
I'm having a problem getting the sprites to overlap in the correct order, so I created a very simple example and made a screen capture to illustrate the issue.
As can be seen in the attached image, I've created two sprite objects (a pacman and a ghost) and in the room I've made one instance of a pacman and two instances of the ghost. I then alter the instance order in an attempt to make one ghost be in front of the pacman, and the other ghost behind the pacman.
When I run the game the sort order is as I expect (see the right side of the image), but in the room designer the sprites are not displayed in the expected overlap sequence. Nothing I've tried will decouple the two ghost instances so that one can be behind the pacman and one can be in front.
I can do everything programmatically and it will work at runtime, but I thought the intention of the DnD room designer was to make it easier than to position all sprites using code.
Is there a bug with the sprite rendering in the room designer, or am I misunderstanding something about the creation and placement of sprite instances in the designer?
Any assistance would be greatly appreciated.
I'm having a problem getting the sprites to overlap in the correct order, so I created a very simple example and made a screen capture to illustrate the issue.
As can be seen in the attached image, I've created two sprite objects (a pacman and a ghost) and in the room I've made one instance of a pacman and two instances of the ghost. I then alter the instance order in an attempt to make one ghost be in front of the pacman, and the other ghost behind the pacman.
When I run the game the sort order is as I expect (see the right side of the image), but in the room designer the sprites are not displayed in the expected overlap sequence. Nothing I've tried will decouple the two ghost instances so that one can be behind the pacman and one can be in front.
I can do everything programmatically and it will work at runtime, but I thought the intention of the DnD room designer was to make it easier than to position all sprites using code.
Is there a bug with the sprite rendering in the room designer, or am I misunderstanding something about the creation and placement of sprite instances in the designer?
Any assistance would be greatly appreciated.
Attachments
-
329.9 KB Views: 17