17 jui
2007
Voici un exemple pour faire une intro ou des echanges de discution entre personnages en Lua

Mettre les personnages en Sprites pour changer selon l'emotion,le texte progressif :
functionDSLua.ProgressiveString(progstr,coloredwut,screenwhich,delaybetweeneach,xvl,yvl)
for current_position = 1, string.len( progstr ) do
current_char = string.sub( progstr, current_position, current_position )
if screenwhich == 0 then
BGBotText:SetColor(coloredwut)
BGBotText:PrintXY( xvl, yvl, current_char )
end
if screenwhich == 1 then
BGTopText:SetColor(coloredwut)
BGTopText:PrintXY( xvl, yvl, current_char )
end
if screenwhich == 2 then
BGBotText:SetColor(coloredwut)
BGTopText:SetColor(coloredwut)
BGBotText:PrintXY( xvl, yvl, current_char )
BGTopText:PrintXY( xvl, yvl, current_char )
end
for delay = 1, delaybetweeneach do end
xvl = xvl + 1
if xvl == 32 then xvl = 0 yvl = yvl + 1
end
end
end
pour l utiliser :
DSLua.ProgressiveString("TEXTHERE!!!",color,screen,delay,X,Y)
Fonctions_LuaFonctions_Lua

17/07/2007 à 11:48:18 Dernière modif. : 25/11/2007 à 14:41:56