realbasic-games
[Top] [All Lists]

Re: tiles and Sprite Surface & Draw

To: REALbasic Games <realbasic-games at lists dot realsoftware dot com>
Subject: Re: tiles and Sprite Surface & Draw
From: "Joseph J. Strout" <joe at realsoftware dot com>
Date: Sun, 27 Jul 2003 12:19:26 -0700
At 11:51 AM -0500 7/27/03, Eric wrote:

 > Are you sure you want to draw the tile at (ypos, xpos)? Shouldn't it be
 > (xpos, ypos)?

Normally yes...but when I did that the tile were not drawn at the right place.

Actually it should be (0, 0). The xpos and ypos tell you WHAT to draw (i.e., which tile), not where to draw them. The graphics system is already set up for you such that 0,0 is the left/top corner of the area you need to draw (and the width and height of that area are both 64).

Did you see my earlier reply in this thread?

Best,
- Joe

--
,------------------------------------------------------------------.
|    Joseph J. Strout           REAL Software, Inc.                |
|    joe at realsoftware dot com       http://www.realsoftware.com        |
`------------------------------------------------------------------'

---
A searchable archive of this list is available at:
<http://support.realsoftware.com/listarchives/search.php>

Unsubscribe or switch delivery mode:
<http://support.realsoftware.com/listmanager/>
.


<Prev in Thread] Current Thread [Next in Thread>