User Tag List

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 17

Thread: Lerp and Isometric Games

  1. #1
    Clicker Multimedia Fusion 2iOS Export Module

    Join Date
    Apr 2012
    Posts
    53
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Lerp and Isometric Games

    Hi All,

    having a bit of trouble again... this time with the lerp command. I have used the search function, as well as Google, and can see the following:

    The formula for lerp is just:
    lerp(x,y,a) = x*(1-a) + y*a
    (or a variant is: x + (y-x)*a)

    Therefore, for my object, I am trying to use lerp on an object's x position as well as y to make it follow another object smoothly.

    lerp(X( "Active 5" ),X( "Active 4" ),1)

    I have tried different numbers at the end, and the system can not recognise it. I'm sure I'm doing something simple wrong, but I'm just not seeing it. Still trying to learn the difference between MMF2 and Construct.

    Can anyone help with this?

    Secondly, I am trying to build an isometric level. I intend on building the objects, etc in 3DS Max, save to sprites, and then import into MMF2. I eventually intend on having a path finding, etc, but for now, I'll just leave that for a future question

    http://dl.dropbox.com/u/50465867/ISOTEST.mfa

    I figured I could just have the object (currently using a ball as a placeholder) determine it's order based on its position in the world. "IF A-Y IS LOWER THAN B-Y THEN CHANGE ORDER". And that kind of works, but I'm wondering if there's something I should know from the start. I looked at the examples and extensions, but many of those are many years old. I was wondering if anyone could share their input and recommend what they consider the best method.

    Thanks in advance!

  2. #2
    Clicker Multimedia Fusion 2iOS Export Module

    Join Date
    Apr 2012
    Posts
    53
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Also, could someone please explain how I get Box2d working in MMF2? Do I download an extension, is it already there, is it a separate file? Also, I recall reading that it's not compatible with IOS... is that right? Seems a little surprising. How do we get physics in mobile games?

  3. #3
    Clicker Multimedia Fusion 2 Developer
    alspal's Avatar
    Join Date
    Nov 2007
    Location
    Australia
    Posts
    171
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    It's a pity MMF2 doesn't have a lerp system expression, it's very outdated so you'll have to wait quite a few years for MMF3.

    I haven't used lerp in MMF2 yet, but maybe if you change that 1 to 1.0 it might work (in the "x*(1-a) + y*a" expression) maybe.

  4. #4
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module
    happygreenfrog's Avatar
    Join Date
    May 2011
    Location
    I.L.T.D.O.I.R (I.L.T.D.O.I.R's Location: The Dimension Of Infinite Recursion)
    Posts
    4,307
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    For Box2D, I think you might need MMF2DEV. You can upgrade from MMF2 to MMF2DEV, if you want.

  5. #5
    Clicker Multimedia Fusion 2 DeveloperiOS 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)
    King_Cool's Avatar
    Join Date
    Aug 2008
    Posts
    2,335
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    What is "lerp"?

  6. #6
    Forum Moderator

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export ModuleInstall Creator Pro
    nivram's Avatar
    Join Date
    Jul 2006
    Location
    Bandon, Oregon
    Posts
    6,773
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)
    ​458 TGF to CTF 2.5+ Examples and games
    http://www.castles-of-britain.com/mmf2examples.htm

  7. #7
    Clicker Multimedia Fusion 2 DeveloperiOS 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)
    King_Cool's Avatar
    Join Date
    Aug 2008
    Posts
    2,335
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    "Calculates a number between two numbers at a specific increment. The amt parameter is the amount to interpolate between the two values where 0.0 equal to the first point, 0.1 is very near the first point, 0.5 is half-way in between, etc. The lerp function is convenient for creating motion along a straight path and for drawing dotted lines."

    All this fuzz, for motion along a straight paht!?
    Im sure i dont get this, so ill just leave this to people who understand.

    Good luck

  8. #8
    Forum Moderator

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export ModuleInstall Creator Pro
    nivram's Avatar
    Join Date
    Jul 2006
    Location
    Bandon, Oregon
    Posts
    6,773
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)
    +1 King_Cool

    Marv
    ​458 TGF to CTF 2.5+ Examples and games
    http://www.castles-of-britain.com/mmf2examples.htm

  9. #9
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    There is no lerp command in MMF2. You can directly use the formula you provided in MMF2 instead. Perhaps MMF3 will allow us to define our own functions just as we can define our own variables
    Working as fast as I can on Fusion 3

  10. #10
    Clicker Multimedia Fusion 2iOS Export Module

    Join Date
    Apr 2012
    Posts
    53
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by happygreenfrog View Post
    For Box2D, I think you might need MMF2DEV. You can upgrade from MMF2 to MMF2DEV, if you want.
    Really? Do we have an alternative for realistic physics? I just bought MMF2, so I'm not looking to upgrade just yet. I'd like an object's mass to influence another object's movement upon collision. The ball motion just bounces. Is this not possible, even with extensions?

Page 1 of 2 1 2 LastLast

Similar Threads

  1. a plugin or feature for "lerp"
    By BrashMonkey in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 25th February 2011, 09:33 AM
  2. Isometric Confusion
    By Nusua in forum Extension Development
    Replies: 6
    Last Post: 7th March 2009, 10:21 AM
  3. isometric help
    By strangely in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 22nd December 2008, 11:00 AM
  4. Isometric
    By robi in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 31st December 2007, 11:49 AM
  5. collisions with isometric games
    By mussashimits in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 27th December 2006, 02:52 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
  •