User Tag List

Results 1 to 10 of 10

Thread: Actives Objects same position problem when scrolling

  1. #1
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleiOS Export ModuleInstall Creator
    SirEatAlot's Avatar
    Join Date
    Oct 2010
    Location
    Stockholm, Sweden
    Posts
    401
    Mentioned
    5 Post(s)
    Tagged
    0 Thread(s)

    Actives Objects same position problem when scrolling

    Searched the forum but couldnt find much about this..

    Does anyone know if there's a solutuion to the problem where having an active object set to the same position (always) as another causes a lag/offset in the position when scrolling?

    Here a picture to describe what I mean.

    scrolling_overlap_problem.png

    In my game the spaceships can have different colors, but the top "color object" moves around and jitters and wont get the same position as the base spaceship object when scrolling. Not scrolling it works fine.

    This is an old problem I think, I've come across it before, just wanted to know if anyone had any solution or ideas?

  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 just tried a quick test and it doesn't seem to happen to me
    (if my eyes don't deceive me..)

    scroll_offset.mfa

    Is this what you're doing or there are some differences?

    EDIT:
    OH - one thing, this has driven me crazy for a while in another project,
    when everything started becoming jittery without evident reason upon scrolling,
    I had to check the "follow the frame" option for those objects, which I had unchecked
    (since you always set positions relative to other objects and this should theorically be unneeded)
    make sure you have that option checked!

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    UltimateWalrus's Avatar
    Join Date
    Jul 2006
    Posts
    824
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If you are using built-in movements like 8 directions, it seems that the logic for the movement runs after the events in the event editor occur. There is no way to get around this to my knowledge.

    If you are making your own movement (as most advanced users do anyway), the problem is simple, you just need to make sure your "Set position" event comes after the movement logic.

  4. #4
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleiOS Export ModuleInstall Creator
    SirEatAlot's Avatar
    Join Date
    Oct 2010
    Location
    Stockholm, Sweden
    Posts
    401
    Mentioned
    5 Post(s)
    Tagged
    0 Thread(s)
    well Im using physics for movement so there's no easy way to replicate it by making my own movement..

    the only workaround I can think of is to have the object that moves be invisible and have two objects set to that position instead of one.. it would still cause an offset but you wouldnt notice it I hope.. but the movement might feel sluggish instead..

  5. #5
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleiOS Export ModuleInstall Creator
    SirEatAlot's Avatar
    Join Date
    Oct 2010
    Location
    Stockholm, Sweden
    Posts
    401
    Mentioned
    5 Post(s)
    Tagged
    0 Thread(s)
    schrodinger, thanks, your example does indeed seem to work! very strange that it does not seem to work that way in my game?? I'll try to mod your example a bit and see if it still holds

  6. #6
    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 how all this may be related to physics being a issue?

    Unfortunately I've never played much with physics and don't have a case-report for that situation,
    hope you can recreate it and see if/what breaks!

  7. #7
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleiOS Export ModuleInstall Creator
    SirEatAlot's Avatar
    Join Date
    Oct 2010
    Location
    Stockholm, Sweden
    Posts
    401
    Mentioned
    5 Post(s)
    Tagged
    0 Thread(s)
    heh with that name you should know a lot about physics, and cats

    but got it working! I redid a lot of the code and now it works just as shrodingers example.. dont know what was wrong but I must have done something wrong somewhere thanks!

  8. #8
    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)
    yeah, I have a cat actually,
    but he seems uninterested in quantum mechanics
    (but he is in harming lizards, to my despair)

    I'm unsure wether to explore in depth Fusion Physics or not...
    I fear not being able to control every dot as I would like to
    ...but it looks very cool, nevertheless!
    Looking for satisfied user reviews to make the big jump

    happy you sorted out, anyway!

  9. #9
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleiOS Export ModuleInstall Creator
    SirEatAlot's Avatar
    Join Date
    Oct 2010
    Location
    Stockholm, Sweden
    Posts
    401
    Mentioned
    5 Post(s)
    Tagged
    0 Thread(s)
    poor lizards!

    physics is pretty great actually.. it takes some getting used to, you manipulate objects by setting the mass and applying forces instead of just setting the speed, but once you get the concept you can get things to react to each other in really interesting ways.

  10. #10
    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)
    poor lizards!
    yeah



    physics is pretty great actually.. it takes some getting used to, you manipulate objects by setting the mass and applying forces instead of just setting the speed, but once you get the concept you can get things to react to each other in really interesting ways.
    Thanks, I will surely look into it thoroughfully someday, I've just played around with it 'till now and seemed interesting and "quickly productive"
    but whenever I had to do something and I needed a reliable level of "control", I ended up doing something else.

    Well, didn't want to change the topic direction, so thanks for your feedback on this

Similar Threads

  1. Any way to calculate objects new position after changing layer scrolling coefficient?
    By Outcast in forum Multimedia Fusion 2 - Technical Support
    Replies: 11
    Last Post: 7th November 2014, 12:08 PM
  2. Possible Y position bug of actives
    By nivram in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 18th November 2011, 12:00 AM
  3. Possible Y position bug of actives
    By nivram in forum File Archive
    Replies: 2
    Last Post: 17th November 2011, 11:58 PM
  4. X Scale and X position of Actives
    By Robert_Matos_Jr in forum File Archive
    Replies: 3
    Last Post: 4th May 2009, 05:11 AM
  5. problem w/actives displaying wrong objects
    By 00J in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 1st April 2008, 10:32 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
  •