Pages: 1
Topic closed
Try this
when [record button v] clicked//for the record button set [recording v] to [yes] when gf clicked//for the REC sprite set [recording v] to [0] forever if <(recording)=[yes]> do whatever end endThis is better than using broadcasts as you can then make something that sets the variable "Recording" to 0, meaning that the REC sprite stops doing whatever it's doing.
Offline
PhirripSyrrip wrote:
Try this
when [record button v] clicked//for the record button set [recording v] to [yes] when gf clicked//for the REC sprite set [recording v] to [0] forever if <(recording)=[yes]> do whatever end endThis is better than using broadcasts as you can then make something that sets the variable "Recording" to 0, meaning that the REC sprite stops doing whatever it's doing.
You want to be careful of having too many forever loops though, because that can really bog down your project. Which one should be used differs from case-to-case, of course.
Offline
ManaUser wrote:
Both techniques have there place, but in general I would recommend Broadcast + When I Receive instead. (These blocks are both in the Control section.)
Here's how:
When [record button v] clicked Broadcast [recording v]Then in the REC picture sprite:
When I receive [recording v] Show //you have this because you want the REC to show up Do anything else if needed
Offline
Topic closed
Pages: 1