User Tag List

Results 1 to 6 of 6

Thread: Help with moving platforms? Sorry, I'm trying!

  1. #1
    No Products Registered

    Join Date
    Mar 2008
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Help with moving platforms? Sorry, I'm trying!

    Hi everybody. I'm getting pretty far into development for my first real game, and I decided to go platformer. I used the fastloop custom platform movement tutorial (DavidN I think?), and what a beautiful and customizable tutorial it is. I was just about to hit level design until I realized I needed some type of vertical moving platform. But I have the same problem as I've read in other threads (which haven't helped me): my character just falls through the platform.

    To save space and since I'm using that tutorial, I've just taken the platform frame from it and pasted in the events I think constitute my closest try for the platform to work. My guess is that the problem lies in how many times the fastloop wants to run, or maybe that the gravity loop starts right where I leave off every time. Whatever the case, I just can't get it.

    If the author of the tutorial sees this, sorry for deserting the fastloop style for implementing the platform itself. I just didn't see the point for something that simple. Though I'm a rookie.

    Can somebody have a look?

    Link to .MFA file is:
    http://inernat.com/HelpPlat.mfa

  2. #2
    No Products Registered

    Join Date
    Jun 2006
    Location
    Land of raging rockets
    Posts
    1,231
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Help with moving platforms? Sorry, I'm trying!

    Well it's actually not -that- simple to get it done. You pretty much have to understand exactly what's going on in your platform movement.
    I suspect the problem here is, that by the time "grav" of the player is more than 1, the lift has already moved on and the collider will miss.

    First of all - the solution. Go to the event of the overlapping lift and change it to:

    + on loop gravity
    + grav of player > 0
    + detector is overlapping lift1
    > player > set y position to y(lift1) - 15
    > player > set grav to 1
    > stop loop gravity
    > detector > set position at 0,0 from player
    > player > set jumpcount to 1

    Now how I got there?
    I noticed you forgot positioning the detector. And by setting grav to 1, we make sure the collision is checked every frame. Then of course the relative position to the lift has to be correct. Last thing is the jumpcount. If you set it to 0, you can't jump on the lift. If that's not desired, set it to 1.

    Enjoy.

  3. #3
    Forum Moderator Fusion 2.5 DeveloperHTML5 Export ModuleiOS Export ModuleSWF Export Module
    DavidN's Avatar
    Join Date
    Jun 2006
    Location
    Boston, MA, USA
    Posts
    4,044
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Help with moving platforms? Sorry, I'm trying

    Any way you can do it is valid, as long as it works! I've actually tried to add vertically-moving platforms to my platform movement before, and only came up with a ridiculous way involving saving the ID of the moving platform that the player collides with and then moving the player along with that (because there's something a bit funny about detecting collisions in and across fastloops - I meant to talk to the developers about that).

    Random describes the problem with it exactly - I'd go with his suggestion first, and if that doesn't do it, I'll have a go at explaining my solution...

  4. #4
    Forum Moderator Fusion 2.5 DeveloperHTML5 Export ModuleiOS Export ModuleSWF Export Module
    DavidN's Avatar
    Join Date
    Jun 2006
    Location
    Boston, MA, USA
    Posts
    4,044
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Help with moving platforms? Sorry, I'm trying

    Well, I've just had a look, and Random's method seems to work perfectly... which makes me wonder why it took so long for me to get them working myself! I think I must have been overcomplicating things for myself by putting the moving platforms in the same qualifier as the other actives that you can stand on, making them affected by both sets of events. And while this method needs you to add another event so that you can jump off the moving platform (it's the same as the one for Group.0)... it's really worth it.

  5. #5
    Clicker Multimedia Fusion 2SWF Export Module
    weka's Avatar
    Join Date
    Mar 2009
    Location
    America
    Posts
    267
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Help with moving platforms? Sorry, I'm trying

    It's not working. I followed all directions :\

    http://www.mediafire.com/?sharekey=4100c9e7e18bad845bf1f12f1ff3f30ae04e75f6 e8ebb871

    ^^ mfa file

  6. #6
    Clicker Multimedia Fusion 2SWF Export Module
    weka's Avatar
    Join Date
    Mar 2009
    Location
    America
    Posts
    267
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Help with moving platforms? Sorry, I'm trying

    The only problem I see is when the platform you're on goes up and you're guy gets stuck in a wall. haha... any way you think of how to fix that?

    edit...
    Ohhhhhhhhh.. never mind Looks like Random's method isn't perfect.

    - You can't double jump off the platform. I tried fixing a few things and that didn't help
    - The gravity is a lot more so you won't jump up as high.

    Dang... Back to the draw board... huh. :\

Similar Threads

  1. Moving Platforms
    By PimeX in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 23rd January 2011, 01:55 PM
  2. Moving Platforms
    By RickyRombo in forum Multimedia Fusion 2 - Technical Support
    Replies: 11
    Last Post: 8th June 2010, 02:38 AM
  3. Moving Platforms
    By KingToast in forum Multimedia Fusion 2 - Technical Support
    Replies: 25
    Last Post: 9th June 2009, 01:24 AM
  4. Moving Platforms help
    By N64Mario in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 18th May 2009, 10:44 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
  •