User Tag List

Results 1 to 4 of 4

Thread: Something that I need help...

  1. #1
    No Products Registered

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

    Something that I need help...

    So I was testing the engine for a game that i want to make, and in fact it's a great one and im looking foward for this one. I made an .mfa to show you what i want

    TheProblem.mfa

  2. #2
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCHTML5 Export ModuleiOS Export ModuleSWF Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    chrilley's Avatar
    Join Date
    Jul 2006
    Posts
    896
    Mentioned
    13 Post(s)
    Tagged
    1 Thread(s)
    You can use Global Values to save and load the hero's position. I altered your .mfa to show you what I mean.
    Attached files Attached files

  3. #3
    No Products Registered

    Join Date
    Jan 2016
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It's exactly what i needed thank you, but can you explain me what you modified in the .mfa, what is your coding saying

  4. #4
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCHTML5 Export ModuleiOS Export ModuleSWF Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    chrilley's Avatar
    Join Date
    Jul 2006
    Posts
    896
    Mentioned
    13 Post(s)
    Tagged
    1 Thread(s)
    Sure!

    When the counter hits 1 the game saves the hero's X and Y position to Global Value A and B before it jumps to the battle frame. I renamed the global values to HeroPosX and HeroPosY. You don't have to rename them but it helps to remember what the values are used for.

    I also made it so that the hero's position is set to Global Value A and B when the "Start of Frame" event runs.

    In the battle frame I didn't do much except jumping back to the first frame when the enemy's health reaches 0.

    Summarized what we're doing is simply saving and loading the hero's position using two global values. The strength of global values is that they are accessible from every frame in the game, unlike normal alterable values and counters they do not reset when a frame ends.

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
  •