Posts Topics Forums Images
Search videos from message boards Videos Search messages from microblogs Microblogs Search messages from imdb.com Imdb Search messages from yuku.com Yuku Search messages from lefora.com (free forums) Lefora
My account: Login | Sign Up
Loading... 

Thread: Scrolling in tile based Games

Started 2 years, 6 months ago by that_other_guy
How do you make it so that the player is centered as it walks and moves through a tile map ? I've tried moving every object manually but i cant get it to work, and it also seems very inefficient. Thanks.
Site: Sun Forums  Sun Forums - site profile
Forum: Java Game Development   Java Game Development   - forum profile
Total authors: 3 authors
Total thread posts: 3 posts
Thread activity: no new posts during last week
Domain info for: sun.com

Other posts in this thread:

robtaft replied 2 years, 6 months ago
Graphics2D translate(int x, int y) Translates the origin of the Graphics2D context to the point (x, y) in the current coordinate system.

tswain replied 2 years, 5 months ago
> How do you make it so that the player is centered as > it walks and moves through a tile map ? > > I've tried moving every object manually but i cant > get it to work, and it also seems very inefficient. > > Thanks. Or, To make this quicker make a superbitmap (Image larger than the visible display) equal to the maximum scroll width/height. Then use drawImage(Image img, int dx1,...

 

Top contributing authors

Name
Posts
that_other_guy
1
user's latest post:
Scrolling in tile based Games
Published (2007-06-12 17:10:00)
How do you make it so that the player is centered as it walks and moves through a tile map ? I've tried moving every object manually but i cant get it to work, and it also seems very inefficient. Thanks.
robtaft
1
user's latest post:
Scrolling in tile based Games
Published (2007-06-13 05:10:00)
Graphics2D translate(int x, int y) Translates the origin of the Graphics2D context to the point (x, y) in the current coordinate system.
tswain
1
user's latest post:
Scrolling in tile based Games
Published (2007-07-05 22:36:00)
> How do you make it so that the player is centered as > it walks and moves through a tile map ? > > I've tried moving every object manually but i cant > get it to work, and it also seems very inefficient. > > Thanks. Or, To make this quicker make a superbitmap (Image larger than the visible display) equal to the maximum scroll width/height. Then use drawImage(Image img, int dx1, int dy1,...

Related threads on "Sun Forums":

Related threads on other sites:

Thread profile page for "Scrolling in tile based Games" on http://www.sun.com. This report page is a snippet summary view from a single thread "Scrolling in tile based Games", located on the Message Board at http://www.sun.com. This thread profile page shows the thread statistics for: Total Authors, Total Thread Posts, and Thread Activity