User Tag List

Results 1 to 3 of 3

Thread: Random Encounters, how do i do this?

  1. #1
    No Products Registered

    Join Date
    Jan 2016
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Random Encounters, how do i do this?

    So I want to make something like a Random Encounter Battle stuff, like the ones in Pokemon, There's some way i can do this?

  2. #2
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleSWF Export Module

    Join Date
    Jul 2006
    Location
    Norway
    Posts
    333
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    use the expression random(number), if you use random(100) it will be a random number between 0 and 99.
    Then use that number for different creatures spawns, attacks, damage etc

  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)
    Let's say you want a random encounter every 5-30 seconds while the player is walking around. You can do something like this pseudocode:

    Code:
    Start of application      --> Set RandomEncounterTimer to 5*60 + random(25*60)
    Player is walking         --> Subtract 1 from RandomEncounterTimer
    RandomEncounterTimer <= 0 --> Set RandomEncounterTimer to 5*60 + random(25*60)
                                + Jump to frame "Random encounter"

Similar Threads

  1. Random Active Spawn in Random Location in Frame
    By Top_of_the_Temple in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 20th October 2016, 03:33 AM
  2. Random Encounters, how do i do this?
    By Fillipem in forum Fusion 2.5
    Replies: 1
    Last Post: 8th January 2016, 10:47 PM
  3. Mario ghost random random spawn
    By Sparckman in forum Guides, Tutorials, Examples, Widgets
    Replies: 0
    Last Post: 30th May 2014, 06:48 PM
  4. Random and MT Random strange behaviour
    By crusher in forum iOS Export Module Version 2.0
    Replies: 0
    Last Post: 8th October 2011, 01:32 PM
  5. Random Speed + Ypos at random times
    By Keehan in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 14th May 2011, 05:25 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
  •