Help with walls

paulofuertespaulofuertes Member Posts: 24
edited November -1 in Working with GS (Mac)
So, I'm still kinda learning gamesalad, isnt hard at all, I have like 2 days of practicing different stuff, so I can maybe, soon, make a game. Right now im messing with walls and moveable objects inside of it, lets say for example, a maze with an actor inside.

My question is..

Is there an easy way to insert my actor INSIDE the maze, making the actor dont go outside the walls? I know it is possible but, can I make the maze on photoshop, transparent background and then make it a wall the whole maze? Or do I need to make every single line and then join them in gamesalad and put every single "line" as a wall? Know what I mean?

Because I tried making the whole maze on photoshop, put it on gamesalad, make the actor see it as a wall.. but isnt working at all.. any ideas? thanks in advance. and sorry for noobie questions....

Comments

  • quantumsheepquantumsheep Member Posts: 8,188
    you'll need to make the walls separately.

    Make one actor with maze graphic on it, not moveable.

    You can use just one 'wall' actor multiple times and move and resize it to fit the graphic underneath it.

    Then make the wall actor invisible, non moveable, with a restitution of 0. (look in the inspector on the left) you should be ok.

    Because this wall actor is not moveable and invisible, and because you're using just one actor multiple times, it shouldn't be too much of a hit performance wise.

    Then in your player actor, put in the rule 'collides with' actor 'walls'.

    That should do it.

    Hope it helps!

    QS :D

    Dr. Sam Beckett never returned home...
    Twitter: https://twitter.com/Quantum_Sheep
    Web: https://quantumsheep.itch.io

  • AsymptoteellAsymptoteell Member Posts: 1,362
    eventually, custom collision shapes will be here (like triangles, or mazes or warlocks) and then you'll be able to do it the one actor way, but for now, splitting it up works fine. just fine.
    fine just fine.
    fine.
  • paulofuertespaulofuertes Member Posts: 24
    oh my god :D haha! I think this will be a loooong work then ^^... Thanks for the reply, both of you!
  • quantumsheepquantumsheep Member Posts: 8,188
    No probs! Good luck with it! :D

    Dr. Sam Beckett never returned home...
    Twitter: https://twitter.com/Quantum_Sheep
    Web: https://quantumsheep.itch.io

  • AsymptoteellAsymptoteell Member Posts: 1,362
    Well it won't be THAT long. It would take that long to set up most games (as well as tons of coding) and this game will at least be relatively easy to code, if it's just a maze.
    Asymptoteell
    by the way, make sure you add something to make it stand out if you plan on putting it in the app store. If you make a standard maze game, you'll have lots of competition. But if you have a maze game with lazer rabbits, you'll stand out more, and people will be more likely to buy.
  • quantumsheepquantumsheep Member Posts: 8,188
    That's true - remember, because the walls are invisible, and have no graphic on them, you can stretch them without worrying about how they'll look.

    So you can have four wall actors, for each of the boundaries for example, and just stretch them to fit.

    I'd wait until you have everything placed right before turning them invisible ;)

    Also, remember that GameSalad can't currently use actors that have a width or height of 2 or less.

    Anyway, Good luck!

    QS :D

    Dr. Sam Beckett never returned home...
    Twitter: https://twitter.com/Quantum_Sheep
    Web: https://quantumsheep.itch.io

Sign In or Register to comment.