Animating instance in initializing method

Report bugs. Post bug workarounds or fixes

Moderator: MSandro

JohnM
Posts: 379
Joined: Sep 11th, '15, 14:42

Re: Animating instance in initializing method

Post by JohnM » Oct 2nd, '17, 22:43

Helper classes are for non-graphical objects. For example, you might use a helper class to store the notes of a musical score.

Broadcasts are only sent to instances of graphical objects that are on the stage.

You can never broadcast to a helper class instance because it will never be (and cannot be) on the stage.

There's no way you could know these things since they are not (yet) documented anywhere. But stay tuned! SimpleSi has just started a building documentation Wiki so there will soon be a place to document useful information like this.

The technique SimpleSi mentioned should work for your original goal of having some of the instance "fade in" after they are instantiated.

SimpleSi
Posts: 330
Joined: Jul 2nd, '17, 13:47

Re: Animating instance in initializing method

Post by SimpleSi » Oct 3rd, '17, 06:57

@MSandro
An alternative to making a class a helper, could be to make it invisible in an initialise method like this

It can then receive broadcasts
Attachments
invisible.png

Post Reply