RTS cells

This forum is currently in read-only mode.
From the Asset Store
10 isometric and animated Strategy Game Buildings in two Colors.
  • The RTS behavior is obviously quite useful, although I was wondering if it is possible for the cell sizes to go smaller than 10 x 10, as this would allow use for games that favor a smaller scale.

    edit: also is it possible so that it remembers if you had the grid on (in layout) when you open the program, plus what the dimensions of the grid were?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Are your objects really small? I avoided making the grid go all the way to 1x1 sized (pixel perfect) for two reasons: one, the generated paths will be right up against the obstacles (which is unsuitable for many types of movement), and two, the CPU usage could be very high. With a large map and 1x1 cells you could end up with enough cells to literally hang the game for a second or so while it generates the optimal path - it's running a fairly intensive search algorithm to determine the best path - and many games need to frequently regenerate paths. So could you shed some more light on where you're trying to go with this?

  • Well I'm just testing an isomteric type graphic thing, and when theres only a 1 space tile between the solid tiles theres not quite enough room

    <img src="http://img2.uploadhouse.com/fileuploads/2048/2048812611e03adbab08a86dc4d4083431572ec.png">

    blue being solid, I was just wondering if the cell size could go slightly smaller it would be able to fit.

  • The RTS movement moves and pathfinds based on a top-down grid - it won't work properly if you try and crowbar it in to a 2D isometric pattern like that. It's still using squares, it won't line up in any sensible way. You could try keeping an offscreen top-down map of the play area, then use the isometric view to display what is happening on the 2D offscreen map. That's how pathfinding is usually done in an isometric game.

  • Oh yes, you're right. That's a much more sensible way of going about it e_e

    That's exactly what I was doing with MMF anyhow, don't know why I didn't think to do it with this as well.

    Thanks! ^-^

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