Shuvit game master repo. http://shuvit.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

water.py 344B

123456789101112
  1. import bge
  2. def update(cont):
  3. cont = bge.logic.getCurrentController()
  4. own = cont.owner
  5. tex = own.meshes[0].materials[0].textures[1]
  6. tex2 = own.meshes[0].materials[0].textures[0]
  7. tex3 = own.meshes[0].materials[0].textures[2]
  8. tex.uvOffset.x += .0001
  9. tex2.uvOffset.x -= .0002
  10. tex3.uvOffset.x -= .00015