-
1 Attachment(s)
Help with building game
Hello again!
I'm having a problem with my new game. i would like it so that when you mouse over a square building plot, it highlights it. I have done this by simply adding another frame with a yellow outline, very simple. I have added a variable to the 'Plot' object 'mouseover' which does what it says. In the event editor, I have set it up so that when the mouse is over the plot it sets 'mouseover' to 1, and when the mouse is not over the plot 'mouseover' is set to 0, again very simple. However, you will notice that when you move the mouse off from a plot and into another, the last plot stays highlighted. I assume this is because my game is just testing if the mouse is over the plot and it still is. Anyone have any ideas on how to fix this?
Here is .mfa: Attachment 20593
-
Here's an idea:
1) remove eventline 6
2) insert this new event before current eventline 5
always
>>> set mouseover to 0
should do the job :)
-
1 Attachment(s)
I propose an alternative solution:
Attachment 20596