Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers AppGameKit Corner / Horizontal scrolling text - how smooth is it?

Author
Message
ACS Cobra
14
Years of Service
User Offline
Joined: 6th Apr 2010
Location:
Posted: 10th Dec 2017 10:54
Hi Guys...,

I need to create a scrolling marque of text....

How smooth is the scrolling of horizontal text in AppGameKit?

I've tried GDI+ in visual basic but it's not that smooth.

Hope you can help.

Regards

Steve
puzzler2018
User Banned
Posted: 10th Dec 2017 11:07
Try it out



D
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 10th Dec 2017 17:54
Very smooth, especially if it is all you are displaying.
You can also use Tweens to create text that scrolls in and slows down as it reaches the centre of the screen. Then a slow start and scroll back out.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Quidquid latine dictum sit, altum sonatur
TutCity is being rebuilt
Conjured Entertainment
AGK Developer
18
Years of Service
User Offline
Joined: 12th Sep 2005
Location: Nirvana
Posted: 10th Dec 2017 22:25
Quote: "Try it out"

You could use floats instead of integers too!


Coding things my way since 1981 -- Currently using AppGameKit V2 Tier 1
ACS Cobra
14
Years of Service
User Offline
Joined: 6th Apr 2010
Location:
Posted: 12th Dec 2017 20:00
Thanks guys....

Works like a charm....

Just a query though... the speed variable... it doesn't seem to be used in the loop? how come? What am I missing?

I do the Big Screen TV display at a local football ground and we have been using X-Split for the graphics display, but it's been getting more and more stuttery so we have moved to OBS... but OBS can't handle the large text I need to scroll along the bottom of the screen.
So I intend to use this to scroll the text and capture the screen in OBS...


Thanks again.
puzzler2018
User Banned
Posted: 12th Dec 2017 21:42
Hi

It does get used in the loop

We have used inc and dec commands which is the same as

inc speed# is the same as speed#=speed# + .8
dec speed# is the same as speed#=speed# - .8

Hope it goes well on the big screen

Good luck

D

ACS Cobra
14
Years of Service
User Offline
Joined: 6th Apr 2010
Location:
Posted: 13th Dec 2017 20:59
Hi Puzzler2018...,

I'm definitely missing something

The only reference to the speed variable in the loop is when it is being inc or dec... which is just changing the variables number... so what is acting on the variable "speed" to increase the scrolling speed?

Hope that makes sense

Thanks again.

Regards

Steve
ACS Cobra
14
Years of Service
User Offline
Joined: 6th Apr 2010
Location:
Posted: 13th Dec 2017 21:06
Ahhh spotted it....

I was assuming that:-

inc textposition, speed

meant that both of the variables where being inc'd by 1

as in other languages, you can instantiate multiple variables on the same line

i.e.
local var1, var2, var3, var4

etc...

the command would have been more readable if it was inc(textposition,speed) lol

That's what you get for assuming you know what a command is doing lol

Thanks again.

Regards

Steve
puzzler2018
User Banned
Posted: 13th Dec 2017 21:08
Yeah the command

inc textposition#, speed#

is where it actually is doing something

Its the way I programme

Glad you spotted it

Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 13th Dec 2017 21:16 Edited at: 13th Dec 2017 21:17
Quote: "The only reference to the speed variable in the loop is when it is being inc or dec... which is just changing the variables number"


Line # 30, first line of the DO loop:

inc textposition#, speed#

That's what's updating your text position.


yall beat me while I was responding :p
Tiled TMX Importer V.2
XML Parser V.2
Base64 Encoder/Decoder
Purple Token - Free online hi-score database
Legend of Zelda

"I like offending people, because I think people who get offended should be offended." - Linus Torvalds
ACS Cobra
14
Years of Service
User Offline
Joined: 6th Apr 2010
Location:
Posted: 13th Dec 2017 23:32
Thanks again guys, I really appreciate your help and input

I've got it working

I have another program that updates the football league scores and outputs a text file.... my AppGameKit program then scrolls the text from right to left... and check to see if the file has been updated every three seconds, and if so, updates the text

Beers all round; unless you don't drink beer, then I guess tea, anyone?

Login to post a reply

Server time is: 2024-04-20 16:06:30
Your offset time is: 2024-04-20 16:06:30