Wo Du es deklarierst hängt davon ab, wo Du es gebrauchst. Lokale Variablen innerhalb einer Funktion, globale Variablen ausserhalb einer Funktion. Hier ein kleines Beispiel, das zwar nichts sinnvolles tut, aber die Funktionsweise verdeutlichen sollte:
Code:
float myFloat; // Eine globale float Variable.

fixed myDisplayedVariable; // Die Variable, die Du im Panel anzeigen lassen kannst.

void foo()
{
	float temp = 1337.13; // Lokale float Variable
	while (1)
	{
		myFloat = time_frame * temp;
		myDisplayedVariable = (fixed)myFloat;
		wait(1);
	}
}



myDisplayedVariable kannst Du jetzt ganz normal mit digits in einem Panel anzeigen.

Edit: "fixed" ist nur ein andere Name für "var". Oder noch genauer eigentlich umgekehrt. Also "var x;" ist genau das gleiche wie "fixed x". "var" ist eine GameStudio "Erfindung", während fixed in der C Programmierung üblich ist. Das irritiert Anfänger manchmal etwas.



Always learn from history, to be sure you make the same mistakes again...