Graphics

 View Only
  • 1.  matrix like text effect

    Posted 09-11-2014 20:06

    Hi, I have the following script:


    dim t_IN, t_OUT as xpTextObject

    dim j as long

    self.getobjectbyname("t_IN", t_IN)

    self.getobjectbyname("t_OUT", t_OUT)

    j = CLng(len(t_IN.text))

    dim rdm as random

    rdm = new random

    t_OUT.text = rdm.Next( (10^j -1) /9, 10^j -1 )



    but the problem is, random doesnt accept numbers that are more than 10^10, so I have to start from scratch, what im trying to achieve is the effect when your text appears as a sequence of characters, like in the matrix. If anyone have a script or an idea, I would love to exchange ideas.

    thanks for the help in advance.



  • 2.  RE: matrix like text effect

    Posted 09-11-2014 20:13
    Rather than trying to generate a random number of greater than 10^10, why not just loop X number of times adding a random digit of between 0 and 9 to the string..

    #XPression