playMaker

Author Topic: WebGL export is wrong  (Read 703 times)

Shawn Kilian

  • Junior Playmaker
  • **
  • Posts: 53
  • Multimedia Developer
    • View Profile
    • The Last AntLion
WebGL export is wrong
« on: March 11, 2017, 10:33:04 PM »
My game works fine in the Unity Editor and publishes fine as a PC stand alone.  However, when I publish as a WebGL game, it totally breaks.  My sprites don't animate.  Look at the ants in the following 2 short videos I recorded...

Here is the game working properly in the editor:
http://screencast-o-matic.com/watch/cbelht64mn

Here is the game not working properly in WebGL:
http://screencast-o-matic.com/watch/cbelhw64mj

Why is this happening?  I cannot figure it out.  Please help =)

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 14228
  • Official Playmaker Support
    • View Profile
Re: WebGL export is wrong
« Reply #1 on: March 12, 2017, 10:53:21 PM »
Hi,

 are you using "Get property" and "Set Property" actions? if you do, then you'll need to use the Linker wizard ( on the ecosystem) to properly setup your Unity project.

 Bye,

 Jean

Shawn Kilian

  • Junior Playmaker
  • **
  • Posts: 53
  • Multimedia Developer
    • View Profile
    • The Last AntLion
Re: WebGL export is wrong
« Reply #2 on: March 13, 2017, 05:08:06 PM »
Yes I am using Get Property and Set Property and I have already tried the Linker Wizard on the Ecosystem but it did not fix the issue.  Based on my experimentation, WebGL does not support sprite animations, even if they are simulated in PlayMaker using actions.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 14228
  • Official Playmaker Support
    • View Profile
Re: WebGL export is wrong
« Reply #3 on: March 15, 2017, 12:12:16 AM »
Hi,

 Can you explain what you mean by Sprite animations? is it a SpriteSheet or Sprites you  move around? and what technic are you using inside PlayMaker to animate them sprites? what are you accessing with SetProperty and GetProperty, maybe the linker wizard is missing some of these technics and could be updated to take that into account.

 what is the linker xml content created by the linker wizard?


 Bye,

 Jean