Hello Guest

Author Topic: mesh of sprite needed for explosion  (Read 3756 times)

banschare

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 2
    • View Profile
mesh of sprite needed for explosion
« on: July 24, 2013, 11:51:07 am »
hi,

as far as I understand the mesh for a sprite is generated in realtime, I just bought a plugin called exploder and that works pretty neat as long as you give it a mesh, then it cuts it and explodes it...
I doesn't work with tk2d however for the reason that there is no mesh in the beginning.
do you have any idea how to get my explosion done.
thx,
rob

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: mesh of sprite needed for explosion
« Reply #1 on: July 24, 2013, 12:12:20 pm »
The mesh is generated in Awake, you probably want to move the exploder initialization after the mesh is created? i.e. After awake. Try Start. Might work better.

banschare

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: mesh of sprite needed for explosion
« Reply #2 on: July 24, 2013, 02:19:11 pm »
thank u, the problem seems to be the other plugin and its handling of quads... I'll talk to the developer of it, thanks for your hint, helped me debug...
best,rob