Quote:
Originally Posted by chicky371
I would like the diamond to be invisible and to be gotten the score after the character hits the diamond by using collisionListener in Events, but something goes wrong. When my character is near the first diamond, suddenly all diamonds disappear. I just want a diamond to disappear. It will be true if I set up collision command for one diamond, but I'd like to save the time because there are many items in my game, it's just a test. I need help for 'Array'
The link to my world: https://drive.google.com/file/d/1fue...ew?usp=sharing
|
You need to
- Create a variable of type sthing - its the root object type
- Assign the "getThingFromSetB" sthing to this variable
- Compare each diamond to the sthing in an if statement to see which one was hit.
I modified your example showing this but I would recommend doing it yourself in a movie as well because creating the variable and the if statement are not obvious the first time through in Alice.
Mark