Cannot really think of a title! (Complicated question) [HELP]

BonepileGamesBonepileGames Member Posts: 194
edited September 2014 in Working with GS (Mac)

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 :wink: )

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.

image

image

image

If you have any idea, I would be glad to hear/read it.

Thank you guys!

EDITED: Uploaded the right pictures.

Comments

This discussion has been closed.