hey guys i need your help, this has been driving me nuts
i have 5 boxes, stacked on top of the each other, numbering 1 -> 5.
1
2 <--focus position
3
4
5
the location of box #2 is the position on which the user's focus lies. now to the function i pass which box i want to be in the focus position, so everything will shift up or down so that box is in the focus position, ie:
focus box = 4
3
4 <--focus position
5
1
2
or
focus box = 1
5
1 <-- focus position
2
3
4
i dont know how to do the controlling loop for this..any ideas? code isnt needed pseudocode is good for me..its actually in java..but java/c++ synactically close enough for me..i can convert it over. my brain isnt working now so i probably need a break, but any ideas would be great. ha that kinda rhymed..