large tile maps

This forum is currently in read-only mode.
From the Asset Store
A template which allows you to customise the controls of your game.
  • Has anyone figured out how to effectively make large alterable array based tile maps?

    Like 500X500,

    {So 250,000 objects}

    without the fps dropping to around 4

  • I think your only option for something like that is to lower the tile count by only creating sprites when they are on screen. A virtual map kept in the array basically.

    You can also lower the tile count by pasting them into a canvas.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • this is kind of what i was thinking of making:

    if i just drew the tiles on screen, collision detection and path-finding wouldn't be able to happen else were.

    and if you used the canvas object to paste tiles that change type, wouldn't you have to remake all the tiles and paste the current changes. I assume that would just cause massive dips in fps

  • this is kind of what i was thinking of making:

    if i just drew the tiles on screen, collision detection and path-finding wouldn't be able to happen else were.

    Well you would have to keep track of that in the array using another method other than collision detection... virtually.

    [quote:3akgrqcg]and if you used the canvas object to paste tiles that change type, wouldn't you have to remake all the tiles and paste the current changes. I assume that would just cause massive dips in fps

    Not really, canvas is very fast, but you would have to do some sort of quadrant scrolling.

  • quadrant scrolling is an interesting solution.

    i was thinking since the only tiles that have collisions are on the edges of the terrain. i could just have the edges persistent and have the rest kept in the array, drawing those when the screen is near, or draw them to a canvas.

    wish i could just drop the tiles all together and just use the canvas, problem with that is there seems to be no efective way to save a canvas.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)