how to make horizontally srolling text?

Started by Rocco, Sat 12/02/2011 14:04:43

Previous topic - Next topic

Rocco

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?

Calin Leafshade

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.

Gilbert

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.

Rocco

thx, i'll try the raw draw grapic approach and the overlay thing, and see what exactly fit my needs.  :)

Tamanegi

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.
Don't Look! MAGS 12-2010
Mediocre Expectations Current development blog

Dualnames

Worked on Strangeland, Primordia, Hob's Barrow, The Cat Lady, Mage's Initiation, Until I Have You, Downfall, Hunie Pop, and every game in the Wadjet Eye Games catalogue (porting)

Rocco

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? 

Khris

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.

SMF spam blocked by CleanTalk