From Game Editor
Simple
This All goes into Global Code.
Movement:
#define right x=x+5 //Move right at 5 pixels per 0.12 seconds #define left x=x-5 //Move left at 5 pixels per 0.12 seconds #define up y=y-5 //Move up at 5 pixels per 0.12 seconds #define down y=y+5 //Move down at 5 pixels per 0.12 seconds
Example/Syntax:
right;
Transperency:
#define vis transp=0 //Visible #define dis transp=0 //Invisible
Example/Syntax:
vis;
Advanced
Needs multiple things.
typing
Needs:
>String named txt
>Text actor named text
>String modifier (An actor)
#define type sprintf(text,"%s",txt);
Usage:
Draw Actor > Script Editor:
type;
Causes:
Actors text to always be the text stored in the txt string.
how to modify:
strcpy(txt,"text here");

![[]](/wiki/skins/blender/open.png)