I want the program to respond when a sprite is moved, not when it's clicked on. Is there a variation to "when [sprite name] clicked" that is "when [sprite name] is moved"?
Thanks.
Offline
Well, no, though depending on how you scripted the sprite you want to know this about, you could figure this out indirectly, or you could make your own system that'd do this for you. So, could I see the scripts of the sprite you want to be "tracking" ?
With regards,
ErnieParke
Offline
The idea is to balance a redox equation. So I have the equation, and I have an electron sprite. I put a red box on the reactant side and an orange box on the product side. Then the student is directed to drag the electron to the correct side of the equaton. The code is
When electron is clicked If oxidation=1 If touching color=red broadcast incorrect If touching color=orange broadcast correctSo when the electron is dragged, nothing happens until you click on it again. And that's not quite what I want. I want the "correct" or "incorrect" message to show up when the electron is dropped on the square.
Offline
Well if the sprite was draggable, and you wanted to detect when the sprite had been moved to a new location, you could store the location x y values in variables, then repeat until the current location does not match the variables, to detect when the sprite has been moved.
Offline
Thanks for all the help! I will be incorporating it into my program.
Offline