Text Candy Marquee Text Scrolling not smooth

Text moves smoothly until characters start being removed then it starts going all jerky as if the x offset isn’t taking in account of the character width properly, I’ve had look but the code is incomprehensible to me :slight_smile:

I’m sure this is more to do with offset calculations than performance as I’m only scrolling one line of text

Anyone else come across this? apart from this a very easy to use, add-on to Corona which will make your games look professional

[import]uid: 3093 topic_id: 12194 reply_id: 312194[/import]

Dominic, did you set text alignment to “LEFT”? If your issue still exists, please send us a small sample code, so we can see how you set up your marquee. [import]uid: 10504 topic_id: 12194 reply_id: 44926[/import]

Dominic, you got mail. We just found out that, with the current library version, marquees do not take into account a charset’s scale factor (if .ScaleCharset was used). This has been fixed, updated library version goes out within the next couple of days.

Thanks for pointing this out :wink:
[import]uid: 10504 topic_id: 12194 reply_id: 45427[/import]

Thanks all working now!

As an old school game developer reading the Corona vector font documentation and device compatibility made my head hurt, also I like my fonts to look like they belong in a game not a web page

I highly recommend Text Candy for getting ‘game’ quality bit map fonts and text effects into your game [import]uid: 3093 topic_id: 12194 reply_id: 46443[/import]

I have the same issue.

I tried with and without scalecharsert, with or without offsetX
I did as in your marquee fun example…

As soon as the text reaches the left edge, there’s a fast acceleration.
With scalecharset, the text makes a fast right-left.

I have 1.0.06 (can’t use 1.0.08 for suscribers)

Help would be welcome : I just can’t use the so cool marquee this way …

I also noticed that, with a negative speed, the text just doesn’t loop … [import]uid: 9328 topic_id: 12194 reply_id: 72241[/import]

Antheor, could you please send us some small demo code so we can have a look at it?

[import]uid: 10504 topic_id: 12194 reply_id: 73207[/import]

Thx for your support, but my code is still heavy and it would be painful for you dig in it :slight_smile:

I tried another effect.

(I may be back if trying another marquee lead to the same issue) [import]uid: 9328 topic_id: 12194 reply_id: 73533[/import]

Would it be possible for you to copy out the parts of the code where you load your font and create the marquee only? If so, please include your charset texture as well, so we can test it. [import]uid: 10504 topic_id: 12194 reply_id: 73638[/import]

I tried another time on another page still getting the issue.

So I tried to load the font used in the sample code marquee, copy/paste the line

 TextCandy.AddCharset ("FONT1", "font\_Glossy\_Big", "font\_Glossy\_Big.png", "0123456789AÄBCDEFGHIJKLMNOÖPQRSTUÜVWXYZ'\*@():,$.!-%+?;#/\_", 30)  
  

But this line makes the terminal returns :
"
…de/projects/mysample/lib_text_candy.lua:131: sequence frames must be inside the sheet
"

I solved the problem by changing the line to :

  
 TextCandy.AddCharset ("FONT1", "font\_Glossy\_Big", "font\_Glossy\_Big.png", "0123456789AÄBCDEFGHIJKLMNOÖPQRSTUÜVWXYZ", 30)  

So it seems my font is responsible for the jag. If you don’t mind, I will send you the font, not to correct it, just to tell me what is wrong inside so that I can fix it and know what not to do for the next font. [import]uid: 9328 topic_id: 12194 reply_id: 80722[/import]