Here is my code only with 3 block. It works normally. But when I disable block " when image sprite drag" and enable blobk “when any image sprite drag”, it works abnormally. It normal when I drag img 1 from left to right ( 2 img swap positon). But when I drag Img1 form right to left then Img 2 take Img 1’s position, Img 1 take another position
The thing that makes this a lot easier is that I only switch the images between the sprites, but the sprites are always 1, 2, 3. You will never have sprite 1 in the second or third place. Or Sprite 2 in the first or third place.
So, if you need to know what image is on the first sprite, you only need to get sprite1.image and that’s it. This way you avoid having to build a tracking procedure to remember where was each sprite moved.
1./ Yes. Thank you for your help. Long time no see, so I think you forgot me. Very happy. I am afraid to remind you of my post. I am making a mini-game with my problem. So when I finish, I will show you.
2./ If you have free time, can you help me. I make code: when you insert your mail, click send OTP, the app will send an Email from my email to your email a number OTP. I have a script on google (search in the internet). When I run thí app, it still calls app script done but you never get OTP from me. I think problem form google script. I check it and it showed 100% fail. when I click send OTP button, the “script run” will increase 1 but it fails. (I’m Vietnamese)