example: i have 300 clones of a same sprite on the screen and i want to send a command to the clone I'm currently touching
Example:
And what if i'm currently touching multilpe clones at the same time ?
Thank you !
example: i have 300 clones of a same sprite on the screen and i want to send a command to the clone I'm currently touching
Example:
And what if i'm currently touching multilpe clones at the same time ?
Thank you !
I would be inclined instead to have each of the 300 clones check whether it's touching the red one. I'm not sure how that would affect the timing, but the program logic will be more straightforward:
when (touching? red-guy)
delete this clone
I am already using this way (kind of), I would like an alternative ...
I like this, it's a good compromise. I was using a broadcast (who check for touching me) to do the job, but it wasn't very efficient ...
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.