Forum

> > CS2D > Scripts > Hudtxt, Marquee?
Forums overviewCS2D overview Scripts overviewLog in to reply

English Hudtxt, Marquee?

5 replies
To the start Previous 1 Next To the start

old Hudtxt, Marquee?

Rygna
User Off Offline

Quote
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.

old Re: Hudtxt, Marquee?

Rainoth
Moderator Off Offline

Quote
• 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.

old Re: Hudtxt, Marquee?

Rygna
User Off Offline

Quote
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

old Re: Hudtxt, Marquee?

Dousea
User Off Offline

Quote
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.
edited 1×, last 11.05.16 03:20:10 pm
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview