User Tag List

Results 1 to 7 of 7

Thread: Help with infinite Y position

  1. #1
    Clicker Multimedia Fusion 2

    Join Date
    Mar 2012
    Posts
    44
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Help with infinite Y position

    Hi, I'm going to explain you what I want and see if anyone can help me.

    I have a frame that is 480x480 in size. I set its Virtual Width to 480 and its Virtual Height to -1. I did this because I have an Active with platform movement, and I want it to endlessly fall on the height of the frame. I already achieved this.

    So, my question is this. I want other Actives to appear at random in the endless level. I know that, for X, the position has to be random(480). How can I place the random objects for Y? Using random(-1) is not working for me. What am I doing wrong?

    Thanks a lot!

  2. #2
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export ModuleXNA Export Module
    ProdigyX's Avatar
    Join Date
    Jan 2011
    Posts
    1,197
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    For a infinite height frame, it would be wise to generate the objects at certain increments, such as every 480th or 960th pixel. If you were to go this route, you would simply do have the expression to be [Frame Top Visible Edge + Random(480)] for every 480th pixel and [Frame Top Visible Edge + Random(960)] for every 960th pixel.

  3. #3
    Clicker Multimedia Fusion 2

    Join Date
    Mar 2012
    Posts
    44
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks ProdigyX.

    I am an intermmediate user of MF2, but its one of my first times using randoms and I don't really get what you mean. Would it be too much if I ask you for a MFA example?

    Thanks a lot!

  4. #4
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export ModuleXNA Export Module
    ProdigyX's Avatar
    Join Date
    Jan 2011
    Posts
    1,197
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    As a matter of fact! I don't need to. I have a few examples of such here laying about.

    https://www.dropbox.com/s/8k41kyqtc3...slunaquito.mfa

    There ya go, This should meet the criteria specified although if it does not, let me know and i will fix up a new one

  5. #5
    Clicker Multimedia Fusion 2

    Join Date
    Mar 2012
    Posts
    44
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question

    Dear ProdigiyX:

    You're gonna kill me but I can't understand your mfa yet. In order to make it easier, I'm uploading my mfa soy you can help me in it.

    As you can see, the Ball has a platform movement and it falls endlessly because of the -1 virtual height. For the width, there's an event to make it stop when touching windows edge. Outside, I have a red bar and I've made some events that place that bar in a random X, Y position at the start of the frame. Well, I want that bar to be created infinite times at random X (480) and Y (infinite) positions.

    Is it possible?

    sebaslunaquito1.mfa

  6. #6
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export ModuleXNA Export Module
    ProdigyX's Avatar
    Join Date
    Jan 2011
    Posts
    1,197
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    https://www.dropbox.com/s/vdoj6ywfvv...lunaquito1.mfa

    Uses exact same techinique as last file. (The last 4/5 lines are the code for each file)

  7. #7
    Clicker Multimedia Fusion 2

    Join Date
    Mar 2012
    Posts
    44
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks a lot! You saved my life! LOL

Similar Threads

  1. Infinite image scroll
    By loglady in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 29th July 2013, 10:48 PM
  2. Infinite scroll
    By PandaExplosion in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 15th August 2011, 04:20 AM
  3. Infinite scrolling help needed
    By pikzilla in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 1st January 2011, 08:20 PM
  4. Invasion Infinite - Starting
    By RickyRombo in forum File Archive
    Replies: 29
    Last Post: 14th July 2009, 04:01 AM
  5. Infinite mouse movement
    By Morthian in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 7th January 2007, 09:47 AM

Tags for this Thread

Posting Permissions

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