The Daily Click ::. Forums ::. Klik Coding Help ::. Pasting text into background?
 

Post Reply  Post Oekaki 
 

Posted By Message

Eternal Man [EE]

Pitied the FOO

Registered
  18/01/2007
Points
  2969

Game of the Week WinnerHero of TimeLOL SignI am an April Fool
11th April, 2011 at 23:54:52 -

Posted this in the Clickteam forums, but I thought I might as well post it here too.

I was just wondering if there is any way to paste text into the background like you can paste the current frame of an active object into the background?

I was thinking that the text-blitter should be able to, but after extensively reading the documentation for it I didn't find anything indicating you could. Though I'm a complete n00b on the TB, so perhaps I just missed it.

Anyone?

//EE

 
Eternal Entertainment's Code'n'Art Man

E_E = All Indie


...actually Ell Endie, but whatever.
Image
Image

GamesterXIII



Registered
  04/12/2008
Points
  1105

I am an April Fool
12th April, 2011 at 00:18:43 -

Couldn't you make an empty string, create it on top of the text you are trying to "paste," set it to the string you are trying to paste, then destroy the original?

If you feel like manipulating it a bit, you could also use the static text object to avoid having to have an extra collision group (since strings get sorted into text groups and static text does not)

Edited by GamesterXIII

 
n/a

Eternal Man [EE]

Pitied the FOO

Registered
  18/01/2007
Points
  2969

Game of the Week WinnerHero of TimeLOL SignI am an April Fool
12th April, 2011 at 01:00:51 -

I didn't wholly follow how you meant there, however, I solved it with the Text Blitter, thanks anyway!

The thing I was trying to do was displaying the entire content of an array on the screen, without using several HUNDRED editboxes or the ilk. Goes to show that iterating the array while appending the current value did just that! No fps drop or memory blocks yet anyways!

 
Eternal Entertainment's Code'n'Art Man

E_E = All Indie


...actually Ell Endie, but whatever.
Image
Image
   

Post Reply



 



Advertisement

Worth A Click