GLBasic forum

Main forum => GLBasic - en => Topic started by: PeeJay on 2008-Mar-21

Title: Polyvector
Post by: PeeJay on 2008-Mar-21
Gernot - do you have any plans imminent to add the ability to use images from anim strips with Polyvector?
Title: Polyvector
Post by: Kitty Hello on 2008-Mar-22
You can do. Just use the right texture coords. Try DRAWSPRITE with an animation thingy. It's the full image.
Title: Polyvector
Post by: PeeJay on 2008-Mar-22
ah, okay - that's useful to know (though could have me scratching my head for a while :D)
Title: Polyvector
Post by: Kitty Hello on 2008-Mar-24
the x/y position of a "anim" is evaluated like:
Code (glbasic) Select
       LOCAL sprite_w, sprite_h
        GETSPRITESIZE id, sprite_w, sprite_h
LOCAL  nperline = sprite_w / width_per_tile;

LOCAL tilex = MOD(iTile, nperline)      * sprite_w
        LOCAL tiley = INTEGER(iTile/nperline) * sprite_h
Title: Polyvector
Post by: PeeJay on 2008-Mar-24
Yup - all sorted - I'm now polyvectoring my ass off :D
Title: Polyvector
Post by: AndyH on 2008-Mar-24
errr.... please never publish that game where you vector your bottom with poly's.

Thanks for the code Gernot, that will come in handy for me too.