User Tag List

Results 1 to 7 of 7

Thread: random frames without repeat

  1. #1
    Clicker Multimedia Fusion 2

    Join Date
    Jun 2007
    Posts
    163
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    random frames without repeat

    Hi

    as the title says:
    if i have a game with 20 frames for example, and i want the game to start every time with random frame, and when the player finish the frame, i want the game to jump into another random frame, but with no repeat to frames that the player already played, is there a way to do so?

  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,575
    Mentioned
    34 Post(s)
    Tagged
    0 Thread(s)
    You could use this approach, I’ve used it before for a random name generator and it works well https://community.clickteam.com/threads/72535-Random-Number-Range-Not-allowed-to-repeat

  3. #3
    Clicker Multimedia Fusion 2

    Join Date
    Jun 2007
    Posts
    163
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks aenever ,
    i didn't want to start the app, because i wanted to check if this is possible before i am starting to put effort.
    i want to create a little trivia game and it is important that same question will not repeat it self on the same game session till the game ends, good to know that it is possible

  4. #4
    Clicker Fusion 2.5
    Del_Duio's Avatar
    Join Date
    Sep 2008
    Location
    Cygnus X-I
    Posts
    967
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    You can use listboxes to choose random elements that won't repeat as well.

    Ex- Populate your listbox with these lines: 1, 2, 3, 4, 5

    Then set a variable to Val(GetLine(random(num of lines(listbox))+1) and delete that same line. Save the listbox as a file, then you have it jump to frame using that variable. Just make sure before you jump again that you load that altered listbox file up first.

    If you do this right you'll have no repeats.

  5. #5
    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,575
    Mentioned
    34 Post(s)
    Tagged
    0 Thread(s)

    Smile

    Good sugestion, the link I posted suggested that, and it's what I went with too

  6. #6
    Clicker Multimedia Fusion 2

    Join Date
    Jun 2007
    Posts
    163
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thanks guys, will try to put it into action and probably i will need more help haha, so stay tuned lol.

  7. #7
    Clicker Multimedia Fusion 2

    Join Date
    Jun 2007
    Posts
    163
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi,

    i started to build the app and i could do some stuff alone.
    it is quiz engine and now i came to the part where the player press the correct answer and the answer blinking in green for few seconds and now it is time to delete the question and to load the next question without to repeat on the last question.
    now, if i restart the frame, it loads the original list with the original 4 questions (right now just list with 4 stupid questions just for testing) , but i need it to load the list without the deleted question and no matter waht i have done...no luck.

    so...i decided to send S.O.S lol..
    please take a look on the file and tell me how to do it right if possible.(i uploaded also the question list file for you to load in the start of the frame).

    p.s i know that my work is kind of mess and that there are probably much easier and better ways to do it, but i am a beginner.
    Attached files Attached files

Similar Threads

  1. Random frames
    By anthonyjk123 in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 6th January 2017, 06:38 PM
  2. Select random level with no repeat (no extention needed )
    By Sparckman in forum Guides, Tutorials, Examples, Widgets
    Replies: 1
    Last Post: 1st June 2014, 01:36 PM
  3. Way of doing random numbers that does not repeat?
    By Outcast in forum Multimedia Fusion 2 - Technical Support
    Replies: 10
    Last Post: 9th July 2013, 11:10 PM
  4. Random Number Range + Not allowed to repeat
    By Renatos in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 4th August 2012, 06:39 AM
  5. Random frames exclude 1st
    By Tiny in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 31st December 2010, 03:19 PM

Posting Permissions

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