script minifier Message ?

0 favourites
  • 13 posts
  • If I want to export I get this error message<img src="http://mjmedia.de/message.jpg" border="0" />

    Java is installed extra from the link in this message

    ...

    and how I do the Game now embed in my web site ? I had explored the index, but I have no idea.

    btw, the Forum preview function here, don't work for me, too <img src="smileys/smiley5.gif" border="0" align="middle" />

  • Are you sure Java is installed? Open a command prompt and type

    java -version

    What does it say?

    If you don't have a website to host your game on, you can try uploading your game to DropBox.

  • "Are you sure Java is installed?"

    I installed it on two computers and get the same message every time. The Java webside has checked my system and says yes I have Java installed.

    "Die Java-Version wurde ?berpr?ft

    Herzlichen Gl?ckwunsch!

    Sie haben die empfohlene Java-Version installiert (Version 6 Update 27)."

    "If you don't have a website to host your game on, you can try"

    I ask for embed in my website, not for hosting

  • errr DropBox isn't hosting. It's a free site for sharing files, that also allows you to upload the full C2 exported files for you and others to try out.

  • I ask for embed in my website, not for hosting

    It depends on the structure of your website.

    If it is a CMS or some sort of software of the like you should check its documentation and see how to add html pages.

    When you export your C2 project, it creates:

    • index.html
    • c2runtime.js
    • folder images (if you chose so)
    • folder medias (if you chose so)

    Anyway, all the files should be copied to your website (put them all in a specific folder. "Spielen" for example).

    index.html acts as an entry point to the game. either make a link from your site to this page or modify some of your pages so that:

    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
    <script type="text/javascript" src="c2runtime.js"></script>
    
    <script type="text/javascript">
          // Start the Construct 2 project running on window load.
          jQuery(document).ready(function ()
          {
                // Create new runtime based on the preview canvas element
                var project = new cr.runtime(document.getElementById("c2canvas"));
    
                // Load and start running
                project.load();
                project.go();
          });
    </script>

    appears in the header (between <head></head>).

    In the <body></body> part of your page add:

    <canvas id="c2canvas" width="X" height="Y" oncontextmenu="return false;">

    where X and Y are the width and height of your application.

    This canvas will be the "body" of your game, the frame in which it will be displayed.

  • kyatric,

    if this info is generic, as far as placing a c2 element into a web page, then it might make a good tutorial. yes?

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • "errr DropBox ist nicht Hosting. Es ist eine kostenlose Website f�r den Austausch von Dateien, die k�nnen Sie auch die vollst�ndige C2 exportierten Dateien f�r Sie und andere laden zum Ausprobieren."

    Thank you zenox98,but I think it was not my question!

    Thank you Kyatric for your help ! :)

  • kyatric,

    if this info is generic, as far as placing a c2 element into a web page, then it might make a good tutorial. yes?

    Pretty much.

    Honestly, I just copied 3 lines from the html file of the exported project.

    But yes, I could make a tutorial/explanation later during this week. That could be useful.

  • > kyatric,

    >

    > if this info is generic, as far as placing a c2 element into a web page, then it might make a good tutorial. yes?

    Pretty much.

    Honestly, I just copied 3 lines from the html file of the exported project.

    But yes, I could make a tutorial/explanation later during this week. That could be useful.

    thank you sir...i see 1k rep in your future...lol.

  • "Open a command prompt and type

    java -version"

    I have search with google,what you mean, but I don't know.

    Sorry, I'm an Designer and not a techhead <img src="smileys/smiley9.gif" border="0" align="middle" />

  • "Open a command prompt and type

    java -version"

    I have search with google,what you mean, but I don't know.

    Sorry, I'm an Designer and not a techhead <img src="smileys/smiley9.gif" border="0" align="middle" />

    Start, All Programs, Accessories, Command Prompt. Type, without quotes, "java -version". ;)

  • Thank your PoseMotion <img src="smileys/smiley20.gif" border="0" align="middle" />

    my problem is fixed now !

  • Thank your PoseMotion <img src="smileys/smiley20.gif" border="0" align="middle" />

    my problem is fixed now !

    No Problem. <img src="smileys/smiley2.gif" border="0" align="middle" />

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)