How to make a continuous background?

expired_012expired_012 Member Posts: 1,802
edited November -1 in Working with GS (Mac)
Hi, How do I lock my background image so that it stays still while my actors in front of that layer can keep on moving down the screen?

Comments

  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    Hi artonskyblue; Scene Editor>Scene button>Layers, then uncheck scrollable for the background. I think that should do it. If it doesn't, I blame my newbyness! ;-)

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

  • expired_012expired_012 Member Posts: 1,802
    @gyroscope, I appreciate the answer, but I think you may have misinterpreted my question. My main actor is going down past the 320x480 limit, I put it to 320x920 because it is big in height. My main actor is falling and falling and falling but I want my background to stay in its same position. How do I lock it there so my main actor can keep on falling with the background in its same place?
  • butterbeanbutterbean Member Posts: 4,315
    Not sure what you're trying to do Arton, but usually with a background, if you go into the background actor itself, and go to physics, checking "fixed rotation" usually makes it stay in one spot, but if you don't have gravity added to the scene, then it shouldn't move anyway

    Hope this helps or somewhat answers your question!
  • expired_012expired_012 Member Posts: 1,802
    what Im trying to do is something similar to what doodle jump has. You jump up and new platforms appear yet the background stays still the whole time throughout. Im basically trying to create an endless background using just one image
  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    Edit: this reply is in response to your second post in this thread; more conversation happened while I was writing it!

    Ah, I think I see what you mean. Let's say for example's sake only, you have a ledge with a back wall, this being your background. your player moves off down from the platform, then when he reaches a certain point on the 480 x 320 area, you want him to stay in that certain position relative to the area, then the background starts moving up? If that's the case, my guess would be something to do with: when the player moves to a certain y pos, the scrollable attribute of your background graphic then becomes true, and will then scroll up away from the player.

    I really am a bit frustrated here: I do try to help, but I've been using GS for such a short time, I don't know enough yet to help you more; sorry about that! I've got an idea though that you can't switch scrolling on or off via the Actor Editor; i can't find any reference to the background scrolling as an attribute. Hope I'm wrong....

    Also hope I've been of some help at least.

    :-)

    Another edit: I guess an easy way out would be to make your player non-scrollable and the background scrollable; sorry, maybe not much help again....

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

  • AfterBurnettAfterBurnett Member Posts: 3,474
    The background shouldn't move at all unless you tell it to. I take it you're trying to do something like Jungle Bug? All the platforms scroll but the BG image remains still? Should just be a matter of manipulating the foreground actors and leaving the BG as a static image... that's all I needed to do in my shooter.
  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    artonskyblue said:
    @gyroscope, I appreciate the answer, but I think you may have misinterpreted my question. My main actor is going down past the 320x480 limit, I put it to 320x920 because it is big in height. My main actor is falling and falling and falling but I want my background to stay in its same position. How do I lock it there so my main actor can keep on falling with the background in its same place?

    Hi again; still a bit confused by your explanation of what you require: If your player keeps falling and you have a background in the same place - if, by that you mean the background is fixed and doesn't scroll, when your player falls off the screen, it'll keep falling but you won't see it, and all your left with is a static background.

    So maybe you mean the other way round: for the camera to follow the player, with the background scrolling up, giving the illusion that the player is falling down? If so, this tutorial by Weswog would be most useful for you (it has a player seeming to move sideways, but it'll be no prob to change a few parameters for what you want):



    Hope I haven't got the "wrong end of the stick" again and it helps you out!

    :-)

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

Sign In or Register to comment.