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

part12studiospart12studios Member Posts: 620
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.

Thanks
Caleb

Best Answers

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

Answers

  • scitunesscitunes Member, Sous Chef Posts: 4,047
    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 Member Posts: 620
    ok thanks i'll dig deeper.. I'm in Boston doing the http://www.whatwouldmolydeux.com/ representing gamesalad ;) your support is super appreciated!
  • part12studiospart12studios Member Posts: 620
    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?


    Thanks!
    Caleb
  • part12studiospart12studios Member Posts: 620
    nevermind i see now.. the scrollable thing.. ty!
Sign In or Register to comment.