User Tag List

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

Thread: Machart_Studios

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export Module

    Join Date
    Apr 2012
    Location
    Heidelberg, Germany
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Machart_Studios

    Hi all,

    I'm happy to see whats possible withe the HTML5 module! I tested some simple test projects. The first one gives me an error (Firefox 14)

    Error: ReferenceError: CRunMvtSpaceShip is not defined
    File: http://217.160.94.36/daten/bee/src/Runtime.js
    Line: 537

    http://217.160.94.36/daten/bee/bee.html

    Any ideas? (Project attached)
    Attached files Attached files

  2. #2
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module
    Francois's Avatar
    Join Date
    Jul 2006
    Location
    Montpellier, France
    Posts
    6,920
    Mentioned
    0 Post(s)
    Tagged
    1 Thread(s)
    Corrected. The SpaceShip Movement was not loaded.

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export Module

    Join Date
    Apr 2012
    Location
    Heidelberg, Germany
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks Francois!

  4. #4
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export Module

    Join Date
    Apr 2012
    Location
    Heidelberg, Germany
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Drag & Drop is not working. Should it work or is it not yet implemented?

  5. #5
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module
    Francois's Avatar
    Join Date
    Jul 2006
    Location
    Montpellier, France
    Posts
    6,920
    Mentioned
    0 Post(s)
    Tagged
    1 Thread(s)
    Yes it is. But the movement cannot find the mask of the objects for detecting that you click on it.
    This will be corrected in the next weeks, but for the moment, you should do a condition in your program of events :

    Collision between object and object
    - Object start

    This will indicate to MMF2 to calculate the collision mask.

  6. #6
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export Module

    Join Date
    Apr 2012
    Location
    Heidelberg, Germany
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks, i solved it with start on mouse over object. But "mouse over object" also picks objects covered by other objects. It's ok, cause the behaviour is the same in Windows and HTML5.

    I have still two bugs in this app. It crashed when I drop a puzzle part at the right place (TypeError: a.j.C.start is not a function) and it does not show the sized background:
    http://217.160.94.36/daten/puzzle/puzzle.html
    http://217.160.94.36/daten/puzzle/puzzle.mfa

  7. #7
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module
    Francois's Avatar
    Join Date
    Jul 2006
    Location
    Montpellier, France
    Posts
    6,920
    Mentioned
    0 Post(s)
    Tagged
    1 Thread(s)
    Can you run the application that crashes in HTML5 Project (not final project), and tell me the information displayed by the browser (source of the crash, and line number)?
    Thanks

  8. #8
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export Module

    Join Date
    Apr 2012
    Location
    Heidelberg, Germany
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Sorry, hard to debug a minified script! I made a not-final project. See the screenshot
    Images attachées Images attachées

  9. #9
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module
    Francois's Avatar
    Join Date
    Jul 2006
    Location
    Montpellier, France
    Posts
    6,920
    Mentioned
    0 Post(s)
    Tagged
    1 Thread(s)
    OK crash corrected (and other sources of crashes).
    But in the background of your puzzle, you zoom on pixel to several hundred times it size.
    HTML5 does not like it, the pixel gets lighter and lighter as the zoom goes, and disappears.
    You have to use a reasonable zoom factor (not 349!)

  10. #10
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export Module

    Join Date
    Apr 2012
    Location
    Heidelberg, Germany
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I think the resize function is just not accurate enough and takes some sourrounding pixels. Look at this HTML Canvas Example:
    http://217.160.94.36/daten/pixel.html

    <!DOCTYPE HTML>
    <html>
    <head>
    <style>
    body {
    margin: 0px;
    padding: 0px;
    }
    #myCanvas {
    border: 1px solid #9C9898;
    }
    </style>
    <script>
    window.onload = function() {
    var canvas = document.getElementById("myCanvas");
    var context = canvas.getContext("2d");
    var x = 50;
    var y = 50;
    var width = 700;
    var height = 500;
    var imageObj = new Image();
    imageObj.onload = function() {
    context.drawImage(imageObj, x, y, width, height);
    };
    imageObj.src = "http://217.160.94.36/daten/pixel.png";
    };

    </script>
    </head>
    <body>
    <canvas id="myCanvas" width="800" height="600"></canvas>
    </body>
    </html>

Page 1 of 2 1 2 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •