Actor Placement On Dynamically Generated Grid

Mack_DundeeMack_Dundee Member Posts: 31
edited November -1 in Working with GS (Mac)
The following templates available on Gamesalad generate grid places through math (dynamically):

1) Grid-Based Game Template 3
2) Grid-Based Random Number Generator
3) For Loop DEMO

My question, how do I pre-place an actor in the first template mentioned above and have it's grid position register correctly?

I want to be able to set a few actors in specific grid spots and have the game attribute that tracks each actor named "piece" (game.filledSlots) account for the coordinantes of the placed actors. Whenever I pre-place an actor in the first template listed above, instead of clicking on a grid position to spawn a "piece" actor in a particular spot, the display automatically lists it's grid position at -1.7 instead of it's correct grid coordinantes.

Any help, even if it's just a way of approaching the problem, would be greatly appreciated.

Thanks.

Comments

  • Mack_DundeeMack_Dundee Member Posts: 31
    Sorry, guys. I think I figured it out. There are two game attributes that control the coordinantes of the grid placement (currX and currY). If anyone is trying to do this in the future, updating those two attributes according to your pre-placement designs will do the trick.

    Thanks anyway. I hope this helps someone.
Sign In or Register to comment.