How tile anim strip image on a mesh?

Blitz3D Forums/Blitz3D Programming/How tile anim strip image on a mesh?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

@ vivaigiochi

You've got a titling solution there so all you need is to include some timing routine to animate. Something like this in conjunction with what you have should work..


global MyTimer = millisecs()
global Frame = 0

while not keydown(1)

  ;do other stuff

  if ( millisecs() - MyTimer ) > 100  ;change this value
     frame = ( frame + 1 ) mod 4
     entitytexture cube, texture, frame
     MyTimer = millisecs()
  endif

wend
     


This will change the texture 10 frames a second.

Stevie