User Tag List

Results 1 to 9 of 9

Thread: Javascript and MMF 2

  1. #1
    No Products Registered

    Join Date
    Oct 2011
    Posts
    15
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Javascript and MMF 2

    Quick question... does a javascript scripting extension happen to exist for MMF2 Standard?

    I am going to start working with MMF 2 again, and was wondering what scripting languages were supported through extensions. I think LUA and maybe Python is supported, but am curious if javascript is too. Thanks.

  2. #2
    Clicker Fusion 2.5 Developer

    Join Date
    Jul 2008
    Location
    UK
    Posts
    1,393
    Mentioned
    16 Post(s)
    Tagged
    0 Thread(s)
    Not really, no.
    The WebView object can run javascript functions and return values from them, but its scripting functions are extremely limited compared to the Lua extensions (its main intended use is for displaying webpages).

    It's a real shame, because javascript is far more widely used than Lua - meaning people are more likely to know it already; will find it more useful for other things if they do have to learn it; and will find it far easier to get help. Plus it's much faster. You'd think something based on Google's opensource V8 Javascript engine would be possible...

  3. #3
    No Products Registered

    Join Date
    Oct 2011
    Posts
    15
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by MuddyMole View Post
    Not really, no.
    The WebView object can run javascript functions and return values from them, but its scripting functions are extremely limited compared to the Lua extensions (its main intended use is for displaying webpages).

    It's a real shame, because javascript is far more widely used than Lua - meaning people are more likely to know it already; will find it more useful for other things if they do have to learn it; and will find it far easier to get help. Plus it's much faster. You'd think something based on Google's opensource V8 Javascript engine would be possible...
    That is a shame. I never used Lua before, so don't know if I'd like it or not, but I do know at least a little javascript.

    I'm one of those coders who learned coding as a kid back in the 8-bit days, copying BASIC from old books/magazines. Most of the languages I have used (besides old BASIC) are pretty obscure ones, so it'd be nice to learn something that could potentially be useful outside of just MMF scripting. I just started with javascript coding, and it's close enough to a language I already know that most of it is not super painful to learn.

    Maybe one day someone makes an MMF extension for it. It seems like a logical choice, so sort of assumed one existed already.

  4. #4
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module
    OldSchool80s's Avatar
    Join Date
    Dec 2012
    Location
    USA
    Posts
    91
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by nameless View Post
    That is a shame. I never used Lua before, so don't know if I'd like it or not, but I do know at least a little javascript.

    I'm one of those coders who learned coding as a kid back in the 8-bit days, copying BASIC from old books/magazines. Most of the languages I have used (besides old BASIC) are pretty obscure ones, so it'd be nice to learn something that could potentially be useful outside of just MMF scripting. I just started with javascript coding, and it's close enough to a language I already know that most of it is not super painful to learn.

    Maybe one day someone makes an MMF extension for it. It seems like a logical choice, so sort of assumed one existed already.
    Hey nameless,

    I too am one of those 80s BASIC programmers, and now getting back into game programming.

    I remember the books and magazines. (The problem with using a "non-conventional" language/system is that there are few if any books/magazines available.)

    My reason for going with MMF is because of the community. (But again, I'd like to have reference material instead of having to pester/wait for answers.)

    The community here is better than I've seen with rival GameMaker, so that is why I am going with MMF.

    I just wish there were books/reference material I can devour, that were up to date and in one place.

  5. #5
    Clicker Fusion 2.5 Developer

    Join Date
    Jul 2008
    Location
    UK
    Posts
    1,393
    Mentioned
    16 Post(s)
    Tagged
    0 Thread(s)
    I doubt we'll see much in the way of major new extensions for MMF2 now, with MMF3 expected sometime vaguely soon.

    Lua is actually very similar to Javascript, just not quite as nice. If you know one, it shouldn't take too long to learn the other.
    http://phrogz.net/lua/LearningLua_FromJS.html

  6. #6
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module
    OldSchool80s's Avatar
    Join Date
    Dec 2012
    Location
    USA
    Posts
    91
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by MuddyMole View Post
    I doubt we'll see much in the way of major new extensions for MMF2 now, with MMF3 expected sometime vaguely soon.
    MuddyMole,

    I have not seen any info. related to MMF3, so why does the rumor exist? Especially since it's been patterned to be build 250, 251, etc. for a LOOOOOOONG time.

  7. #7
    No Products Registered

    Join Date
    Oct 2011
    Posts
    15
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by MuddyMole View Post
    I doubt we'll see much in the way of major new extensions for MMF2 now, with MMF3 expected sometime vaguely soon.

    Lua is actually very similar to Javascript, just not quite as nice. If you know one, it shouldn't take too long to learn the other.
    http://phrogz.net/lua/LearningLua_FromJS.html
    Lua doesn't look that bad. Although Javascript would be more useful to learn, I'd think.

    I know a couple of obscure text adventure languages, a simple in-house language from a PDA company (who is now out of business), and an in-house sandboxed version of LPC... it would have been nice to use a language that could possibly serve other purposes (and has tons of samples/materials), for a change.

    And is MMF 3 going to be released soonish? I finally broke down and just bought MMF 2 (or actually, getting it for an Xmas present), since the developers never answered me as to when MMF 3 may come out, or if it would be soon-ish. I'll be kind of annoyed if 2-3 months from now MMF 3 is released.

  8. #8
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module
    OldSchool80s's Avatar
    Join Date
    Dec 2012
    Location
    USA
    Posts
    91
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by nameless View Post
    And is MMF 3 going to be released soonish? I finally broke down and just bought MMF 2 (or actually, getting it for an Xmas present), since the developers never answered me as to when MMF 3 may come out, or if it would be soon-ish. I'll be kind of annoyed if 2-3 months from now MMF 3 is released.
    If they release it that soon, most companies would upgrade you for free. I am not speaking for CT, but it's mostly normal practice, good customer handling.

  9. #9
    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)
    Everyone. MMF3 is a ways out yet and this is not going to be a free update, as updates to major versions have never been free. Updates are free as far as builds, which are usually a lot of build updates.

    Clickteam will be releasing the HTML exporter soon, and this involves a lot of Javascript.

    Don't speculate or start rumors. Let's only go with facts, ok?

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

Similar Threads

  1. Javascript Question
    By Zoglu in forum SWF/Flash Export Module Version 2.0
    Replies: 4
    Last Post: 17th February 2012, 08:24 PM
  2. Javascript example
    By Jeff in forum Vitalize
    Replies: 16
    Last Post: 13th September 2010, 02:27 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
  •