Forum

> > CS2D > Scripts > Hudtxt, Marquee?
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch Hudtxt, Marquee?

5 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Hudtxt, Marquee?

Rygna
User Off Offline

Zitieren
hi,
How to Make Hudtxt with Marquee Mode?

its like looping if hudtxt start from Left and go to Right and if hudtxt already on right of screen, hudtxt will moving from Right to Left, and its not like News or Announcement hudtxt just like Moving then disappear.

Thanks
Sorry for my English.

alt Re: Hudtxt, Marquee?

Rainoth
Moderator Off Offline

Zitieren
• Make a hudtxt
• Use hudtxtmove on it
• Use hudtxtmove on it, this time to move back to original spot
• Repeat to get your "Marquee" mode.

alt Re: Hudtxt, Marquee?

Rygna
User Off Offline

Zitieren
its like this?

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
function marquee()
	parse("hudtxt 1 TestingCit 1 0 100 0")
end

addhook("spawn", "spawn")
function spawn()
	marquee()
end

a = 10
addhook("ms100", "ms100")
function ms100()
	--[ repeat loop execution --]
	repeat
		parse('hudtxtmove 0 1 1000 640 100')
		a = a + 1
	until( a > 15 )
		parse('hudtxtmove 0 1 1000 640 100')
end

Tested, and not Repeated

alt Re: Hudtxt, Marquee?

Dousea
User Off Offline

Zitieren
Let me help you, since nobody has the answer for this problem. Try this.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
local alignment = 0

function startroundhook()
    parse("hudtxt 0 \"Hello, world!\" 320 240 1")
end

function secondhook()
    if (alignment == 0) then
        parse("hudtxtmove 0 0 1000 0 240")
        
        alignment = 1
    else
        parse("hudtxtmove 0 0 1000 640 240")
        
        alignment = 0
    end
end

addhook("startround", "startroundhook")
addhook("second", "secondhook")
I'm on phone so it's not guaranteed to work.
1× editiert, zuletzt 11.05.16 15:20:10
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht