User Tag List

Results 1 to 4 of 4

Thread: Scrolling tile problem

  1. #1
    Clicker Fusion 2.5 Mac
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)iOS Export Module (Steam)

    Join Date
    Sep 2008
    Location
    Western Australia
    Posts
    256
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Scrolling tile problem

    I have created an active obect which is a seamless image (640,480) of sky that scrolls left to right on the screen. I have placed one image on the game screen, and then I have duplicated it and placed the duplicate to the left of the game screen.

    I repeatedly scroll the tiles to the right (bouncing ball movement), and then when X>640, I set the x to -639 and this works perfectly most of the time, but sometimes a gap appears between the tiles.

    I am guessing that it is something to do with the speed of the tiles and the fact that sometimes the check for X>640 might occur a couple of pixels 'too late'. At a speed of 5, I have watched for a few minutes without any problems, but the faster the speed (e.g. 10+) the gap appears more regularly.

    Is there a better way to produce this effect, or is there a recommended method of mitigating this problem?

    Thanks in advance.

  2. #2
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Re: Scrolling tile problem

    Move the tiles by setting thier X position relative to themselves instead of using a build in movement.
    Working as fast as I can on Fusion 3

  3. #3
    Clicker Fusion 2.5 Mac
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)iOS Export Module (Steam)

    Join Date
    Sep 2008
    Location
    Western Australia
    Posts
    256
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Scrolling tile problem

    Thanks for the suggestion; it works well. I don't know why I didn't try that earlier!

    If I use an odd number for the X increment, I still end up with a gap, but it works for even increments of any size which is good enough for me!

    Now I need to work diagonal tile scrolling!

    Thanks

  4. #4
    Clicker Fusion 2.5 Mac
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)iOS Export Module (Steam)

    Join Date
    Sep 2008
    Location
    Western Australia
    Posts
    256
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Scrolling tile problem

    Now I need to work diagonal tile scrolling!
    Oh! Easier than I thought!

    The way I have done this is to have four tiles (640x480) scrolling X+n and Y+n, and then repositioning as they leave the screen.

    It works, and there is nothing at all wrong with it (as far as I can see), but I wonder if anyone has achieved this effect differently.

Similar Threads

  1. Tile Map object example: Multiple tile sets per layer
    By happygreenfrog in forum File Archive
    Replies: 0
    Last Post: 2nd January 2014, 09:24 PM
  2. Replies: 0
    Last Post: 31st January 2013, 08:01 AM
  3. Scrolling problem
    By Robin_Manager in forum File Archive
    Replies: 8
    Last Post: 26th August 2008, 06:17 PM
  4. Scrolling problem
    By Robin_Manager in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 25th August 2008, 06:51 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •