User Tag List

Results 1 to 8 of 8

Thread: How do I give these "Random Occurences" some separation?

  1. #1
    No Products Registered

    Join Date
    Nov 2014
    Location
    Ohio
    Posts
    34
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How do I give these "Random Occurences" some separation?

    My horror game is filled with a bunch of random occurrences, and I hope to add even more.


    http://gyazo.com/4a824c3ce1f28f5a28819330feb40f22

    I want each of these to run at the Start of Frame, and about 1/50 times, something will happen.
    each one is an alternate design on one of the walls or objects throughout the map.
    Sometimes this wall will be normal, other times it could have words written on it, it's just a creepy random feel.

    It was working pretty well, but sometimes when one of these happen, they all trigger at once.
    I don't mind the tiny possibility of them all triggering at once, but I certainly do not want all of them triggering just because one did.
    Any idea why this happens?

  2. #2
    Clickteam Clickteam
    Jeff's Avatar
    Join Date
    Jun 2006
    Location
    Battle Ground Washington
    Posts
    11,822
    Mentioned
    7 Post(s)
    Tagged
    2 Thread(s)
    Interesting.... Something to look into for a bug report as they shouldn't all trigger.
    The odds of that

    I might just use an alterable value so you can see when one has been triggered and then check it to prevent others from also triggering.
    But there must be a bug here with this condition.

  3. #3
    Forum Moderator Fusion 2.5 DeveloperHTML5 Export ModuleiOS Export ModuleSWF Export Module
    DavidN's Avatar
    Join Date
    Jun 2006
    Location
    Boston, MA, USA
    Posts
    4,044
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I wonder if the random number for these events is generated once at the start of the event list and then used all the way down? It doesn't sound likely, though... you could try replacing them with Compare two general values --> random(52) = 0 and seeing if that gives you a better spread.

  4. #4
    No Products Registered

    Join Date
    Nov 2014
    Location
    Ohio
    Posts
    34
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    @Jeff Perhaps. I just learned how to do these sort of events yesterday, so it's also pretty likely I just made an error. Thanks for the reply!

  5. #5
    No Products Registered

    Join Date
    Nov 2014
    Location
    Ohio
    Posts
    34
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    @DavidN
    Here are my results of trying this:
    I re-launched my game multiple times to see how consistent it is.

    (High chances for testing purposes)

    #1: 2/10 random occurrences
    #2: 2/10 random occurrences
    #3: 1/10 random occurrences
    #4: 3/10 random occurrences
    #5: 1/10 random occurrences
    #6: 2/10 random occurrences
    #7: 3/10 random occurrences
    #8: 2/10 random occurrences
    #9: 2/10 random occurrences
    #10: 1/10 random occurrences

    This was done on 1/5 chance.

    It seems to work pretty well. I will be sure to lower the chances to 1/50, and see how it goes as I test my game. Thanks!

  6. #6
    No Products Registered

    Join Date
    Nov 2014
    Location
    Ohio
    Posts
    34
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Actually, I believe the problem happens when I restart the frame without restarting the application. The Random Occurences stay, and they begin to pile up.
    I am not sure how to restart the process each time the frame starts.

  7. #7
    Forum Moderator Fusion 2.5 DeveloperHTML5 Export ModuleiOS Export ModuleSWF Export Module
    DavidN's Avatar
    Join Date
    Jun 2006
    Location
    Boston, MA, USA
    Posts
    4,044
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ah - that sounds like a bug in Fusion itself! Maybe submit that to the bug box with an MFA that demonstrates the problem.

  8. #8
    No Products Registered

    Join Date
    Nov 2014
    Location
    Ohio
    Posts
    34
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    *FIXED*

    So, the problem was that the animations would not revert back to Frame 0, but all start with their "secret" frame.
    I fixed this by doing

    *Start of Frame
    -Force Animation Frame to 0

    on all of the objects.

    Then, I added "Current frame of Object = 0" to the random events.

Similar Threads

  1. Random Chunk Generator using "Create New Objects"?
    By darkmanx_429 in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 7th August 2013, 12:42 PM
  2. Random avec "entre"
    By flechenoir in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 13th October 2012, 02:57 PM
  3. "Random()" only picks a number lower than 100,000?
    By Jase in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 23rd September 2011, 02:51 PM
  4. Fonctionnement de l'extension "Random Pool"
    By BenjaminG in forum File Archive
    Replies: 0
    Last Post: 19th March 2008, 12:57 PM

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
  •