User Tag List

Results 1 to 3 of 3

Thread: Help! I'm stumped!

  1. #1
    No Products Registered

    Join Date
    Sep 2008
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Help! I'm stumped!

    I am making a 2d Final Fantasy-like RPG. I made it so each frame in the program is a room in the dungeon. The problem is that each time I leave and re-enter a room all of the enemies and items in the room respawn and my sprite loads in the default position instead of near the entrance where it came from. I tried saving and loading frame positions and that seemed to work at first, but then I started getting error messages. I've checked the tutorials and nothing seems to cover this problem. Is there a better way to save and load frame data?

  2. #2
    Clicker

    Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export Module
    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)
    DaveC's Avatar
    Join Date
    Jun 2007
    Location
    Perth, Australia
    Posts
    2,132
    Mentioned
    16 Post(s)
    Tagged
    0 Thread(s)

    Re: Help! I'm stumped!

    there are many ways to do what you want. first you should get your player character working.

    here is the basic concept, have your player character placed off screen on each frame. Now at the start of each frame you position the player character at runtime, you could use a global value,

    start of frame
    +only one action when event loops
    global value A = 1 set position of player to X,Y co-ordinates. (at door 1)
    global value A = 2 set position of player to X,Y co-ordinates.
    (at door 2)

    and so on and so on. now when you exit the screen, you set the global value A to whatever position you want to load in the next frame... does that make sense?

    as for enemies, maybe you'd want to use the Array object or the save game object and load the enemies at each frame start, depending on if they have been killed already or not, you could use an enemies flag or alterable value for this.

  3. #3
    No Products Registered

    Join Date
    Sep 2008
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Help! I'm stumped!

    Thanks a lot! Using a global variable to store and load positions and a flag to destroy monsters and items seems to work.

Similar Threads

  1. I'm stumped with a custom movement...
    By KLiK-iT in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 26th June 2013, 09:49 PM
  2. Stumped...
    By Earl in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 18th July 2012, 06:08 AM
  3. Insight into wrong individual problem? STUMPED!
    By alxmrg in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 19th September 2010, 07:24 PM
  4. Stumped with INI
    By camelman in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 8th September 2008, 09:27 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
  •