by lcl » Mon Apr 30, 2018 11:23 am
Draw Actor event occurs when the actor is drawn, i.e. every frame of the game. Gravity code is an example of what should be put to this event.
Create Actor event occurs when the actor is created. This means either when the game starts and the actor is created, or when using Create Actor action to create the actor. Notice that Create Actor event and Create Actor action are different things. The latter one creates actors, while the first is an actor's event that takes place upon the creation of the actor. An example of the usage of the Create Actor event could be setting the xvelocity of a bullet actor.
Yes, global variables and actor variables are automatically initialized to zero. But remember that it doesn't apply to local variables, i.e. variables created inside an event or a function through code.