Q: Wrap Actor Text

Game Editor comments and discussion.

Q: Wrap Actor Text

Postby zupernoc » Sun Jul 02, 2006 12:10 am

I have an actor placed at the top of the view in a 240x320 window. I am assigning text to the actor using strcpy. It has become apparent though, that some of my assigned text is going off the screen out of view.

Is there a method to wrap the text to stay on the screen?

Thank you.
zupernoc
 
Posts: 17
Joined: Thu Jun 01, 2006 9:12 pm
Score: 0 Give a positive score

Postby DilloDude » Sun Jul 02, 2006 1:02 am

To stop text going off the screen, you can use a smaller font, or put a new line in the string. The new line character is '\n'. Alternatively you could have the text scrolling across the top, depending on the effect you want. If you like, I can write a function to do this.
Image
User avatar
DilloDude
 
Posts: 866
Joined: Tue Jan 24, 2006 9:51 am
Location: Nyerellion
Score: 58 Give a positive score

Postby zupernoc » Tue Aug 01, 2006 2:10 am

Thank you for the offer - very generous. However, I am just looking to wrap text. Currently im using \n , but was wondering if wrapping text was built in.. some how. Thanks!
zupernoc
 
Posts: 17
Joined: Thu Jun 01, 2006 9:12 pm
Score: 0 Give a positive score


Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest