Hello. I’m new to this platform, and to game development in general. I am trying to make a mask of a map so that enemies can use the Pathfinding extension to navigate to the player through the map. For testing purposes, I have bound a key to scroll through the different maps, there are seven in total, but only six have masks. The masks for the corresponding map then show up on top of the map.
What I’m expecting is for the mask to be properly aligned with the map walls.
Instead, though, the mask is misaligned from the map, for all of them except whichever one it starts on when I open the preview. Please note they were all perfectly aligned in the editor.
Here’s the relevant screenshots. Left is how it appears in the editor, right is how it appears in the preview.
Thanks for the timely reply.
The only thing that moves the camera is the extension SmoothCamera, bound the character you see in the screenshots, which does not have any event in the script. I’ve noticed the same issue with it deactivated too. Elsewise, I’m not sure what you mean by scrolling.
Yes, the masks move with the camera like everything else on the base layer, just misaligned from the map walls.
Yes, the masks are created entirely of copies of the sprite ManovuereGood, arranged in the editor to follow the walls of the different maps. Each map has a different animation in the ManovuereGood sprite to differentiate them, as suggested by the rightmost screenshot of the second batch of images.
By placing multiple copies of the ManovuereGood sprite to cover the map in the editor, so that they form a copy, so to say, of the map walls. Look at the first image I sent.
Not quite. Its many copies of the same sprite, arranged in a pattern similar to the map walls.
Maybe, but I wanted to make the map one sprite to make swapping between the different maps easier. As some of them are made of many individual small parts, splitting it into individual objects would be fairly messy.