differential scrolling

sebmacflysebmacfly Member Posts: 1,018
edited November -1 in Working with GS (Mac)
It's me again, lol... Sorry for asking so much questions! :S

I would like to make differential scrolling in my game... (it's a top view game)...
On the ground, sometimes we can see big holes... and i just want to see a second ground in that hole, that second ground, have to move a little easier than the first ground, to make a differential scrolling effect...
I don't know if i'm asking good, sorry for my english :S

Comments

  • quantumsheepquantumsheep Member Posts: 8,188
    Hey,

    Just use layers in a scene :)

    Dr. Sam Beckett never returned home...
    Twitter: https://twitter.com/Quantum_Sheep
    Web: https://quantumsheep.itch.io

  • sebmacflysebmacfly Member Posts: 1,018
    Uhhh? lol i have to set as special layer category???

    I don't see what you're talking about :S
  • netdzynrnetdzynr Member Posts: 296
    I think sebmacfly is talking about a parallax effect. Some beginning info is here:
    http://gamesalad.com/forums/topic.php?id=44

    Also the Basic Shoot Em Up sample project (included among the templates under New Project) has a slow-scrolling background you might be able to use. There may be some more sample projects floating around somewhere.
  • sebmacflysebmacfly Member Posts: 1,018
    cool, thank you, yeah, it's parallax effect... in french is "Scrolling différentiel" :)

    I found that in your link :

    I haven't done this yet, but I think parallax scrolling would be something like this...

    Create a game variable... Speed

    Rule for actor - If Right Arrow Down, Accelerate toward 0° at (speed)
    Rule for background - If Right Arrow Down, Accelerate toward 0° at (speed)
    Rule for far background - If Right Arrow Down, Accelerate toward 0° at (speed)/2
    Rule for really far background - If Right Arrow Down, Accelerate toward 0° at (speed)/4
    Rule for foreground - If Right Arrow Down, Accelerate toward 0° at (speed)*2
  • synthesissynthesis Member Posts: 1,693
    Yeah...do a search for "parallax" in the forum and on the support section. There is a lot of stuff on that. Also...layers are in your scene settings (upper right tab...on the left side of the work area)...to organize the z order of elements on the screen and whether they move with the camera or not.

    PS:
    Your english is good! :)
  • sebmacflysebmacfly Member Posts: 1,018
    Cool, perfect! I need to go back home, i'm at work for now hehehehehe!

    Thanks again
  • sebmacflysebmacfly Member Posts: 1,018
    I can't do a parallax effect... i'm lost.... anybody can help me with an exemple?
Sign In or Register to comment.