Author Topic: Polyvector  (Read 2445 times)

Offline PeeJay

  • Mr. Polyvector
  • ***
  • Posts: 244
    • View Profile
    • PeeJays Remakes
Polyvector
« on: 2008-Mar-21 »
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

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10759
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
Polyvector
« Reply #1 on: 2008-Mar-22 »
You can do. Just use the right texture coords. Try DRAWSPRITE with an animation thingy. It's the full image.

Offline PeeJay

  • Mr. Polyvector
  • ***
  • Posts: 244
    • View Profile
    • PeeJays Remakes
Polyvector
« Reply #2 on: 2008-Mar-22 »
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

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10759
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
Polyvector
« Reply #3 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

Offline PeeJay

  • Mr. Polyvector
  • ***
  • Posts: 244
    • View Profile
    • PeeJays Remakes
Polyvector
« Reply #4 on: 2008-Mar-24 »
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

Offline AndyH

  • Dr. Type
  • ****
  • Posts: 383
    • View Profile
    • http://www.ovine.net/
Polyvector
« Reply #5 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.