Source language: Translate to:

Make your title animated

NeoBook tips, tricks, code samples and more...

Moderator: Neosoft Support

Make your title animated

Postby hasan » Mon Feb 04, 2008 6:10 pm

Hello, i just thought of sharing this tiny code, i don't know if someone had thought about it or have written it on this forum.

anywayz, you can use this code to make your application title animated (Typewruter animation), just put this in the startup section:

Code: Select all
:titleanimation
StrLen "[PubTitle]" "[titlelen]"
setvar "[title]" "[PubTitle]"
setvar "[PubTitle]" ""

:animatetitle
Loop "1" "[titlelen]" "[titleloop]"
SubStr "[title]" "[titleloop]" "1" "[titlemod]"
setvar "[titlle]" "[titlle][titlemod]"
delay "500"
setvar "[PubTitle]" "[titlle]"
endloop



if you want it to keep going:


Code: Select all
:titleanimation
StrLen "[PubTitle]" "[titlelen]"
setvar "[title]" "[PubTitle]"
setvar "[PubTitle]" ""
setvar "[titlle]" ""

:animatetitle
Loop "1" "[titlelen]" "[titleloop]"
SubStr "[title]" "[titleloop]" "1" "[titlemod]"
setvar "[titlle]" "[titlle][titlemod]"
delay "500"
setvar "[PubTitle]" "[titlle]"
endloop
gotoline "titleanimation"



A bit better on :

Code: Select all
:titleanimation
StrLen "[PubTitle]" "[titlelen]"
setvar "[title]" "[Pubtitle]"
setvar "[titlle]" ""
setvar "[PubTitle]" ""

:animatetitle
Loop "1" "[titlelen]" "[titleloop]"
SubStr "[title]" "[titleloop]" "1" "[titlemod]"
setvar "[titlle]" "[titlle][titlemod]"
delay "500"
setvar "[PubTitle]" "[titlle]"
endloop

:blink
setvar "[PubTitle]" ""
delay "200"
setvar "[Pubtitle]" "[titlle]"
delay "300"
setvar "[PubTitle]" ""
delay "200"
setvar "[Pubtitle]" "[titlle]"
gotoline "titleanimation"



Happy Neobooking
---------------------
MatSoft
_______________
Image
User avatar
hasan
 
Posts: 29
Joined: Sun May 13, 2007 3:13 am

Postby AlfB » Tue Feb 05, 2008 1:18 am

thanks Hasan, looks pretty well

ALF
User avatar
AlfB
 
Posts: 132
Joined: Sun Apr 03, 2005 12:43 am


Return to NeoBook Knowledgebase

Who is online

Users browsing this forum: No registered users and 0 guests

cron