Cannot really think of a title! (Complicated question) [HELP]
Hello to GS Community,
I am stuck in a complex situation while developing my second game.
I will provide you with the information regarding my game but will think of other example instead (in order not to reveal my idea before releasing )
I have 5 white squares aligned in a horizontal line. The goal is to get 5 points. Clicking the left square and dragging the mouse over the 4 squares to the right makes 5 points (in other words - dragging over a square adds one point).
The issue is that if I do the following, it works again:
Clicking on the left square and dragging over second and third square (left->right) then dragging back over second and first square it makes 5 points again.
The objective is if a square is selected, dragging over it again should not add a point again.
Let me provide you with the code that I have made.
If you have any idea, I would be glad to hear/read it.
Thank you guys!
EDITED: Uploaded the right pictures.
Comments
You drag the first touched square over the other 4 to make 5 points (4+ 1 form the first square)?
Tell me if i am wrong!
http://www.arcaderz.com
I am sorry, @jeezzcake , but I have missed an essential IF rule, it seems to work now. Excuse me!
P.S. Moderators you can lock/delete that thread.