User Tag List

Results 1 to 8 of 8

Thread: randomly spawning and dissappearing objects

  1. #1
    No Products Registered

    Join Date
    Nov 2014
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    randomly spawning and dissappearing objects

    I bought Clickteam Fusion 2.5 on Steam today and want to create a game where the player has to click on food objects that randomly appear to lower the hunger level.
    So the objects have to randomly appear and dissappear in the level to make this challenging.

    Problem is, I don't really know how to do this.

    What I tried now is, I created the objects in the frame and make them destroy at start of frame.
    then I added a random event "X chances out of Y at random for every object and selected create object as action.
    Then I created more random events with destroy at each object to randomly destroy them again.


    Unfortunately, it is not working.

    I posted a screenshot of my event manager in the attachment.

    Any suggestions?

    Screenshot_1.jpg

  2. #2
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleFirefly 3D Module
    aenever's Avatar
    Join Date
    Jun 2013
    Posts
    1,517
    Mentioned
    25 Post(s)
    Tagged
    0 Thread(s)
    For quicker responses in my experience, it's best to provide a .mfa example, then fellow Fusion Clickers can examine your code and make alterations and comment or post an adapted .mfa - Its much easier than commenting on a snapshot of your code.

  3. #3
    No Products Registered

    Join Date
    Nov 2014
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I've uploaded it, but I removed the actions for now since they are not working.

    I could not upload it in attachment because the file is too large.

    http : // www.file-upload . net /download-9850757/test.mfa.html

  4. #4
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleFirefly 3D Module
    aenever's Avatar
    Join Date
    Jun 2013
    Posts
    1,517
    Mentioned
    25 Post(s)
    Tagged
    0 Thread(s)
    Sorry nex86 your link is broken

  5. #5
    No Products Registered

    Join Date
    Nov 2014
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    it works fine for me, you have to remove the spaces because it wouldn't let me allow to post the full link.

    I reuploaded it on my dropbox: https://www.dropbox.com/s/ufv0dfvzk81zrho/test.zip?dl=0

  6. #6
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleFirefly 3D Module
    aenever's Avatar
    Join Date
    Jun 2013
    Posts
    1,517
    Mentioned
    25 Post(s)
    Tagged
    0 Thread(s)
    Hi Nex86, there would be many ways to achieve this, I'm not the best at coding yet my attempt should give you some ideas. You can play with the values to make the food reapear slower or faster. Good luck, cool concept.

    https://www.dropbox.com/s/2apw27k808...t%202.mfa?dl=0

  7. #7
    No Products Registered

    Join Date
    Nov 2014
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thank you, I have one question. What does the value "49" do?

  8. #8
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export Module

    Join Date
    Jul 2010
    Posts
    91
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It's the range of the value that will compare with the counter. the lines says this:
    If counter 3 equals random 49 (here it will check if the value is one of the numbers 0-49) then: make an object appear or go invisible (depending on what number will be generated)

Similar Threads

  1. Spawning Random Objects
    By Stu in forum The Games Factory 2 - Technical Support
    Replies: 5
    Last Post: 29th October 2012, 05:31 AM
  2. Box2D objects disappearing randomly
    By SolarB in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 4th July 2012, 08:01 PM
  3. Randomly choosing two objects example for beannie
    By Brandon in forum File Archive
    Replies: 1
    Last Post: 9th November 2007, 10:22 AM
  4. Active objects appear and dissapear randomly
    By Skeets in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 5th September 2007, 10:58 AM
  5. Creating Objects Randomly In the Frame
    By LPStreetSoldierM in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 22nd August 2006, 07: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
  •