I would like to know what are the reasons behind the fact that the only current mechanism to send messages is the
broadcast <X>
that sends a message to all sprites. Are there efficiency reasons behind this? Are there simplicity reasons? Why is there no mechanism such as
Send message <X> to <Y>?
Thanks for any clarification
Offline
s_federici wrote:
I would like to know what are the reasons behind the fact that the only current mechanism to send messages is the
broadcast <X>
that sends a message to all sprites. Are there efficiency reasons behind this? Are there simplicity reasons? Why is there no mechanism such as
Send message <X> to <Y>?
Thanks for any clarification
That would be helpful, but technically, not all of the sprites have to receive it. yet I know it would make those complicated games easier if they didn't have to go through those long lists of broadcasts. You can also use variables?
Offline
But then you'd have to go through a long list of variables (which are even worse than broadcasts becuase they each have their own Change by X and Set to X blocks as well).
I think broadcasts are specifically designed to message to all sprites hence the term 'broadcast' whereas variables are more specific, especially when you use the reference for non-global variables. I still think it would be much easier if you could group variables together in folders or hide the extra blocks that way you could make more without having to worry about spending ages looking for a single variable.
SB
Offline