How to animate texture in-game?

Hi! I have simple alpha texture that I want to be animated in-game by changing it’s offset. How do I do it(it needs to always play the loop of animation)

Do you want to fade out to transparent? Then you can make an action for the alpha channel of the color attribute (see object tab).

I want the texture to move(it is bubles texture and I want bubbles to float up(in Z) so they look more real. How do I do it(the texture is single image, it i’s not sprite and I don’t need sprite or movie animation…

I need only texture to go up… Nothing else…

as you just could search function and used something with blender and uv you get your answer xD

https://www.google.nl/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF-8#q=blender+animation+uv+coordinates

I can’t find method that works- when I set action logic bricks, I can not make it animate…

Maybe you could look into animating vertex colors and use vertex colors to change the opacity with nodes.

Sounds like a shader…

I don’t want to change opacity, I need to make my texture have a move like effect. Maybe I can make sprites, anyway, got any reccomendations?

an overlay scene(if this is for swimming), that has a sprite spawner, (this is for swimming underwater or a fish tank or?)

Swimming underwater. What is sprite spawner?

an object that adds sprites, at random locations in the overlay scene.

example in a few seconds…

Attachments

Particles.blend (441 KB)

OK! Looks good, but it won’t it reduce performance? Maybe there is an easier way? Altought, I will try to make one…

this can be tuned down, it’s just a quick example.

I could not make it into my game… Not sure, why, but it did not look as in your example, aswell, I am not sure how to make it work only on collision…

Put that in another scene, texture the plane , have collision water change a property to true

Water collison --------and property Water True
_________________----nand----Water False

If Water changes---- and---------add overlay scene
Water = True-----------/

If Water changes ----------and----------remove overlay scene
If Water ==False-------------/

This tutorial could help

http://www.tutorialsforblender3d.com/Blender_GameEngine/Blender_Game_Engine.html

check this out (overlays won’t word because the Z direction is changing relative to camera)

Attachments

BubbleTrouble.blend (498 KB)

OK! I think I found what I needed:) THanks!:slight_smile: