Hi guys
I know I have asked this before but I still need help with it.
This is my program structure:
World
world
Actor
car //retreives variable choice from buttons
buttons //initialises a variable called choice
one //sets choice to one
two //sets choice to two
three //sets choice to three
I want to create a variable called choice in buttons. When you click on either one, two or three, the variable changes accordingly (as shown above). Then when you start the game the car class retrieves the variable choice to help with movement (not needed for explanation). They are all in the same world
Please can someone explain the various code bits that will fulfil this purpose.
Many thanks

