• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Animated Bacground

 
Mathew Mintalm
Ranch Hand
Posts: 103
Eclipse IDE Firefox Browser Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello, I have started developing my first game for android, I just started from making basic window, UI etc.

My background is created based at tile image.



As you can see this tile is animated :P (gif)

I put it in my main.xml



and this is content of my backrepeat.xml file:



And background created automatically from tiles works, but animation doesn't work.



So my conclusion is quite simple (but no idea if its correct) animation wont work with gif file (?)

So i have an idea. There is program which may split GIF file at server external images (break animated gif to frames and add each frame)

And then change background with new frame each few miliseconds, but no idea how to change it after delay.

Can someone help me? Thanks!
 
Johan Pelgrim
Ranch Hand
Posts: 105
Android Java Mac
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Mathew,

Once you have split up your animated GIF into separate images try using the animation-list (frame animation) for animating your background...

Good luck!

Johan
 
Mathew Mintalm
Ranch Hand
Posts: 103
Eclipse IDE Firefox Browser Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you, I will try it.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic