Is there a way to tile instances of a square object?

Cptrobhedges-at-gmail_comCptrobhedges-at-gmail_com Member Posts: 3
edited November -1 in Working with GS (Mac)
I am making a game that involves a grid made of squares that are 20x20. I need to tile them so they are touching at the edges for the final result of graph paper made of instances. All I can think of now is to drag each and every square into the scene manually which is all around impractical and time consuming. Is there a tile instance feature somewhere in GameSalad?

Comments

  • quantumsheepquantumsheep Member Posts: 8,188
    Could you not make a single image denoting the graph paper?
  • JGary321JGary321 Member Posts: 1,246
    I would do what QS said. If you need to be able to interact with each square I would create invisible actors to place in the grid. This would be easier, b/c it wouldn't have to be exact. Just personal opinion though.
  • TobyToby Member Posts: 478
    What about modifying the XML file (package contents) which controls positioning inside the game directly using a text editor? As long as you had all the xy co-ords it should be simple enough to plot on graph paper depending on the grid size.
  • harrioharrio Member Posts: 234
    what's cookin,

    would the replicate behavior get you to what you want?

    noodles...
  • CodeMonkeyCodeMonkey Head Chef, Member, PRO Posts: 1,803
  • Awww. The link is broken. I'm actually trying to make a barrier in my game that uses blocks tiled. The Replicate only replicates the art,not the behavior. Is there any work around for this besides just placing each piece?
  • b2iscoolb2iscool Member Posts: 135
    just make an actor add your image adjust the size of the length to the length of the screen and then copy for the width of teh screen then in your properties for the actor choose tile for horizontal wrap for the length and vertical for the length hope that helps
  • CaptFinnCaptFinn Member Posts: 1,828
    I have a idea. use the addon that darren made. it slices a image into what ever grid you want. Make the grid pattern even 20x20. Make sure one of the squares in the grid makes the image you want. then insert. replace all the other images with the image. basically you taking a image and making a bunch of lil images all the same size. just replace the unwanted images with the 1 square image you want.
  • b2iscoolb2iscool Member Posts: 135
    Are you wanting these squares to cover the whole screen if so just make a 320x480 actor that tiles both horizontal and vertical otherwise use my previous method
  • The barriers are actually custom shapes for each scene. They will be placed differently.

    I actually ended up making another fix. Basically I did use the replicate behavior, but I put an invisible actor over the replicated actor. I just had the player character collide with the invisible actor rather than the replicated one. This way I can have a custom size "barrier" without having to drag every tile into place.
Sign In or Register to comment.