![]() |
| Register | Login | |||||
|
Main
| Memberlist
| Active users
| Calendar
| Chat
| Online users Ranks | FAQ | ACS | Stats | Color Chart | Search | Photo album |
|
| | |||
| 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: 5907 days Last view: 5907 days |
| ||
| 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: 6187 days Last view: 6187 days |
| ||
| 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 |
| ![]() |