One thing on my to do list is to create a tile system.
I have a game with resolution 680x400 with room size 640x360 (360p)
I have the following code:
Code: ags
I've also tried just CreateGraphical. I haven't worked with overlays before this. I haven't worked with cameras and viewports before this. So please, if there's a better thing I should be using, feel free to tell me.
There is an extra tile offscreen horizontally and vertically, the thing I am trying to do is create an offset so that the offscreen tiles will be displayed, but doesn't seem to work with overlays. Is there a way to do what I want without manually changing the coords of every overlay?
I have a game with resolution 680x400 with room size 640x360 (360p)
I have the following code:
// room script file
Overlay* myOverlay[170];
function room_Load()
{
for (int x = 0; x < 17; x++) {
for (int y = 0; y < 10; y++) {
myOverlay[y*17+x] = Overlay.CreateRoomGraphical(x*40, y*40, 1);
}
}
Game.Camera.Y = 20;
}
I've also tried just CreateGraphical. I haven't worked with overlays before this. I haven't worked with cameras and viewports before this. So please, if there's a better thing I should be using, feel free to tell me.
There is an extra tile offscreen horizontally and vertically, the thing I am trying to do is create an offset so that the offscreen tiles will be displayed, but doesn't seem to work with overlays. Is there a way to do what I want without manually changing the coords of every overlay?