How to move background image in a loop?

  • #10, by AkcayKaraazmakMonday, 06. October 2014, 11:18 10 years ago
    Me too smile

    Great Poster

    440 Posts


  • #11, by afrlmeMonday, 06. October 2014, 12:19 10 years ago
    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.

    Imperator

    7278 Posts

  • #12, by NigecMonday, 06. October 2014, 17:02 10 years ago
    could you do this with the character walking to the edge of the screen and give the impression the background loops?

    Key Killer

    627 Posts

  • #13, by afrlmeMonday, 06. October 2014, 18:13 10 years ago
    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).

    Imperator

    7278 Posts

  • #14, by NigecMonday, 06. October 2014, 18:27 10 years ago
    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

    Key Killer

    627 Posts