User Tag List

Page 2 of 2 FirstFirst 1 2
Results 11 to 18 of 18

Thread: Problem with scrolling stars example

  1. #11
    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: Problem with scrolling stars example

    Try using the "Randomize" action...
    I'm very happy to try the various options available for this type of effect, but my concern is that if I don't know why there is a problem with the method I have used, then it may cause me problems when using this type of movement in other applications that will converted to SWFs.

    I would much rather know the cause of a bug than ignore it and find another solution; it stores up problems for the future!

  2. #12
    Clicker Fusion 2.5 MacFusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleiOS Export ModuleSWF Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    UrbanMonk's Avatar
    Join Date
    May 2008
    Location
    Southern U.S.A.
    Posts
    847
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: Problem with scrolling stars example

    I can almost guarantee the problem lies with the "wrap object" action.

    Try this.

    First remove the condition that checks if the stars are going off the top of the playarea.

    Next add this condition and action:

    If Y position of "star" is lower than 0 then
    -Set Y position of "star" to 480
    EDIT: whoops meant Y not X

    Do that for all the stars and that should fix your problem.

  3. #13
    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: Problem with scrolling stars example

    Just make sure you do not use compare two general values
    Working as fast as I can on Fusion 3

  4. #14
    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: Problem with scrolling stars example

    I can almost guarantee the problem lies with the "wrap object" action.
    To my surprise, your idea of setting X=640 if X<0 does not solve the problem (my stars are moving right to left); it was my first thought for a solution too! The stars still synchronise vertically.

    I can't quite understand how they are synchronising under those circumstances.

    Currently thinking about other possible solutions. Maybe setting a random position to the right of the screen. It's a bit messy though! I know how Actionscript deals with off-screen objects, but not so sure about MMF>SWF conversions.

  5. #15
    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: Problem with scrolling stars example

    Just make sure you do not use compare two general values
    Thanks for your reply. I'm not sure how this relates to the problem I am having! Is there something I need to know. OK, there's lots that I need to know, but you know what I mean!

  6. #16
    Clicker Fusion 2.5 MacFusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleiOS Export ModuleSWF Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    UrbanMonk's Avatar
    Join Date
    May 2008
    Location
    Southern U.S.A.
    Posts
    847
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: Problem with scrolling stars example

    Ok, I just made a simple starfield that uses the bouncy ball movement and the bug isn't happening for me.

    http://jfile.us/?id=3636ef

    Tell me what's different with yours that could be causing the problem.


    The bug did happen, but I had to leave it running for a while.

    It seems like the stars are getting "caught" on the right for awhile, then all the sudden the flash runtime catches up with it's events and executes the action.

    This takes a group of stars that are pass the wrap boundary and aligns them on the other side.

    There is two ways to fix this.

    1. Instead of setting the X position to 640 when it's position is less than 0 X. Just Add 660 to the position instead. Even if a group of stars manage to get beyond the wrap point before the repositioning action get executed they'll still be in the correct positions relative to one another rather than aligned.

    2. Create new stars at a constant interval and destroy the ones that leave the side of the screen.

  7. #17
    Clicker Multimedia Fusion 2SWF Export Module
    Jacob's Avatar
    Join Date
    Jul 2007
    Location
    Second pixel to the right
    Posts
    3,208
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Problem with scrolling stars example

    Quote Originally Posted by Digitalic
    Is there something I need to know. OK, there's lots that I need to know, but you know what I mean!
    MMFs object selection only works when you select the object in the event editor. If it is in an expression, it doesn't work. So clicking on the object and comparing to an alterable value directly will make all actions pertain to the object with that alterable value. If you did compare two general values to compare the value, the actions will be applied to all of the objects.

  8. #18
    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: Problem with scrolling stars example

    1. Instead of setting the X position to 640 when it's position is less than 0 X. Just Add 660 to the position instead.
    Have had the above configuration running for 1/2 hour without any issues being apparent.

    I think this is the preferred method. I am now also randomising the Y position which prevents obvious 'patterns' of stars looping around the screen.

    I don't know how MMF creates/destroys objects, but I suspect that there are greater overheads than simply changing the X,Y coordinates of an existing object.

    Thanks.

Page 2 of 2 FirstFirst 1 2

Similar Threads

  1. stars scrolling in background
    By xeemo in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 11th February 2011, 11:02 PM
  2. Stars
    By templer in forum Articles
    Replies: 1
    Last Post: 14th October 2008, 11:48 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
  •