//Using src.icon_state
turf
panel1
icon_state = "panel 1"
MouseEntered()
src.icon_state = "panel 1 hovered"
//Using icon_state
turf
panel2
icon_state = "panel 2"
MouseEntered()
icon_state = "panel 2 hovered"
Problem description:
Is it better to use src.icon_state (or src.variable for that matter) or just icon_state? Both result in the same thing but I was just wondering which is better to use.
Also if you are using local variables with the same name as an src variable (which is normally bad to do because it is more likely to make a mistake with it that way), you have to use src. to specify you want to use a variable of the same name from the src and not the local variable.