Drag and drop objects don't return to initial location

Jun 05, 2018

Hi,

I'm trying to build a hangman game for spelling practice. I'm want to make it a bit different than the classic version. Instead of just guessing the letters, the player needs to drag the letters to the correct location within the word. If he's mistaken, I want the letter to return to its original location and the hangman to be drawn. The problem is that once I change the drawing state from hidden to normal based on the letter being dropped on the word area, even though it's not the correct target the letter won't return to its original location. Is there a way to solve this? Maybe a different strategy altogether? 

7 Replies
David Tait

I struggled to make this work the way you described so have created an alternative that will hopefully help you out.

When you drop an incorrect answer on to the target, the drag item now turns red to indicate that it is in the incorrect place (as well as the hangman drawing). It is then up to the user to drag the letter back to the starting point, or try it in another space.

Not your preferred solution but a solution nonetheless.

Phil Mayor

It is because of the trigger that stops the drop back, I had a quick look at the file. D

Do you want to count every item that is dropped or only the incorrect drops?

I would do this using state changes, add in drop correct/incorrect state and add a trigger to add one when state of any of is equal to drop incorrect should bounce back then.

Because you will want to drop it again I have added a trigger to change state to normal when the variable count changes.

I only did the textbox I called T just to show it can work.

This discussion is closed. You can start a new discussion or contact Articulate Support.