See if anyone can help me out here....

SaveDaveSaveDave Member Posts: 140
edited November -1 in Working with GS (Mac)
If i have a static iphone game screen of 480 x 320 and have an actor as my main character who stays static in the middle of the screen with a constant movement animation to "mimic" moving, can i then have a background image that scrolls in from the right/left and continues moving to simulate the movement?

If yes, does this background image have a maximum size?

Also, if i want parts of this background to be interactable, can i create actors and group them to this background so that it moves along with the scrolling?

think that makes sense!!.....

anyone????

Comments

  • SaveDaveSaveDave Member Posts: 140
    pleeeaaseeee?????
  • ORBZORBZ Member Posts: 1,304
    Yes, read the docs on camera control and scene size.
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    Also, Please make your topic title have something to do with your problem So we have an idea of what you need help with. It helps with searching for similar problems later on by other users as well as not wasting someones time by having them open a thread to find out they have no idea on the subject you need help.
  • SaveDaveSaveDave Member Posts: 140
    sorry Orbz but i don't want to control the camera. Thats why i am asking what i am asking...

    I want the scene stationary and everything else to move.
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    Your just talking about running an animation for the background in a loop then you would have to time and spawn your actors to the right timing and speed. Is that not accurate?
  • SaveDaveSaveDave Member Posts: 140
    sort of... but just need to know if i can group (lock) the position of actors to each other so they all move as one???
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    Yeah there was a post a while back about how to do that i think. You will probably have to do some digging. If i remember right it all had to do with constraining your position attributes
  • firemaplegamesfiremaplegames Member Posts: 3,211
    There is no easy way to group actors like that.
    To pull it off, you would need to use a lot of Constrain Attributes which are very processor intensive.

    IF they are not tied to the background, something like doodle jump, then that is certainly doable, but if they have specific positions, it gets a bit tricky.

    Essentially, you are saying (to the attached piece) "always keep my X and Y positions a specific distance from the edge of the background graphic."

    To do that you need to use Constrains.

    In my opinion, I would try to think of a different solution.
  • ORBZORBZ Member Posts: 1,304
    wrap x
    wrap y

    move the camera
Sign In or Register to comment.