Scrolling background help

TheodiTheodi Member Posts: 96
edited November -1 in Working with GS (Mac)
Hi everyone! I am new to GS and loving it, im building my first app right now which is going great I need a little help with something.

In my app a character is tapped and shoots off upwards, then gradually comes down again using acceleration to mimic gravity. The player then taps again and again to get higher. I want the background to scroll to look like the character is getting higher, I dont know how to do this though, I'd guess I could make a duplicate of the background and somehow making it scroll from the first.

The background is a gradient blue sky, darker blue at the top and lighter blue below.

To the either side of the screen are pillars.

Hope this makes sense! Many thanks to any help given.

Theo

Comments

  • mangaroomangaroo Member Posts: 419
    here is a gamesalad template i created for someone earlier

    http://www.fileserve.com/file/BG7XJfq
  • tcla75tcla75 Member Posts: 71
    Hi Theodi you could have the background as a separate layer non scrollable. Change the scene height to however high you want (You start off as 960 by 640 for iphone game. Change the 960 to 22000) and stick some clouds above the scene make the clouds scrollable. That should give you a sense of height.
  • TheodiTheodi Member Posts: 96
    That sounds awsum. Cheers guys! I will try all that out.
  • TheodiTheodi Member Posts: 96
    Hello again everyone, I have added some images into my game to be used as animation. I resized them in PS to 30x40 px.

    When I add them as an animation which is played when tapping an actor, the animation plays great, but the images are way too big even though I resized them smaller. They stay the same size even if I make them smaller.

    What am I doing wrong here?

    Cheers for the help!
  • old_kipperold_kipper Member Posts: 1,420
    check a couple of things-

    1). what dpi did you save the images out of photoshop. It should be 72. Higher will make them display smaller.

    2). If an instance of an actor is already in the scene, changing the art will not change it's size. This can be fixed by either replacing with a new copy of the actor, or opening the actor in the scene and then editing it's size in attributes.

    3) Bring in art (as said above) doesn't automatically change the size of an actor, so you have to set the size of the actor in its attributes even it it is the prototype.The quick way to do this (if you haven't got rules changing the actor size during the game), is to drag a copy of the art onto the actor in scene view where you can see all the actors.

    hope that helps

    kipper
  • TheodiTheodi Member Posts: 96
    Cheers, I'll check those today. When is 9.3 coming out anyway? It'll be nice not to have to worry about GS crashing.
Sign In or Register to comment.