Results 1 to 10 of 10

Thread: How do I make a paint?

  1. #1
    Join Date
    Feb 2012
    Posts
    51
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default How do I make a paint?

    ? What title says ^

  2. #2
    Join Date
    Nov 2011
    Location
    MA
    Posts
    545
    Mentioned
    3 Post(s)
    Quoted
    10 Post(s)

    Default

    On-screen paint? You'll need to be more specific.

  3. #3
    Join Date
    Feb 2012
    Posts
    51
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Like when I run my script, i would like to make it a paint that says:

    ? I need a paint that includes:


    Franju GhoulKiller

    Time running:
    Exp per hour:
    Ghouls killed:

  4. #4
    Join Date
    Jan 2012
    Posts
    2,568
    Mentioned
    35 Post(s)
    Quoted
    356 Post(s)

    Default

    use bitmaps. You can easily find a script and learn from it. Also pls dont post the same qns in more than 1 section

  5. #5
    Join Date
    Feb 2012
    Posts
    51
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by riwu View Post
    use bitmaps. You can easily find a script and learn from it. Also pls dont post the same qns in more than 1 section
    That didnt answer my question at all lol... anyone else?? :l

  6. #6
    Join Date
    Jan 2012
    Location
    In A Farm
    Posts
    3,301
    Mentioned
    30 Post(s)
    Quoted
    444 Post(s)

    Default

    Yeah, you can make it yourself using Photoshop. Get the size you want and get working on it.

  7. #7
    Join Date
    Feb 2012
    Location
    Somewhere, over the rainbow...
    Posts
    2,272
    Mentioned
    3 Post(s)
    Quoted
    45 Post(s)

    Default

    Make one yourself or if you can't then check the link in my sig.

    Once that's done, you can check the other link in my sig to create progress reports.

    Finally, once you've created a progress report, at the bottom of that tutorial you will find a link to another guide which will tell you how to get it OnScreen

  8. #8
    Join Date
    Feb 2012
    Posts
    51
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Oh I see where this thread is going lol, what i need to know is:

    How do I add a paint to my script ~ I already got the paint done

  9. #9
    Join Date
    Dec 2011
    Location
    P2P :)
    Posts
    561
    Mentioned
    0 Post(s)
    Quoted
    5 Post(s)

    Default

    http://villavu.com/forum/showthread.php?t=68856

    A very well written guide to using paint with SMART.

    Simba Code:
    program PaintStuff;
      {$define SMART}
      {$i srl/srl.simba}
      {$i SRL/SRL/misc/paintsmart.simba}

      Procedure PrintOnSmart(TP: TStringArray; Placement: TPoint; Colour: integer);
      var
        mx, my, Pic, I, B, H, TPH, Numb: Integer;
        TTP: TPointArray;
        Canvas: TCanvas;
      begin
        SmartSetDebug(True);
        GetClientDimensions(mx, my);
        Pic := BitmapFromString(mx, my, '');
        TPH := High(TP);
        for I := 0 to TPH do
        begin
          TTP := LoadTextTPA(TP[i], SmallChars, H);
          for B := 0 to High(TTP) do
          begin
            Numb := ((I + 1) * 13);
            FastSetPixel(Pic, TTP[b].x + 1, TTP[b].y + Numb + 1,8388736);
            FastSetPixel(Pic, TTP[b].x, TTP[b].y + Numb, Colour);
          end;
        end;
        Canvas := TCANVAS.Create;
        Canvas.Handle := SmartGetDebugDC;
        DrawBitmap(Pic, Canvas, Placement.x, Placement.y);
        FreeBitmap(Pic);
      end;

      Procedure DoThePainting;
      begin
        PrintOnSmart(['A painted canvas', 'by Flight'], Point(40, 50), 255);
      end;

    begin
      Smart_Server := 86;
      Smart_Members := True;
      Smart_Signed := True;
      Smart_SuperDetail := False;
      SetupSRL;  //This must be called before any canvas painting

      DoThePainting;       [B]Trace this backwards.[/B]

    end.

    Only updated the .scar extensions because that is all you have to do to make his guide up to date more or less.
    I wear my scars like the rings on a pimp
    I live life like the captain of a sinking ship
    Always sell your product for ATLEAST mid to ensure that the market doesn't drop.

  10. #10
    Join Date
    Sep 2010
    Location
    Azeroth
    Posts
    395
    Mentioned
    0 Post(s)
    Quoted
    17 Post(s)

    Default

    yeah the function is called paintsmart.... uhm are you familliar with the smart debug? if you are you can write texts aswell and then u make a funk that writes your highscore!!!!!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •