What is the best way to create a bunch of images that do something when clicked?
Posted: Sun Jun 14, 2020 6:02 pm
Basically, I'm making a title screen menu. I'm using images for the menu options (e.g. start game, options).
What's the best / most efficient way to run a piece of code after clicking on these images? One idea is that I just write the same code multiple times to have different image coordinates and run different code for each one. However, I have a feeling it would that using classes in some way would make it much more efficient, but I don't know how to use them (both in general and in this context).
Thanks
What's the best / most efficient way to run a piece of code after clicking on these images? One idea is that I just write the same code multiple times to have different image coordinates and run different code for each one. However, I have a feeling it would that using classes in some way would make it much more efficient, but I don't know how to use them (both in general and in this context).
Thanks