Scrabble Like Grid

iamcarteziamcartez Houston, TexasMember Posts: 648
First I'll reintroduce myself, I'm Cartez and I'm back on GS after finally buying a new pooter'... I'm using a Mac after being on PC for months so I'm a bit rusty...

I am trying to create a scrabble type boardgame and I'm having a bit of trouble getting started. How exactly would I go about making a grid about 7x7 (49) tiles.

Comments

  • ADSentertainmentADSentertainment Member Posts: 397
    now, you COULD place each an individual tile on the scene, but that would be a bit difficult since GameSalad doesn't have a snap to grid feature, and you want it to be in a grid. An alternative would be to an object spawn 49 tiles in different locations, that WOULD require 49 spawn actor behaviors though. Lets say each of the tiles are 10x10 pixels, to give it that grid pattern, you'd want to spawn one actor at (5,5), another at (15,5), and (25,5) and so on and so forth until you get to (65,5) and then do the same for the y which would be (5 to 65,15), (5 to 65,25) until you get to (5 to 65,65). Sorry if it seemed like I dumbed it down, I just wanted it to be easy to understand. Hope I helped! ;)

    Having trouble with your game? Sounds like a personal problem.

  • CodeMonkeyCodeMonkey Head Chef, Member, PRO Posts: 1,803
    edited April 2013
    You can get by without snap to grid. If you place the actor in the approximate location, something like the expression below will line up your actor during game play, at a small cost of processor time.

    self.position.X = floor((self.position.X-)/)*+
  • iamcarteziamcartez Houston, TexasMember Posts: 648
    You don't know how much that will help! Thanks. I rather hear the simplified version that I can understand that the technical jargon that will cause me to message bomb you for help lol. I'll get started on that method soon though since it sounds easy.

    I wasn't aware that there was a snap to grid feature in GS. :(
Sign In or Register to comment.