Make sure that in your
base.inc script you have:
Also what mihaipuiucernea said needs to be done. Why this you will ask.
Well, the actor variable which already exists is a
global variable, meaning that it is maintained regardless in which scene you are and you can use it anywhere. There is a little catch though. To use it in a script you need to have this before using it:
global new_actor;
<do stuff with new_actor>
You will notice that
base.inc is included in all your scripts, be it
game.script, in a
scene_init.script, in an entity script, anywhere. If you add
global new_actor in
base.inc, then you can assume that the command runs as soon as base.inc is included, which is always at the beginning of your script. Think of it as code that is always executed.
Don't get carried away though and start adding any global variable you need in base.inc. Add only variables which you will need to use in almost every script. For instance,
global Statestarttest; is not a variable you normally need in base.inc, because you most probably will use it only in the scene_init.script and maybe in some of your entities.
There is no shame in being a beginner, we all start somewhere. Bear in mind that the documentation contains everything you will need. What you need now is to become a better programmer and then you will realise that WME is a piece of cake to use. I suggest that you restart the tutorial and do the work that you are instructed to do, instead of just reading it. You will understand many necessary concepts. Your code might initially be a big mess, but you will gradually get better. I suggest that you also read some articles about proper programming style and best practices, they are very useful.