User Tag List

Results 1 to 8 of 8

Thread: getCollisionMask for Html5 export

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export ModuleInstall CreatorInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Aug 2006
    Location
    France
    Posts
    1,170
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    getCollisionMask for Html5 export

    Hello,
    I working on extension for Html5 exporter and I need to set the collision mask.
    I know I need to implement "getRunObjectCollisionMask" mehod but it never called.
    this GetRunObjectCollisionMask line in Ext.def is well uncommented.

    Can you help me please ?

  2. #2
    Clickteam Clickteam

    Join Date
    Jun 2006
    Location
    France
    Posts
    13,285
    Mentioned
    150 Post(s)
    Tagged
    2 Thread(s)
    This feature doesn't seem to be implemented in the HTML5 runtime. What kind of extension do you need to do?

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export ModuleInstall CreatorInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Aug 2006
    Location
    France
    Posts
    1,170
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Oh :/
    I'am working on Surface object Html5 export.
    At line 2514 of RunLoop.js it load image from bank but I don't know how to implément mask.

  4. #4
    Clickteam Clickteam

    Join Date
    Jun 2006
    Location
    France
    Posts
    13,285
    Mentioned
    150 Post(s)
    Tagged
    2 Thread(s)
    OK. I've double-checked, apparently only the Windows runtime supports collision masks for extension objects. I can add this to the wish list but I don't know when we'll have time to do it.

  5. #5
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export ModuleInstall CreatorInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Aug 2006
    Location
    France
    Posts
    1,170
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Thanks, how the fine collision with backdrop en active works ?

    EDIT: ah ok active is not an extension.
    Waiting for this feature I continue to write other function of Surface

  6. #6
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export ModuleInstall CreatorInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Aug 2006
    Location
    France
    Posts
    1,170
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    @Yves I found a workaround, I don't know if it really optimized but it work fine

    In the createRunObject I set my extension type to sprite:
    this.ho.hoType =COI.OBJ_SPR;
    And I set the rcImage to the bank handle:
    this.ho.roc.rcImage = imageHandle;
    Can you tell me if it's dangerous ?

    Here an example http://www.ovigne-loic.fr/Fusion/Surface_test_terrain/

  7. #7
    Clickteam Clickteam

    Join Date
    Jun 2006
    Location
    France
    Posts
    13,285
    Mentioned
    150 Post(s)
    Tagged
    2 Thread(s)
    Quote Originally Posted by Xenon3000 View Post

    Can you tell me if it's dangerous ?
    Yes it is, don't do that.

  8. #8
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export ModuleInstall CreatorInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Aug 2006
    Location
    France
    Posts
    1,170
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Ok, it's the inconvenience of js, you can cahnge everythings...

    I will change it when you add collisionMask (I can try to set it but I don't know enough the runtime src)

    So, I plan to export Surface for Android too if it's possible...

Similar Threads

  1. [BUG] Colors not changing in HTML5 export
    By jobromedia in forum HTML5 Export Module 2.5
    Replies: 1
    Last Post: 9th December 2016, 04:33 PM
  2. CF2.5 free and export to html5
    By Elpupas7 in forum Fusion 2.5
    Replies: 7
    Last Post: 24th June 2015, 12:36 AM
  3. HTML5 Export Module
    By JollyPanda in forum Extension Development
    Replies: 14
    Last Post: 10th January 2014, 06:42 PM
  4. Cannot install HTML5 export
    By 3735943886 in forum HTML5 Export Module 2.5
    Replies: 6
    Last Post: 2nd January 2014, 09:54 AM

Posting Permissions

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