I feel like a complete idiot but I have to ask, otherwise I might end up tearing my own hair out...
I am in the progress of programming a book with multiple pages where there is a retrievable inventory-item at the end. I think that I understand how the item itself is going to be programmed but the problem is that I am trying to figure out the best way to program the changing of the pages. So far, I have been using simple buttons where the 'Next Page' button changes the background-graphic of the GUI to show the next two pages (who are on the same sprite) and a 'Last Page' button that changes the background graphic to what it used to be.
What I am currently trying to figure out is a way to make the 'Next Page'-button change the Graphic to not just one specific sprite (because there are a total of four sprites) but to change it to the next one in the order until its hits the last one in the series where the button stops being clickable. How would you do that? I am still new to this so I feel kind of lost.
While I am on a similar note, I also wonder if something similar could be done for a classic combination-lock. Like how the puzzle is solved if specific spites are aligned in the correct order. I have a feeling that this is going to be really useful going forward so any advice with this one is really appreciated.
I am in the progress of programming a book with multiple pages where there is a retrievable inventory-item at the end. I think that I understand how the item itself is going to be programmed but the problem is that I am trying to figure out the best way to program the changing of the pages. So far, I have been using simple buttons where the 'Next Page' button changes the background-graphic of the GUI to show the next two pages (who are on the same sprite) and a 'Last Page' button that changes the background graphic to what it used to be.
What I am currently trying to figure out is a way to make the 'Next Page'-button change the Graphic to not just one specific sprite (because there are a total of four sprites) but to change it to the next one in the order until its hits the last one in the series where the button stops being clickable. How would you do that? I am still new to this so I feel kind of lost.
While I am on a similar note, I also wonder if something similar could be done for a classic combination-lock. Like how the puzzle is solved if specific spites are aligned in the correct order. I have a feeling that this is going to be really useful going forward so any advice with this one is really appreciated.