(Link to AcmlmWiki) Offline: thank ||bass
Register | Login
Views: 13,040,846
Main | Memberlist | Active users | Calendar | Chat | Online users
Ranks | FAQ | ACS | Stats | Color Chart | Search | Photo album
05-14-24 03:46 AM
0 users currently in Programming.
Acmlm's Board - I3 Archive - Programming - Getting a single digit out of an X and a Y New poll | |
Add to favorites | Next newer thread | Next older thread
User Post
interdpth

Mole
MZM rapist


 





Since: 11-18-05

Last post: 6294 days
Last view: 6294 days
Posted on 04-23-06 02:43 AM Link | Quote
Ok so here's what I need to know

Say you have a hested for loop and a buffer that is a single digit array i mean a 1D
dim buffer(0 to 512) as byte
dim x as byte
dim y as byte
dim counter as integer 'counter is the single digiit we want created
for y = 0 to somenumber
for x = 0 to some number
buffer(someweirdmathhere)
next x
next y

So what do I do to make them into a single digit and get the effect I want?
Disch

Red Cheep-cheep


 





Since: 12-10-05

Last post: 6574 days
Last view: 6574 days
Posted on 04-23-06 09:11 AM Link | Quote
not 100% sure what you're trying to do... but I think what you're looking for is [(y * width) + x]


(edited by Disch on 04-23-06 08:11 AM)
Add to favorites | Next newer thread | Next older thread
Acmlm's Board - I3 Archive - Programming - Getting a single digit out of an X and a Y |


ABII

Acmlmboard 1.92.999, 9/17/2006
©2000-2006 Acmlm, Emuz, Blades, Xkeeper

Page rendered in 0.007 seconds; used 354.43 kB (max 414.80 kB)