I'm not sure what people think of this but here it goes
// Project: TextFun
// Created: 2016-12-29
// show all errors
SetErrorMode(2)
// set window properties
SetWindowTitle( "TextFun" )
SetWindowSize( 1024, 768, 0 )
// set display properties
SetVirtualResolution( 1024, 768 )
SetOrientationAllowed( 1, 1, 1, 1 )
SetSyncRate( 30, 0 ) // 30fps instead of 60 to save battery
//UseNewDefaultFonts( 1 ) // since version 2.0.20 we can use nicer default fonts
Words as string = "HELLO WORLD"
i=1
i=CreateText(Words)
SetTextSize(i,Random(50,60))
SetTextColor(i,255,255,255,255)
SetTextPosition(i,Random(0,600),Random(0,400))
sync()
sleep(500)
do
Words=subtractAscii(Words)
SetTextString(i,Words)
//sleep(60)
Print( ScreenFPS() )
Sync()
loop
function subtractAscii (word as string)
//Each letter or a string passed is replaced with the character 1 less than previous
newWord as String
newWord=""
length=len(word)
for i = 1 to length
a$=Mid(word,i,1)
a=asc(a$)
if a$<>chr(32) then a=a-1
newWord=newWord+chr(a)
next i
endfunction newWord
Just something ive been playing with, Something I wrote quite a while ago in c that read the characters in a dos window then replaced every one with its one
less character equivalent. this effectively gave the effect of the text dissolving away until adventually all text was character 32 a space character. The c version worked
nicely so ive been playing with text in agk and thought ide show what I have so far. A much larger text filling the screen looks allot better but I thought ide post what
I have so far
fubar