Jump to content
  • Advertisement
Sign in to follow this  
chillypacman

[java] MIDP2 application, tiles and scorlling backgrounds

This topic is 3801 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Just a couple of quick questions, I'm developing my first Mobile application using J2ME, now let's say I have a TiledLayer object and I want to have it 'scroll'.I can do this simply by callint TiledLayer.move right? My questions are, if the tile is invisible would I need to do something to it to ensure it's not eating up the mobilephones CPUs cycles? Or if it's not visible java automatically just doesn't do anything with it. My other question is, how can I get the position of a cell which has been offset by x and y? Is there a quick function that just returns the position of any given cell in screen space or do i have to figure it out by taking the tile offset, cell dimensions, number of columns/rows and doing that? Thanks for any help!

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!