Can I shorten these scripts? (Yes, I know about Any Component, I tried it and got stuck halfway through)



Show what you have attempted so far with the AnyComponentCollidedWith block

It should become simple if you can reference the collided asteroid in your DestroyAsteroid procedure (this would need to be generic, for any asteroid)


Got stuck at the variables.


This is my CreateAsteroid procedure. How would I do the variables? Do I use an "if" or something else?

Why are confusing get component here? In this any componet, get componet is used to listen which component is being clicked but you are trying to set component there and this is not a good move. By the way what does it mean asteroid1, 2, 3? Button or image or anyother?

Because you gave us draggable blocks ...


procedures_defnoreturn

1 Like