Login / Registrieren
DE EN FR ES IT CZ
Zurück Nach oben

How to move background image in a loop?

  • #10, by AkcayKaraazmak 12 years ago Zitieren
    Me too smile
  • #11, by afrlme 12 years ago Zitieren
    Sorry, I thought I added a link to an example the other day. It was a lua script version I created before move object action & start object tween function was added.

    Check my last message above this for the link.

    Maybe I will make a dynamic random cloud movement example when I have some spare time.
  • #12, by Nigec 12 years ago Zitieren
    could you do this with the character walking to the edge of the screen and give the impression the background loops?
  • #13, by afrlme 12 years ago Zitieren
    I suppose you could do that if you added the background as an object? I was thinking about something like that earlier. With the new move object action or function, you could easily create custom parallax scene objects & backgrounds that react differently based on characters current x &/or y position on the scene. We can now check scene width/height so it is entirely possible to convert characters position into a percentage value & more.

    Any scene object can be moved with the move object action part. This also moves the objects polygon with it too. Also there are 2 new data structure tables for objects which allow you to scale & rotate them too (well the image linked to the object anyway).
  • #14, by Nigec 12 years ago Zitieren
    I've seen it before with parallax scrolling in AGS, one of my early game attempts used it, but it was a plugin so no idea how it actually worked lol