User Tag List

Results 1 to 2 of 2

Thread: Huge problem with send global values between frames ? iOS Project.

  1. #1
    Clicker Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)iOS Export Module (Steam)

    Join Date
    Jan 2015
    Posts
    262
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Huge problem with send global values between frames ? iOS Project.

    Hi,
    I have a game with four (4) frames. The rules are simple. You have to collect coins. I have huge problem with save my BESTSCORE and retrieve it in another frame. But first I would like to describe you my game structures.

    I have global value -> “bestcoinscore”
    FRAME 1 (START)
    There is only one button – PLAY. When you press it -> Go to another frame “CHARACTER”
    FRAME 2 (CHARACTER)
    In this frame I have:
    a) 2 counters ( first counter show current “coins” from game and second counter show best “coins” score. Counter called “currentcoins” and “bestcoins”)
    b) Active object - > RETURN TO “ START” frame.
    c) Ini object (best “coins” score is saving to this object)
    d) 3 active object ( You can choose your character which you want to play. But on beginning you can choose only Character no. 1. If you want choose another character you need collect more money e.g
    Character no. 1 – 0 coins
    Character no. 2 – 20 coins to unlock
    Character no. 3 – 50 coins to unlock

    So, I need current value from “GAME” frame or “GAMEOVER” frame. If you collected 20 coins Character no. 2 will be unlock and so on.

    Inside “CHARACTER” frame I have event : Always -> Retrieve value from global value “bestcoinscore” to counter “currentcoins”.

    FRAME 3 (GAME)
    This is game frame. Here you have to collect coins and destroy enemy. I have counter “gamecoins” in this frame. My events:
    Always -> set global value “bestcoinscore” to counter “gamecoins”

    If you loose game send you to “GAMEOVER” frame
    FRAME 4 (GAMEOVER)
    Here you can check your current score and best score (coins). I have ini object to save best score.
    In this frame I have:
    a) 2 counters ( first counter show current score (collected coins) from game and second counter show best score. Counter called “score” and “bestscore”)
    b) Ini object to save best score
    c) Active object -> RETURN TO START FRAME (if you press - > go to “START” frame)
    d) Active object -> RESTART (Go to “GAME” frame)

    My best score saving when you click on RETURN TO START FRAME button or RESTART button. I try set also START OF FRAME - > save -> bestscore and ALWAYS ->save->bestscore.

    Problems:
    If I loose in game my bestscore is saving from counter “bestscore” (GAMEOVER frame). It’s works. My bestscore is send to global value “bestcoinscore”. It’s ok. After that when I loose and press RETURN TO START FRAME , and next I press “START” i can see there my bestscore (collected coins). It’s works very well.
    but

    If I loose in game and next I close my game (application) and after that start game again my bestcoin value is not saved in “ CHARACTER” frame but it’s saved on GAMEOVER frame. If I want see bestscore value in my “CHARACTER” frame a I have to go to GAMEOVER frame and next go back to “CHARACTER” frame.

    My question is:
    1. It is possible “retrieved” value from “GAMEOVER” frame and show this value in my “CHARACTER” frame ? ( I try with GLOBAL EVENTS but it’s not working) I would like to always set global values “bestcoinscore” from counter “bestscore” from “GAMEOVER” frame.
    2. Maybe somebody know another , better methods to resolve my problem ?

  2. #2
    Clicker Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)iOS Export Module (Steam)

    Join Date
    Jan 2015
    Posts
    262
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    I solved my problem.

Similar Threads

  1. Replies: 2
    Last Post: 30th June 2014, 01:32 AM
  2. Global Values & Alterable Values with same names
    By Gustav in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 7th November 2012, 06:15 PM
  3. How to send-recieve objects betweven two frames in an APP
    By Jonbulica in forum The Games Factory 2 - Technical Support
    Replies: 5
    Last Post: 17th November 2011, 04:25 PM
  4. Can you send Object through Frames?
    By Downup2 in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 28th May 2009, 07:33 PM
  5. Negative values in a List, and Global Values
    By aidmm in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 20th January 2007, 06:08 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
  •