Game Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesGame Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
  #1  
Old July 7th, 2006, 09:53 PM
RDG's Avatar
RDG RDG is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2006
Location: Cancún. México
Posts: 141 RDG User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 6 h 32 m 51 sec
Reputation Power: 2
Question Scrolling (in all directions) game

Hi, I'm making a classical RPG. I already have the main screen, the stats, inventory, etc., and the walking hero (but he is walking in the air). Now I need a background, I've been told tile-based backgrounds is the best for huge games. I don't think mine is gonna be that big so I'm planning to do it art-based. But how can I make the screen to follow my hero, for example, if he goes up screen goes up, if he goes right screen goes right. Can anyone tell me how to do this?

Thanks in advance

Reply With Quote
  #2  
Old July 9th, 2006, 10:54 AM
Capix Capix is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2006
Posts: 7 Capix User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 48 m 13 sec
Reputation Power: 0
You have to work with X and Y factors

Every tile has its own coordinates, which you specify in the database. If the house of the hero is:

X 29
y 15

and the hero is at

X 28
Y 15

then he is standing next to the house, Everytime you let your hero walk, it has to update in the database of the player on which coordinates he is at.

I hope you understand what i mean, i have build a similar system, which is very very time-consuming. Considering the time you have to build the game, and how much queries it has to load from the database.

Reply With Quote
  #3  
Old July 10th, 2006, 05:56 AM
b3n's Avatar
b3n b3n is offline
Dreams Abundance
Dev Shed Expert (3500 - 3999 posts)
 
Join Date: Jul 2004
Location: Prisoner of the Sun
Posts: 3,968 b3n User rank is Colonel (50000 - 60000 Reputation Level)b3n User rank is Colonel (50000 - 60000 Reputation Level)b3n User rank is Colonel (50000 - 60000 Reputation Level)b3n User rank is Colonel (50000 - 60000 Reputation Level)b3n User rank is Colonel (50000 - 60000 Reputation Level)b3n User rank is Colonel (50000 - 60000 Reputation Level)b3n User rank is Colonel (50000 - 60000 Reputation Level)b3n User rank is Colonel (50000 - 60000 Reputation Level)b3n User rank is Colonel (50000 - 60000 Reputation Level)b3n User rank is Colonel (50000 - 60000 Reputation Level)b3n User rank is Colonel (50000 - 60000 Reputation Level)b3n User rank is Colonel (50000 - 60000 Reputation Level) 
Time spent in forums: 1 Month 3 Weeks 2 Days 11 h 46 m 5 sec
Reputation Power: 532
Facebook
Here is a good explanation of the theory of scrolling. But it is within the context of tile-based games:

http://www.tonypa.pri.ee/tbw/tut13.html

You really should read all of those tutorials from the start. Someone already gave you this link.
__________________
.
Web Dev Cheat Sheets :: Flash 8 LiveDocs :: PHP Manual :: MySQL Manual :: My Zodiac/13Moon Mod for SMF :: Compare Game Prices

"All matter is merely energy condensed to a slow vibration. We are all one consciousness experiencing itself - subjectively. There is no such thing as death, life is only a dream. We are the imaginations of ourselves."
- Bill Hicks


"Truth is hidden in the subtle nature of the heart of everything, although it is invisible. One cannot see it from inside and neither from the surface. One can only live and experience it."
- Heart Sutra

Reply With Quote
  #4  
Old July 12th, 2006, 04:57 AM
displeaser's Avatar
displeaser displeaser is offline
Periodically energetic Perler
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: May 2005
Location: Dublin, Ireland
Posts: 2,266 displeaser User rank is Colonel (50000 - 60000 Reputation Level)displeaser User rank is Colonel (50000 - 60000 Reputation Level)displeaser User rank is Colonel (50000 - 60000 Reputation Level)displeaser User rank is Colonel (50000 - 60000 Reputation Level)displeaser User rank is Colonel (50000 - 60000 Reputation Level)displeaser User rank is Colonel (50000 - 60000 Reputation Level)displeaser User rank is Colonel (50000 - 60000 Reputation Level)displeaser User rank is Colonel (50000 - 60000 Reputation Level)displeaser User rank is Colonel (50000 - 60000 Reputation Level)displeaser User rank is Colonel (50000 - 60000 Reputation Level)displeaser User rank is Colonel (50000 - 60000 Reputation Level)displeaser User rank is Colonel (50000 - 60000 Reputation Level)  Folding Points: 76661 Folding Title: Intermediate FolderFolding Points: 76661 Folding Title: Intermediate FolderFolding Points: 76661 Folding Title: Intermediate FolderFolding Points: 76661 Folding Title: Intermediate Folder
Time spent in forums: 4 Weeks 5 h 23 m 13 sec
Reputation Power: 531
Hi,

maybe have a look at The scrolling game development kit.

The allegro game programming library also has functions for scrolling the screen.

The link b3n gave is good as well.

Displeaser
__________________
Vi Veri Veniversum Vivus Vici.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesGame Development > Scrolling (in all directions) game


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five "checkpoints" for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway