2D Toolkit Forum

2D Toolkit => Support => Topic started by: banschare on July 24, 2013, 11:51:07 am

Title: mesh of sprite needed for explosion
Post by: banschare 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
Title: Re: mesh of sprite needed for explosion
Post by: unikronsoftware 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.
Title: Re: mesh of sprite needed for explosion
Post by: banschare 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