User Tag List

Page 2 of 2 FirstFirst 1 2
Results 11 to 16 of 16

Thread: How to Save data across frames.

  1. #11
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module

    Join Date
    May 2012
    Location
    NSW, Australia
    Posts
    405
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by TheSketchySide View Post
    I see, But know I have another question (I was thinking of making a seperate thread for it but's it's a very similar question and that would be wasting space)
    How would it be possible to transfer counter data across frames and so that every time it increased it stayed like that across frames.
    The same as with the positions
    Set global value A to Counter
    Start of frame: Set Counter to Global Value A

    Store the counter value in a global value to carry it across frames, then on the next frame set the counter to the global value.

    Or use the global values as your score/time whatever, and set the counter to display those values.

    Also for the RPG, going into homes/shops.
    Player leaves the shop:
    Set global value A: (X Position you want player to appear on the next frame, eg outside of shop)
    Set global value B: (Y Position you want player to appear on the next frame, eg outside of shop)

    Start of frame:
    Set Player X - global value A
    Set Player Y - global value b

    There are many ways this can be done, but this is just a simple example.
    if i have time later ill do a quick example of entering/exiting shops, carrying scores over etc.

  2. #12
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module

    Join Date
    May 2012
    Location
    NSW, Australia
    Posts
    405
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    sorry heres a really quick mockup
    http://game-td.vacau.com/globalvalues2.zip

    The example doesn't remember what coins you destroyed, so when you come back out they're all there again. Just shows you how to carry scores over with global values and how to enter/exit rooms and appear outside them.

    Though for the score method, doing what Zem mentioned would be better (setting counter to global object), i actually didn't realise you could do this!

  3. #13
    No Products Registered

    Join Date
    Sep 2013
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I sorta figured out how to by simply making it so that when you earn gold it adds to the global value, but thanks anyway guys!

  4. #14
    Clicker Fusion 2.5Mac Export Module
    Zem's Avatar
    Join Date
    May 2012
    Location
    UK
    Posts
    184
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    congrats i don't like using global values for things unless it relates to application wide values but whatever works for you .

    another way would be to set the counter to being global, using one of its internal alterable values and at the start of the next frame setting the counter to whichever internal alterable value was used in the other frame. the counters need to be named the same ie "Counter" etc and they will link between frames.

    anyway good luck to you in your future endeavors

  5. #15
    Clicker Fusion 2.5 DeveloperHTML5 Export Module

    Join Date
    Jun 2006
    Posts
    1,469
    Mentioned
    10 Post(s)
    Tagged
    0 Thread(s)
    If I remember right the MMF core app did not work. You need to use an extension to get this to work. Take a look in the ExtensionView for an object to use on both frames like Global Store X. Then it will work. I ran into the same problem in the past.

    I hope some day this issue will be fixed since this question comes up on the forum a lot by new users. There needs to be Global Area screen where global values are listed and made simple for the new user.

  6. #16
    Clicker Fusion 2.5Android Export ModuleFirefly 3D Module

    Join Date
    Sep 2010
    Posts
    577
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    I use 2 global variables (counters) to save x and y values from the player. If you have a frame that is a menu for example you'd want to save your exact position because when you exit the menu and return to your previous frame you want the character to be in the spot you were when you entered the menu

Page 2 of 2 FirstFirst 1 2

Similar Threads

  1. Sharing data between frames (sub-apps)
    By aidmm in forum iOS Export Module Version 2.0
    Replies: 1
    Last Post: 2nd November 2011, 08:38 AM
  2. How to save information between frames?
    By busmumrik in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 15th January 2011, 06:46 PM
  3. Storing data over several frames
    By Jason in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 9th November 2010, 09:18 PM
  4. Trying to save/load between frames
    By frankodragon in forum File Archive
    Replies: 3
    Last Post: 26th May 2008, 06:49 PM
  5. Transferring data between frames
    By Melvin in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 25th April 2007, 03:26 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
  •