|
-
May 10th, 2010, 07:29 PM
#1
Array Selection
I am currently building a game and my map file contains all the data that specifies the attributes of the game field.
How do I select a range in an array element? For example I have an array of 768 elements, each element contains a string of information which represents the logic of constructing the map and rules. The first 7 characters represent the tile png, the 8th character determines if that tile is passable, etc, etc.
What method can I use to select only certain number of characters like a starting point to an ending point? Or would I want to convert to string and truncate it down?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|