This site permanently moved to
https://droidscript.github.io
. Please update links accordingly.
You are being forwarded automatically in 3...
[stay here]
Back
AddText
Hello World
Adds a
text
object to the game.
gfx.AddText(
obj
,
x
,
y
,
angle
,
alpha
)
Example
click to expand contents
cfg
.
Game
;
function
OnLoad
(
)
{
text
=
gfx
.
CreateText
(
"Hello World"
,
40
,
"/Sys/Img/Desyrel.xml"
)
;
}
function
OnReady
(
)
{
gfx
.
AddText
(
text
,
0.2
,
0.4
,
0.2
)
;
gfx
.
Play
(
)
;
}
Copy
Copy All
Run
game object:
Text
Number:
fraction (0..1)
loading