Display Text: Break the Lines
BigDave
Member Posts: 2,239
Hello
As you can see it already does it, by using the "wrap inside actor" checkbox.
Problem:
It moves the first lines y position.
Expected result:
Keep the lines at their current y position.
Adding the new line below.
Any Idea how I would do this?
Comments
@BigDave
Have a look at @Armelline 's solution here:
http://forums.gamesalad.com/discussion/comment/589968/#Comment_589968
MESSAGING, X-PLATFORM LEADERBOARDS, OFFLINE-TIMER, ANALYTICS and BACK-END CONTROL for your GameSalad projects
www.APPFORMATIVE.com
That should be:
"I've got a small task for you"
or "I have got a small task for you"
or "I've a small task for you"
or "I have a small task for you"
#GrammarNazi
@BigDave alt+enter after "small" to break the line , no need to wrap I think .. thats how i do it, i keep testing and then break the line after a certain word
@Hopscotch ahh very nice. Not sure it will work tough as the weakness seems to be exactly not to be variable to different lengths of text and words.
@Socks
thats true I might should get it checked by a native speaker once its done.
thing is this font does not support ' or ä ö i tried to add them with free online tool but it always came out blurry.
http://www.pentacom.jp/pentacom/bitfontmaker2/
@Icebox
Would it also work for text lines loaded from tables?
Also a solution. I check it out tomorrow thanks.
My Apps
https://itunes.apple.com/de/artist/david-zobrist/id733552276
https://play.google.com/store/apps/developer?id=David+Zobrist&hl=de
Yes im sure it works i always display text from tables just do alt+enter then continue what you want to type
@Icebox
sound like the best way then as you can design how your sentences come across each at a time. BUT a lot of work for multi languages etc
My Apps
https://itunes.apple.com/de/artist/david-zobrist/id733552276
https://play.google.com/store/apps/developer?id=David+Zobrist&hl=de
Unfortunately doing this kind of thing with GameSalad is very difficult. Even methods like the one I recommended in that other thread are very limited because you can not easily tell the number of characters in a line due to variable character widths and different fonts. If you know in advance where the line breaks come, it's definitely doable, though. In theory it will be possible to manually work out the line breaks in each piece of text in the game, though it'll be a long slog. If you know where the breaks need to come, they can be added fairly easily.
Contact me for custom work - Expert GS developer with 15 years of GS experience - Skype: armelline.support
You could use a monospaced font.
Spaces still complicate matters a little, as GS doesn't seem to always render them at the same width as the font characters, but with a monospaced font it would definitely be easier.
Contact me for custom work - Expert GS developer with 15 years of GS experience - Skype: armelline.support
@Armelline
i see buddy. The thing is I have one single archetype speech bubble actor. Which gets start cell and end cell manually within the scene.
Keeping wrap text in actor on I know the fix max with before a break happens. Also the font size and font is consistent
I already know total text length and current text length (as it is written 1 letter at the time)
My Apps
https://itunes.apple.com/de/artist/david-zobrist/id733552276
https://play.google.com/store/apps/developer?id=David+Zobrist&hl=de
@icebox avoiding wrap in actor did not fix the issue for me I still noticed a jump
My Apps
https://itunes.apple.com/de/artist/david-zobrist/id733552276
https://play.google.com/store/apps/developer?id=David+Zobrist&hl=de
@BigDave Oh i just checked my project your right.. tick wrap in actor my bad , hope it worked out for you