P
Peter Verbeek
Guest
For my game I need a function tileset_get_sprite_index(tileset_Index) to retrieve the sprite index of the tileset of the current set tilemap on a layer. I may not use layer_tile_get_sprite because it's a compatibility function. I can use the draw_tile function but I need to scale it up. Besides, are there any functions solely related to a tileset (tileset_get_*) ?
Game mechanics in depth: After creating a new room during game time the layers are created. One layer is the tiles layer and the room (level) type determines the tileset used on this layer. In other words each in game created room has a specific tileset. I want to show on the gui one or more tiles of the room specific tileset during game time. Therefor I need the sprite index to draw a tile as part of the tileset sprite. This drawing has to be scaled up because the tiles are to small for the gui.
Thanks
Game mechanics in depth: After creating a new room during game time the layers are created. One layer is the tiles layer and the room (level) type determines the tileset used on this layer. In other words each in game created room has a specific tileset. I want to show on the gui one or more tiles of the room specific tileset during game time. Therefor I need the sprite index to draw a tile as part of the tileset sprite. This drawing has to be scaled up because the tiles are to small for the gui.
Thanks