Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

what is the best way to do a maze where the maze scrolls?

part12studiospart12studios Posts: 619Member
edited March 2012 in Working with GS (Mac)
I have a game where i'm using arrow keys to move through a maze.. i can move a graphic up and around.. but the catch is that i need the collision boxes to move in sync with the maze so i don't just walk through the walls of the big 1024x1024 graphic maze.. seems like i'd need ot make the maze collision blocks unmovable.. but then how could they move with the map? perplexing :)

I'm sure there is some brilliant way to do this. i just don't know how. seems like maybe a camera is the key but i can't wrap my head around how the camera would follow the player.. and how do i place various collision walls for the stuff off the screen.


Best Answers

  • ctp2ndctp2nd Posts: 1Member
    Accepted Answer
    Try moving the camera instead of the maze
  • JohnPapiomitisJohnPapiomitis Posts: 6,256Member
    Accepted Answer
    to make the camera follow the player, just put the control camera behavior in the player actor.


  • scitunesscitunes Posts: 4,047Member, Sous Chef
    Your question reminds me of when I first started using gs and everything was a bit of a mystery. Fortunately there are a bunch of awesome resources now that can help you get over the learning curve quickly. I would recommend searching gamesalad cookbook on YouTube. You will find tons of great videos that will get you on the right track.

    Best of luck!
  • part12studiospart12studios Posts: 619Member
    ok thanks i'll dig deeper.. I'm in Boston doing the representing gamesalad ;) your support is super appreciated!
  • part12studiospart12studios Posts: 619Member
    ok so i got the camera thing worked out.. i'd never used this feature before.. wow! how cool.. so i have a new issue.. but still related to the maze..

    I have a D pad on screen... and the "hero" character.. which i move around.. how do i keep the D pad moving as the camera pans around? my understanding is that only one actor can have the camera... so how do i keep the HUD type stuff to move with the camera?

  • part12studiospart12studios Posts: 619Member
    nevermind i see now.. the scrollable thing.. ty!
This discussion has been closed.