Animated Offset Scroll in Tiled Background *Problem*

This forum is currently in read-only mode.
  • Hi, i was figured out how to make an animated offset scroll without moving the layout screen, i really don't understand how they did this source file:

    http://dl.dropbox.com/u/7658043/scrollingback.cap

    I recreated an animated offset background, there a 2 .caps

    -Good Scroll (i didn't make this, i modified this from scrollingback.cap to study how it works)

    -Bad Scroll (Yes, i made this and i didn't want it... i wanted to know how it works from Good Scroll example)

    http://cl.ly/1A3c0E300J1S442E1l1O/ScrollProblems.zip

    I wasted 2 hours while i'm figuring out how to make good scroll, would you help me?

    Thanks!

  • Create a new layer and set it's "scroll x rate" and "scroll y rate" to 0. Then move the tiledbackground objects to the new layer.

  • Create a new layer and set it's "scroll x rate" and "scroll y rate" to 0. Then move the tiledbackground objects to the new layer.

    Ahh, it worked! i didn't know about scroll rate... anyways, thank you!

  • A little problem... i still don't know how to animate one background image goes to below, i tried to change scroll rate 0 to 100 in this snow map layer (layer 4), but every objects affected incorrect position like bullets and enemies....

    http://cl.ly/1B2I123E410Q2w1U181R/howanimatescroll.cap

    Edit: is located in "Mission 1" from layouts folder

  • Bump, I'm sorry!

    I bump threads when the problem is still not solved...

  • Layer scrolling only works if your layout is bigger than the screen, and you are moving the camera.

    Your game does neither of those things.

    You can scroll the Tiled Background texture of the snow and trees the same way you are doing the clouds, by moving the offset, but you have to make your texture size a square power of 2. In other words, it needs to be 128x128, 256x256, 512x512, etc...

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Layer scrolling only works if your layout is bigger than the screen, and you are moving the camera.

    Your game does neither of those things.

    You can scroll the Tiled Background texture of the snow and trees the same way you are doing the clouds, by moving the offset, but you have to make your texture size a square power of 2. In other words, it needs to be 128x128, 256x256, 512x512, etc...

    It worked!

    I made a 512x512 background then it worked like a charm... i didn't know about the size matters. I made a 640x640 image and it didn't work, i guess it should be only for tile backgrounds. Thanks!

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)