hi. I have something here which has gone quite over my head and I am hoping there is someone here who intelligent enough… and feeling nice… and patient enough to persevere through this post…:ne:
I have a scenario that goes like this:
first image displays - 2 option appear: right or left?
if right is chosen this leads to another image: right or left
if in the first one left is chosen it also leads to right or left
each new image leads to a right or left and brings up another image leading to a right or left.
this continues in about 6 levels deep.
I have all of the images and I have worked out which button links to which image through a matrix to try to bring myself to sanity…
but I really don’t know how to begin with the code…
I figured out that I need a matrix, to refer to the buttons, that is 6 columns by 32 rows because the scenarios and options go 6 levels deep. I hope this make sense…
let say the matrix goes something like this:
123456
023456
003456
003456
000456
000456
000456
000456
000056
000056
000056
… all the way to 32
so if “j” is columns and “i” is rows and the matrix is “A” I could refer to the matrix like: a(i,j)… ? I am quite unfamiliar with using matrices so correct me if I am out of my mind…
so now I am going to attempt to write in quazi code of something along the line of what I was thinking to do…
while j <= 5 then
if (leftbtn is clicked) then i = i * 2 -1;
j = j+1;
// matrix comes out as whatever results from j and i. like btn a(1, 2) leads to image 3a which now displays btns a(1,3) and a(2,3).
if (rightbtn is clicked) then i = i * 2;
j = j + 1;
am I totally off my rocker and making no sense or does someone understand me?