This thread is a few years old. Some details may refer to an earlier version of Visionaire Studio. Current tutorials
Ich sollte mich auch langsam mal ransetzten...
Ist das Script final bzw. kann ich das so übernehmen? Ich bekomm immer die Fehlermeldung "error 8: 'then' expected near 'game'".
du hast recht, der Teil hinter gsub ist beim Einfügen verändert worden.ja, scheint wirklich Prozentual zu sein. Mein Glück war wohl hier, dass meine Charaktergröße annähern auch 100 Pixel ist.
Ich hab für char.Size ein print ausgeführt, das hat "100" ausgespuckt - was der Skalierungsgröße in Prozent entspricht (Charaktergröße 206 px, Bildgröße 300 px)
Bei mehrzeiliger Textausgabe zerschießt es mir übrigens die Positionierung. Liegt das an der Herausfilterung der Zeilenumbrüche? (dieses gsub(), das ich nicht kenne ;-))
graphics.font = Fonts[fontid]
graphics.fontDimension(txt)function test()
graphics.font = Fonts[6]
local txt = "Zeile1\nZeile2\nZeile3"
local dim = graphics.fontDimension(txt)
print(dim.x,dim.y)
endThis thread is closed because nobody has replied for more than a year. Feel free to ask your question in a new thread.
New threadDeponia, The Whispered World and more than 160 other games were made with Visionaire Studio. The free version covers up to 25 scenes. For more scenes there is Visionaire Studio PRO from €75, and to sell your game the Indie Bundle for €99.
Through December 1: all licenses 30% off, for example the Indie Bundle for €69.30 instead of €99. Applied automatically at checkout.