User Tag List

Results 1 to 3 of 3

Thread: First Steps - What am I doing wrong?

  1. #1
    No Products Registered

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

    First Steps - What am I doing wrong?

    Hi everyone. I just started messing around with TGF and MMF2 a few days ago out of curiosity, but I'm running into quite a few confusing problems with no apparent solution, or cause.

    For example, to get used to the event editor, I followed a certain tutorial on how to create custom movement. I ended up with a file that was literally identical to the one that came with the tutorial, yet mine simply doesn't work for seemingly no reason. I'd be happy if someone could take a look at this and tell me what's wrong:

    http://share.gulli.com/files/3991980...ement.rar.html

    The frame called "My Try" is obviously my recreation, the other one is the original. What's supposed to happen is that the yellow square should perform a jump when the A key is pressed.

    Another question in regards to this is why the original creator included the detector at all. Wouldn't it be enough to just do a collision check between the "Player" and a backdrop? Sorry if this is a stupid question, I'm just trying to figure out the logic.

    Anyway, that's it for now. Thanks in advance, I hope someone can help.

  2. #2
    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: First Steps - What am I doing wrong?

    Hi Faller - I wrote that

    It took me a while to work it out, because all your events are correct - it's the Hot Spot of the detector object that's in the wrong place! The Hot Spot determines the "origin" of the object, or where it's drawn from - in the position you have it, the detector ends up behind the player object rather than staying adjacent to its base, so the conditions for jumping are never satisfied.

    To fix it, go into the animation editor for the detector object and set the hot spot (eye icon) to X=0, Y=-32. This will match up with the hot spot of the yellow Player object to stay at its base.

    The detector is there because we don't actually want to check for the Player overlapping the backdrop when determining if it can jump - the Player sits "on top" (next to) the platform, and is only ever actually overlapping it inside the fastloop where we move it (and correct that if it happens by moving it back). The detector, however, stays 1 pixel below the Player and is therefore actually overlapping the backdrop when the player is sitting right next to one.

  3. #3
    No Products Registered

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

    Re: First Steps - What am I doing wrong?

    Thank you very much for the explanation. I didn't know about Hot Spots, so of course, that was one thing I didn't check. It works like intended now.

    Also, thanks for that great tutorial. Some of it was a bit confusing for a complete newbie like me, but just trying to figure out the logic behind everything and recreating the code helped me understand the basics.

Similar Threads

  1. All Steps Required to Port an MMF2 Game to OUYA
    By redpandagames in forum Android Export Module Version 2.0
    Replies: 4
    Last Post: 28th September 2013, 05:58 PM
  2. How many steps does it take?
    By King_Cool in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 6th June 2012, 01:39 AM
  3. First steps in Movement development
    By K1kk0z90 in forum Extension Development
    Replies: 8
    Last Post: 16th March 2012, 07:21 AM
  4. first steps
    By willow in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 25th October 2009, 01:38 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
  •