User Tag List

Results 1 to 9 of 9

Thread: Paste to background has a different origin when layer is moved

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export ModuleInstall Creator ProPatch Maker

    Join Date
    Jun 2006
    Location
    Norway
    Posts
    528
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Paste to background has a different origin when layer is moved

    I've got active objects that I move around manipulating the layer position.
    However, I get an offset between the active object and the pasted object after I move the layer

    I've made an example here.

    pastebackdrop.mfa

    I'm using Build 284.5 (beta)

    It was supposedly fixed back in 2012. Am I doing something wrong in my example?
    http://community.clickteam.com/threads/72997-BUG-Paste-Backdrop-to-a-Layer

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export Module
    Fusion 2.5 (Steam)
    schrodinger's Avatar
    Join Date
    Nov 2014
    Posts
    3,159
    Mentioned
    28 Post(s)
    Tagged
    1 Thread(s)
    I've not tested,
    however you could try by negatively correcting object position prior to pasting in the background.

    See this thread for a similar issue on a parrallaxed background:
    http://community.clickteam.com/threads/91740-Paint-to-Backdrop-jumping-when-a-Parallax-Background?highlight=pasting+background

    I wonder wether this layer coordinates displacement could affect object positioning in same way as parallaxing

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export ModuleInstall Creator ProPatch Maker

    Join Date
    Jun 2006
    Location
    Norway
    Posts
    528
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It may be related, I solved it by counter the offset, but the collisions stop working once the offset is to big.
    I need the collisions

    pastebackdropOffset.mfa

  4. #4
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export Module
    Fusion 2.5 (Steam)
    schrodinger's Avatar
    Join Date
    Nov 2014
    Posts
    3,159
    Mentioned
    28 Post(s)
    Tagged
    1 Thread(s)
    Really? Could you post an example of this issue so we may check?
    (I don't seem to find collisions on the last one you posted?)

  5. #5
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export ModuleInstall Creator ProPatch Maker

    Join Date
    Jun 2006
    Location
    Norway
    Posts
    528
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Download the example. Use arrow keys to move upwards.
    Notice how the collisions are working at the beginning, and stop working once the offset builds up to about 1200.

    pastebackdropCollision.mfa

  6. #6
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export ModuleInstall Creator ProPatch Maker

    Join Date
    Jun 2006
    Location
    Norway
    Posts
    528
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ticking off "Handle background collision even out of window" fixes this issue. But now I have a new issue.
    The offset workaround just stops working completely once the offset is too big, the pasted backdrops stop showing up. It stops at 13200 in the example.

  7. #7
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export Module
    Fusion 2.5 (Steam)
    schrodinger's Avatar
    Join Date
    Nov 2014
    Posts
    3,159
    Mentioned
    28 Post(s)
    Tagged
    1 Thread(s)
    mmmm are you planning to use huge layer shifting?
    I remember reading somewhere of a frame size limit ranging around 30.000 pixels
    maybe a similar limit could exist for layering displacement (considering both layers sizes + displacement)

    May I ask you what kind of effect are you looking for?
    This may not be the best strategy to achieve your goal ?
    If an infinite scroller, you may consider using actives for collisions and destroy them when out of screen?
    Or of course other creative strategies

  8. #8
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export ModuleInstall Creator ProPatch Maker

    Join Date
    Jun 2006
    Location
    Norway
    Posts
    528
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yes I am doing an infinite scroller, and am already using active objects that are destroyed when out of view.
    I am getting massive performance boost when pasting them as a backdrops and manipulating its position with the layer object. Too bad I can't go with that solution.

  9. #9
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export Module
    Fusion 2.5 (Steam)
    schrodinger's Avatar
    Join Date
    Nov 2014
    Posts
    3,159
    Mentioned
    28 Post(s)
    Tagged
    1 Thread(s)
    Don't know if you have already tested, if this can actually work,
    or if you may consider handy setting up such a solution....
    but you may try to slightly modify your engine and use the action "delete created backdrops at"
    (it's under the storyboard controls-backdrops)

    So that you could manage to move your pasting actives in a still layer and create your backdrop objects,
    and time-wise (on par with your player's speed) deleting backwards pasted backdrops,
    so creating the illusion of movement (ok, maybe this explanation was not so crystal-clear...
    but I've never applied this and it's only an hypotetical suggestion)

    Don't know if this could lead to a similar performing solution!

Similar Threads

  1. BUG: Paste Backdrop to a Layer
    By mobichan in forum iOS Export Module Version 2.0
    Replies: 4
    Last Post: 8th September 2012, 02:18 PM
  2. [BUG] Paste Obstacle into bg on Layer 1
    By Bipolar_Games in forum Android Export Module Version 2.0
    Replies: 0
    Last Post: 2nd June 2012, 06:42 AM
  3. any way to use 'paste into background' with HWA?
    By uprize in forum Hardware Accelerated Runtime
    Replies: 4
    Last Post: 29th September 2009, 10:55 PM
  4. Paste Into Background
    By Kid_Roleplay in forum The Games Factory 2 - Technical Support
    Replies: 5
    Last Post: 27th October 2006, 04:43 PM
  5. Paste into background bug
    By Whisp in forum Multimedia Fusion 2 - Technical Support
    Replies: 11
    Last Post: 17th July 2006, 09:38 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
  •