• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Animated Bacground

 
Ranch Hand
Posts: 103
Netbeans IDE Eclipse IDE Firefox Browser
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
 
Ranch Hand
Posts: 105
Android Mac Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Netbeans IDE Eclipse IDE Firefox Browser
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you, I will try it.
reply
    Bookmark Topic Watch Topic
  • New Topic