User Tag List

Results 1 to 6 of 6

Thread: containing the player inside a scrolling frame

  1. #1
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    mobichan's Avatar
    Join Date
    Oct 2007
    Location
    Buffalo, NY
    Posts
    3,310
    Mentioned
    28 Post(s)
    Tagged
    0 Thread(s)

    containing the player inside a scrolling frame

    I am changing my level to be a scrolling frame. But now I can't seem to do a check for the window edges to issue a STOP command to my player obj. What is the correct way to do this?

    My level is now 19200x480 and my "window" is 640x480. Any help is greatly appreciated.

    Mobichan

  2. #2
    No Products Registered

    Join Date
    Apr 2008
    Location
    Haven
    Posts
    30
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: containing the player inside a scrolling frame

    I think the "window edge" might actually be the frame edge. You could try placing a pair of invisible active objects that're 16x480 pixels just outside the visible play area, set them not to follow the frame, and test for collisions against them to stop your player.

    I think you can do expressions on the current position of the viewable window within the frame as well, so you could do something like {if player presses left and player X < Window X Offset, stop player} {if player presses right and player X > Window X Offset + 640, stop player}

    I'm still waiting for my copy to arrive, so I can't offer real code, but I recall being able to do stuff like that in the demo of 1.5.

  3. #3
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    mobichan's Avatar
    Join Date
    Oct 2007
    Location
    Buffalo, NY
    Posts
    3,310
    Mentioned
    28 Post(s)
    Tagged
    0 Thread(s)

    Re: containing the player inside a scrolling frame

    I tried:

    If x position of (player)<= X of Left Frame
    ->Stop

    It didn't work, so I am not sure how to proceed.

  4. #4
    No Products Registered

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

    Re: containing the player inside a scrolling frame

    Is this: http://files.filefront.com/Scrolling+Examplemfa/;10079534;/fileinfo.html
    what you are talking about?

    If you need any help with this just ask me.

  5. #5
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    mobichan's Avatar
    Join Date
    Oct 2007
    Location
    Buffalo, NY
    Posts
    3,310
    Mentioned
    28 Post(s)
    Tagged
    0 Thread(s)

    Re: containing the player inside a scrolling frame

    That is exactly what I was looking for. Thanks so much.

    I was trying to make an active that was a single pixel bordered box just smaller than the size of the screen filled with a transparency color (so a 630x470 hollow box), set the collision to box (non-fine collision) and test whether the player was NOT overlapping it. Then set the player to "stop." But it didn't work. Any idea why that approach would fail?

    And did you mean to delete the first condition in your example? The "Leaves play area" one?

    Thanks again,

    Mobichan

  6. #6
    No Products Registered

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

    Re: containing the player inside a scrolling frame

    Your welcome, and yea I did mean to delete, I guess I forgot.

Similar Threads

  1. 2 Player Scrolling
    By HealthyBalloon in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 9th December 2013, 03:05 AM
  2. Confined mouse pointer inside frame.....(Flash game)
    By KLiK-iT in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 16th June 2012, 02:22 PM
  3. 2 player scrolling...
    By Pritchy96 in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 4th February 2009, 10:14 PM
  4. 2 player scrolling.
    By camelman in forum File Archive
    Replies: 5
    Last Post: 14th November 2008, 12:18 AM
  5. Confiding mouse pointer inside the play frame?
    By ruffgang in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 11th February 2007, 01: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
  •