Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Rocco on Sat 12/02/2011 14:04:43

Title: how to make horizontally srolling text?
Post by: Rocco on Sat 12/02/2011 14:04:43
in the old days there was often horizontally text scrolling in the games.

Hostages:
AMIGA - http://www.youtube.com/watch?v=T3ja89l95Ts&feature=player_embedded#at=81
C64 - http://www.youtube.com/watch?v=i0o0aCnaKHM&feature=player_embedded#at=162

What is a good way to achieve this with AGS?
Title: Re: how to make horizontally srolling text?
Post by: Calin Leafshade on Sat 12/02/2011 14:29:10
two ways:

either raw draw the string onto a graphic. This will allow you to have very smooth scrolling text.

or use a label and just remove the letter from the start and add it to the end every loop
that would be simpler but quite jerky since it will be done a letter at a time.
Title: Re: how to make horizontally srolling text?
Post by: Gilbert on Sun 13/02/2011 06:45:09
Just use a text overlay and modify its .X property continuously to have it move across the screen. This is what I did in my (yet to release) game (http://www.youtube.com/watch?v=xlCa0Uh4uV0).
Title: Re: how to make horizontally srolling text?
Post by: Rocco on Sun 13/02/2011 11:37:55
thx, i'll try the raw draw grapic approach and the overlay thing, and see what exactly fit my needs.  :)
Title: Re: how to make horizontally srolling text?
Post by: Tamanegi on Tue 15/02/2011 21:31:35
I would also try the overlay approach: Have the text multiple times in the overlay so it can run one entire length without ending in the visible area, and periodically reset the x-value so it seems to never end.
Title: Re: how to make horizontally srolling text?
Post by: Dualnames on Wed 16/02/2011 06:20:56
This should be ultra useful.

http://www.adventuregamestudio.co.uk/yabb/index.php?topic=32208.0
Title: Re: how to make horizontally srolling text?
Post by: Rocco on Tue 12/04/2011 13:34:00
I get troubles with the z-order, when i try to make the textoutput via RawDraw or Overlay.  :-\
The Problem is, that most of the Time the Flashlightplugin is on, and both Methods draw the Textstrings behind the Flashlightmask.
hmmm, so the only way to avoid this, is to use an GUI-Label for the Textoutput, or are there other possibilitys? 
Title: Re: how to make horizontally srolling text?
Post by: Khris on Tue 12/04/2011 14:00:58
I've never used the flashlight plugin; if it obscures everything but GUIs then yes, use either a GUILabel or a Button with a DynamicSprite as NormalImage you RawDraw to.