B
bretseattle
Guest
I am having trouble getting the draw_tile function to work, below is my code. Basically the tiles are drawn but about 20 pixels along the x axis they are cut off, I colored the background and it looked like that was what was blocking the sprites but but when I removed the background from the layers there was still a black boundary obscuring the sprite layer. I have tried playing with the depth of layers bringing it forward and back but the screen is always the same. I have only one sprite, tileset and game object that runs this code and haven't created anything else in this build. Is this a bug or just something really simple that I am missing?
Below is the code
layer_id = layer_create(-400);
layer_tilemap_create(layer_id, 0, 0, tileset_ground, 10, 10)
var tiledata = 3
draw_tile(tileset_ground, tiledata, 0, 16, 34);
var tiledata = 2
draw_tile(tileset_ground, tiledata, 0, 0, 0);
draw_tile(tileset_ground, tiledata, 0, room_width -32, 0);
Below is the code
layer_id = layer_create(-400);
layer_tilemap_create(layer_id, 0, 0, tileset_ground, 10, 10)
var tiledata = 3
draw_tile(tileset_ground, tiledata, 0, 16, 34);
var tiledata = 2
draw_tile(tileset_ground, tiledata, 0, 0, 0);
draw_tile(tileset_ground, tiledata, 0, room_width -32, 0);
Attachments
-
5.9 KB Views: 3