Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Tilesets Issue

I was trying to make a map using a combination of objects from different tilesets. However, whenever I switch to a new tileset, I get these random shapes from the new tileset in random places.
 
1) Don't make a giant tileset with everything on it. It will just lag your game.
    Just add the objects to the main tileset for that map.

2) If that doesn't solve the problem, you'll have to upload your game for someone to look at it.

Be Well
 

boon

Sponsor

Kilik 64":uki8ncrr said:
I was trying to make a map using a combination of objects from different tilesets. However, whenever I switch to a new tileset, I get these random shapes from the new tileset in random places.

I think I know the problem. When you make something in one tileset, the tileset editor will just add squares from that tileset. When you switch the tilesets, it remembers the positions of the squares but not the actual images.

So say you have a tileset, and you place the 5th tile on the 13th row on the map (It's a window). In the other tileset, the 5th tile on the 13th row is a statue. When you switch tilesets, it remembers the tile positions, so the window will be replaced by the statue.

Does that clear up stuff? You'll have to remake the map then. Also, hi122neo, that's an awful idea.
 
I had that issue before on my old comp, before I figured out what was leeching memory from it.  When that happens, it's because you're low on RAM.  Try making the tilesets smaller (only include what you need for the current map), and turn stuff off that may be running in your computer's background that you don't need.
 
Boonzeet":1zvtw57h said:
Kilik 64":1zvtw57h said:
I was trying to make a map using a combination of objects from different tilesets. However, whenever I switch to a new tileset, I get these random shapes from the new tileset in random places.

I think I know the problem. When you make something in one tileset, the tileset editor will just add squares from that tileset. When you switch the tilesets, it remembers the positions of the squares but not the actual images.

So say you have a tileset, and you place the 5th tile on the 13th row on the map (It's a window). In the other tileset, the 5th tile on the 13th row is a statue. When you switch tilesets, it remembers the tile positions, so the window will be replaced by the statue.
This is a better worded version of my problem. Also, I was able to get it to work by closing everything else that was open. However, there was blue (the background color) everywhere when I tried to use the objects. I think I need to set it to be transparent... that right?
 
That only sets the color that gets displayed as transparent in the editor.
For example if you set it to red, then the transparent background of your tileset will display as red.
(in the database, and in the tileset on the left side of the map editor.)
The 'actual' color that gets used in the game is still 'transparent'.

To set the transparent color when you import a tileset image, you do this during the import step.
(what acually happens is the import tool replaces the color you choose with transparent pixels. If you open the image after importing with an image editor, you will see those areas are now transparent.)

When you are combining / adding new tiles to a tileset, you need to make sure that you use true transparent pixels, or set the pixels you want to be transparent EXACTLY the same as the transparent pixels in the original image.

Does that help?
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top