EZ number display function v1.3

zardOz2 - Custom level - from Windows
PlayEdit7 players liked this.Log in to like this level.

UPDATE: alignment and color added
numdisplay() function

Working as intended now, 5 required arguments, 4 optional...

numdisplay(value to display, X position start, Y position, Digit size(width), decimal places(up to 6), Alignment,( -1=left, 0=center, 1=right), Red, Green, Blue)

For noobs, open the lua and go to the bottom where the step() function is... replace my "numdisplay()" with your own, you can make as many as you need. The last four values for alignment and color settings can be left blank, alignment will defalt to right and color will default to white.

Views: 919 Downloads: 298 Unique objects: 1 Total objects: 1

Discuss this level

Log in to comment on this level.
  • ricardito08: @zardOz: It should show up within 20 minutes tops.
  • zardOz2: @Ahmad Khaled: example will post in a minute when the server loads it.... The string library thing was a mistake, that is leftover from my text code. Not sure why you have an error, without seeing your code, you probably added a letter somewhere on accident or something. You can list as many numbers as you need with more numdisplay() lines
  • Ahmad Khaled: @zardOz: i tried not to check it in your level and no thing changed it worked the same.
  • zardOz2: @Ahmad Khaled: sorry, the lua box has 'flag' settings, the "include string library" box must be checked
  • Ahmad Khaled: @zardOz: I did this but it shows an error says 'numdisplay'nill value
  • zardOz2: @Ahmad Khaled:
  • zardOz2: erase the step() portion from the bottom and replace it with this,

    function step()

    the first number is the value you want to display, the second and third numbers are the X and Y world location, the fourth number is the width of the numbers and the fifth number is the number of decimal places...you can change the color at the top of the code
  • zardOz2: @Ahmad Khaled: glad to help, this one is quite useful
  • Ahmad Khaled: @zardOz: excuse me I'm a beginner and that code is somehow complicated for me
    If I want just to display number 7 what code will be written
    I know I'm annoying you so forgive me .
  • Ahmad Khaled: Thanks alot
  • Ahmad Khaled: Awesome as usual.
  • ricardito08: @zardOz: No problem! ★
  • zardOz2: @ricardito08: thx
  • ricardito08: *Stops typing* What is up with all these numbers???? Btw nice number ★Display★

LEVEL ID: 15435