User Tag List

Results 1 to 9 of 9

Thread: Entering and exiting a frame

  1. #1
    No Products Registered

    Join Date
    Jun 2008
    Posts
    13
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Entering and exiting a frame

    I have noticed that when I exit a frame say to the right any code I have exacutes fine. Its when I enter a frame that my code seems to not get exacuted. When I exit say frame 1 it jumps to frame 2 no problem. But how do I let frame 2 know I entered it from the left without setting a switch to tell it. Their is a enter frame from direction condition, I have just not been able to figure out how to trip that condition.

  2. #2
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module
    Jaffob's Avatar
    Join Date
    May 2008
    Location
    USA
    Posts
    1,833
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Entering and exiting a frame

    So you have two frames, one of which you exit on the right, the other you enter on the left? Like two rooms?

  3. #3
    No Products Registered

    Join Date
    Jun 2008
    Posts
    13
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Entering and exiting a frame

    Correct. Its a Kings Quest type play. you will walk out of one frame into another.

  4. #4
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module
    Jaffob's Avatar
    Join Date
    May 2008
    Location
    USA
    Posts
    1,833
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Entering and exiting a frame

    So if the player exits on the right of frame 1, then you could record their Y position in a global value, then jump to frame 2, and position the player at (0, Global Value). Then I guess you could just use "Start of Frame".

    Hope that helps.

  5. #5
    No Products Registered

    Join Date
    Apr 2008
    Location
    Miami, Florida
    Posts
    116
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Entering and exiting a frame

    Here's an example:


    Edit: there's a problem with the example, ill upload a fixed version later

    Edit Again: Here's the fixed version:

    http://files.filefront.com/Exiting+and+Entering+Framemfa/;10615108;/fileinfo.html

  6. #6
    No Products Registered

    Join Date
    Jun 2008
    Posts
    13
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Entering and exiting a frame

    No, I have that working fine. In frame 1 make a counter and place it on the screen so you can see it. Next make a condition that when you enter the frame from the right you set the counter to 1.
    if you run the app the counter does not get changed. But if you run the frame only and leave and return it sets the counter to 1.
    I was just woundering if thats the entended effect. I have a work around of setting the globals on exiting frames but was just woundering if it was possiable to check a condition on entering from left, right, up, or down from inside the frame I just entered without setting flags befor I left frame 2.

  7. #7
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jul 2006
    Location
    Denmark
    Posts
    1,812
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Entering and exiting a frame

    Well, on exiting the frame you could check whenever the position of the player is near the visible edges of the screen, and then set a value that identified the direction.

  8. #8
    No Products Registered

    Join Date
    Jun 2008
    Posts
    13
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Entering and exiting a frame

    MechaBowser I check on exit of frame now and that works. I do perty much what InsertNameHere example shows. Im beginning to just think the enter frame from a direction is not tied to the previous frames exit stradgy . I want to thank you all for your input it was cool.

  9. #9
    No Products Registered

    Join Date
    Apr 2008
    Location
    Miami, Florida
    Posts
    116
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Entering and exiting a frame

    I'm glad I could help.

Similar Threads

  1. unicode not entering mysql database
    By crugh in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 16th April 2014, 06:32 PM
  2. Behaviour when exiting application (XCode)
    By DavidN in forum iOS Export Module Version 2.0
    Replies: 3
    Last Post: 5th July 2011, 06:41 PM
  3. Load application works, crash if exiting
    By RayMarble in forum The Games Factory 2 - Technical Support
    Replies: 2
    Last Post: 8th January 2009, 04:01 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
  •