Page 1 of 1

Initializing Smiley Catch

PostPosted: Mon Apr 18, 2005 8:41 pm
by xenoruh
Hi, I spent along time trying to learn what the Initializegame actor does. I finally came to the conclusion that it does nothing, it was probably placed there just for fun. Have I missed something?

PostPosted: Tue Apr 19, 2005 4:16 am
by jazz_e_bob
In this game the Initializegame actor initializes timer and sets the view actor coordinates. (See code under createActor.)

An Initialization actor is handy because you can keep all of your start-up variables in one place.

PostPosted: Tue Apr 19, 2005 6:11 am
by xenoruh
I understand the theory, but when I tried it myself, it didn't work, when I tried that Smiley Catch game demo I found that, that didn't work either. It seems to be doing nothing. So much so that when I deleted it, the game ran as normal.

PostPosted: Tue Apr 19, 2005 7:23 am
by jazz_e_bob
Tricky. :)

Well J4F wrote it. With any luck she'll add to this thread. :wink:

I just checked. You are right. Removing the actor and its region does no harm to the game. As far as I can tell neither are referenced by the program at any time.