The Daily Click ::. Forums ::. General Chat ::. Grabbing random text
 

Post Reply  Post Oekaki 
 

Posted By Message

siven

I EAT ROCKS

Registered
  03/11/2008
Points
  604

Wii OwnerVIP Member
27th August, 2014 at 27/08/2014 20:14:00 -

How does one grab a random paragraphs text from a string object? say theres 10 paragraphs all with 1 word each in them, how would i grab one at random?

 
[Game design makes my brain feel like its gonna explode.]

Jenswa

Possibly Insane

Registered
  26/08/2002
Points
  2722
29th August, 2014 at 29/08/2014 19:55:47 -

Erm, didn't Del Duio replied to this question?

O wait I am sorry, that was another question over here:
http://create-games.com/forum_post.asp?id=300651

I've been giving this question some thoughts too, but my skills are a bit rusty and Clickteam products work a bit different with text than most normal environments which let's you easily manipulate strings.

If setting different paragraphs for you will work, try that. Otherwise you might want to look at some kind of text object, or blitting object. And another good hint would be: substring. Which let's you extract portions of string.


 
Image jenswa.neocities.org
   

Post Reply



 



Advertisement

Worth A Click