Layers: Is it possible for Actor to Walk on Path Layer and only bounce when hitting the grass layer?

iamaslayerinsideiamaslayerinside Member Posts: 6
edited August 2012 in Working with GS (Mac)
So I am creating an RPG style game. I have a Grass Layer and a Path Layer. I put the Path Layer on top of the Grass Layer. My Actor (Character) to walk along the path and have the grass act like a wall. How would I go about doing this. I put the Grass Layer down, Created a New layer for the Path, and Created a new layer for my character. When I hit play, my Character automatically goes outside of the grass to the edges. Any suggestions would be great.

Comments

  • BoyGeniusStudiosBoyGeniusStudios Member Posts: 92
    To start, gamesalad's actors can only have collision shapes in the shape of a square or circle. So lets use this picture as an example:
    http://www.ibiblio.org/sinner/dibus/aqua-z.jpg
    So imagine if you were trying to make your character walk only on that z. That would not work because if you look behind the z, it has all of the blue space. So ultimately that actor is shaped like a square. If you tried to make the actor collide with the blue, but walk inside the z, that would not work because it is actually a square. The same applies for a picture that has a transparent surrounding area, but a solid inside, it is still shaped like a square.

    So how do I fix it? First remove any collision rules, and make a new actor called wall. Make the wall transparent and remove movement are rotation in the settings. Then in the case of that z picture, you would make the walls surround the z and make a rule that the player would collide with the walls. So now the actor can walk inside the z, but not outside of it.
  • iamaslayerinsideiamaslayerinside Member Posts: 6
    Thank you Boygeniusstudios. I was actually playing around with that ideal as I just figured it out and found my game is now laggy because of it. I have been playing around with GameSalad for the past day and None of the layer tutorials I have seen touched on what I was trying to figure out. I appreciate the tutorial you gave me as this has helped me out significantly.
Sign In or Register to comment.