Sprite3D: FX, anim, flip, deform, handle, transitions...

Share your advanced PureBasic knowledge/code with the community.
User avatar
eddy
Addict
Addict
Posts: 1479
Joined: Mon May 26, 2003 3:07 pm
Location: Nantes

Re: Sprite3D: FX, anim, flip, deform, handle, transitions...

Post by eddy »

funkheld wrote:hello, is also a pixel collision with sprite ?
There's not yet any collision system.
funkheld wrote:pixel collision
There will be a polygon-collision detection.
Imagewin10 x64 5.72 | IDE | PB plugin | Tools | Sprite | JSON | visual tool
User avatar
eddy
Addict
Addict
Posts: 1479
Joined: Mon May 26, 2003 3:07 pm
Location: Nantes

Re: Sprite3D: FX, anim, flip, deform, handle, transitions...

Post by eddy »

[/url]Image

- FX : autoremove, emitter
- function : PositionNextToSprite, DestroySpriteImmediate, DestroyLayerImmediate

I cannot free sprite or layer directly because of the new AutoRemove FX.
So I added a garbage collector system for sprites and layers.
  1. FreeSprite() => sprite in garbage
    FreeLayer() => layer in garbage
  2. RenderViews() => call garbage collector => destroy all sprites and layers in garbage (DestroySpriteImmediate, DestroyLayerImmediate)
Imagewin10 x64 5.72 | IDE | PB plugin | Tools | Sprite | JSON | visual tool
User avatar
leonhardt
Enthusiast
Enthusiast
Posts: 220
Joined: Wed Dec 23, 2009 3:26 pm

Re: Sprite3D: FX, anim, flip, deform, handle, transitions...

Post by leonhardt »

eddy wrote:[/url]Image

- FX : autoremove, emitter
- function : PositionNextToSprite, DestroySpriteImmediate, DestroyLayerImmediate

I cannot free sprite or layer directly because of the new AutoRemove FX.
So I added a garbage collector system for sprites and layers.
  1. FreeSprite() => sprite in garbage
    FreeLayer() => layer in garbage
  2. RenderViews() => call garbage collector => destroy all sprites and layers in garbage (DestroySpriteImmediate, DestroyLayerImmediate)
would you please give me the valid download URL? it seems that your original URL is invalid...
poor English...

PureBasic & Delphi & VBA
Post Reply