User Tag List

Results 1 to 10 of 10

Thread: Beginner question

  1. #1
    No Products Registered

    Join Date
    Aug 2008
    Location
    Sweden
    Posts
    79
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Beginner question

    Why does this not compile?

    void TestFunction ()
    {
    Runtime.PauseRuntime();
    }

    Why does that not work? It says "a namespace does not directly contain members such as fields or methods" when i try to compile.

    Syntax looks perfectly fine to me.

    I'm obviously writing this to try and get any idea of how i will use the code to work with stuff in-game. PauseRuntime() looked like the perfect method to use in an attempt to try the click variant of "hello world" (though it's more of an app-pauser than a text blitter heh)

    Edit: Ok i see i've misunderstood how this extension works. The Startup Object is the name of the instance hmmm...

  2. #2
    No Products Registered

    Join Date
    Aug 2008
    Location
    Sweden
    Posts
    79
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Beginner question

    Oh thanks

    Well... It'll take some time for me to learn how to use this thing i think. Then again i have done programming before but that was a long time ago...

  3. #3
    Clicker Fusion 2.5 DeveloperSWF Export ModuleUnicode Add-on
    Looki's Avatar
    Join Date
    Aug 2006
    Location
    Karlsruhe, Germany
    Posts
    3,739
    Mentioned
    4 Post(s)
    Tagged
    1 Thread(s)

    Re: Beginner question

    Oh, sorry, still not correct.
    Put it into a class and add "public" before "void"

    using MMFInterface;
    public class class1 {
    void TestFunction ()
    {
    Runtime.PauseRuntime();
    }
    }

  4. #4
    No Products Registered

    Join Date
    Aug 2008
    Location
    Sweden
    Posts
    79
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Beginner question

    Ahhhhhhhh... Now it's starting to make sense. Thanks

    using MMFInterface;

    What does this line do specifically? MMFInterface has something to do with the method PauseRuntime?

  5. #5
    No Products Registered

    Join Date
    Aug 2008
    Location
    Sweden
    Posts
    79
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Beginner question

    Now it compiles but it does not actually pause the runtime when i call the function from the event editor. Instead the application sortof stops for 0.5 second only to resume again. Atleast there's a minor graphical hiccup

  6. #6
    Clicker Fusion 2.5 DeveloperSWF Export ModuleUnicode Add-on
    Looki's Avatar
    Join Date
    Aug 2006
    Location
    Karlsruhe, Germany
    Posts
    3,739
    Mentioned
    4 Post(s)
    Tagged
    1 Thread(s)

    Re: Beginner question

    What does this line do specifically? MMFInterface has something to do with the method PauseRuntime?
    See that box in the top-left corner of the dialog?
    It's a tree containing some functions.
    MMFInterface
    |_Runtime
    ...|_PauseRuntime()

    Runtime.PauseRuntime() is saved in a namespace called MMFInterface, to be able to access this, put
    using NamespaceName;
    into your code.
    you could do
    using MMFInterface.Runtime;
    as well, so you don't need to write
    Runtime.PauseRuntime();
    but just
    PauseRuntime();

    I can't really help you with your problem.. did you call class1.TestFunction?

  7. #7
    Forum Moderator Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)

    Join Date
    Jun 2006
    Location
    Australia
    Posts
    682
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Beginner question

    PauseRuntime() doesn't do what you might assume it does. It only pauses the runtime timer and will resume it again if you run the resumeruntime() function (or whatever it's called). The sdk says it should be used around opening a dialog or something like that so the internal mmf timers don't get messed up.

  8. #8
    Clicker Multimedia Fusion 2SWF Export Module
    Jacob's Avatar
    Join Date
    Jul 2007
    Location
    Second pixel to the right
    Posts
    3,208
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Beginner question

    Don't you have to have .'s in there?
    Public.Class?

    Or is that Java Im mixed up in....
    /me stops trying to learn multiple programming languages...

  9. #9
    Forum Moderator Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)

    Join Date
    Jun 2006
    Location
    Australia
    Posts
    682
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Beginner question

    Java and vb.net and c# use dots...

    You can bypass certain namespaces by 'using' them or 'import'ing them.

  10. #10
    No Products Registered

    Join Date
    Mar 2015
    Posts
    8
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Manual .Net MMF2 dotNetScript: "www.4shared.com/file/1bXpHLLgba/Manual_Net_MMF2_-_dotNetScript.html?"

Similar Threads

  1. swf beginner question
    By willow in forum SWF/Flash Export Module Version 2.0
    Replies: 6
    Last Post: 28th September 2010, 11:49 AM
  2. Beginner question - does it make sense?
    By Leander in forum Hardware Accelerated Runtime
    Replies: 3
    Last Post: 8th June 2010, 02:08 PM
  3. Beginner's Question
    By Lazor in forum The Games Factory 2 - Technical Support
    Replies: 6
    Last Post: 5th December 2009, 04:27 PM
  4. Help for beginner?
    By roope in forum The Games Factory 2 - Technical Support
    Replies: 2
    Last Post: 20th August 2009, 11:47 PM
  5. beginner's question about transparency effects
    By Glugmoor in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 17th January 2007, 02:55 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
  •