Jump to content


Photo

Text Wrap


  • Please log in to reply
4 replies to this topic

#1 Gimpy Matey

Gimpy Matey

    Arr!

  • New Member
  • 497 posts

Posted 18 December 2007 - 06:44 AM

Hey guys,
So i am using the following code to wrap my text:

draw_text_ext(room_width/2,y,Text,17,400)


and i was wondering if there was any way i could make it so that when it came across something like " | " then fake an 'enter' and move down to the next line. any advice would be appriciated! thanks.
  • 0

#2 Kakashi_Hatake

Kakashi_Hatake

    {(GM)}

  • New Member
  • 1713 posts

Posted 18 December 2007 - 07:42 AM

the character, # is for a new line
  • 0

#3 ~Dannyboy~

~Dannyboy~

    ~hoqhuue(|~

  • GMC Member
  • 2144 posts
  • Version:GM8

Posted 18 December 2007 - 08:37 AM

Ya, if you want to use "|" instead you'll have to use
str=string_replace_all(str,'|','#');

Vote yoyo, see my sig.
  • 0

#4 Gimpy Matey

Gimpy Matey

    Arr!

  • New Member
  • 497 posts

Posted 18 December 2007 - 09:02 AM

Wow, that just saved me a lot of time....thanks for the obvious answer guys, i suppose you learn something strange every day.
  • 0

#5 ~Dannyboy~

~Dannyboy~

    ~hoqhuue(|~

  • GMC Member
  • 2144 posts
  • Version:GM8

Posted 18 December 2007 - 09:17 AM

Wow, that just saved me a lot of time....thanks for the obvious answer guys, i suppose you learn something strange every day.

No problem :unsure:
BTW: it can be kinda useful for some games where you can chose your own name (you can make multi-line names :)
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users