Polyvector

Previous topic - Next topic

PeeJay

Gernot - do you have any plans imminent to add the ability to use images from anim strips with Polyvector?
www.peejays-remakes.co.uk
For games, remakes, and GL Basic Tutorials
Artificial Intelligence is no match for Natural Stupidity

Kitty Hello

You can do. Just use the right texture coords. Try DRAWSPRITE with an animation thingy. It's the full image.

PeeJay

ah, okay - that's useful to know (though could have me scratching my head for a while :D)
www.peejays-remakes.co.uk
For games, remakes, and GL Basic Tutorials
Artificial Intelligence is no match for Natural Stupidity

Kitty Hello

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

PeeJay

Yup - all sorted - I'm now polyvectoring my ass off :D
www.peejays-remakes.co.uk
For games, remakes, and GL Basic Tutorials
Artificial Intelligence is no match for Natural Stupidity

AndyH

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.