Jump to content


Photo

Outline Text


  • Please log in to reply
6 replies to this topic

#1 Josh

Josh

    eTronic Gaming

  • New Member
  • 215 posts

Posted 23 November 2006 - 08:12 PM

This script draws an outline around your text, really simple to use. No credit required.

Place outline() in the draw event.

// Script outline(text,outline_color,text_color)
xx=0;
yy=room_height;
// Change above variables to fit your needs.

draw_set_color(argument1);
draw_set_valign(fa_bottom);
for (i=8;i<11;i+=1) {
  for (ii=8;ii<11;ii+=1) {
    draw_text(xx+i,yy-ii,argument0);
  }
}
draw_set_color(argument2);
draw_text(xx+9,yy-9,argument0);

Tell me how it goes <_<
  • 0

#2 Fox-NL

Fox-NL

    I wanna fly high

  • New Member
  • 620 posts

Posted 23 November 2006 - 09:06 PM

This script has been made a couple of times before... with even more functionality
  • 0

#3 Josh

Josh

    eTronic Gaming

  • New Member
  • 215 posts

Posted 23 November 2006 - 09:21 PM

Didn't know... I was trying it out for myself and I just thought I'd share.
  • 0

#4 player 1

player 1

    GMC Member

  • New Member
  • 96 posts

Posted 25 November 2006 - 06:58 PM

thx ::lmao::
  • 0

#5 Daniel-Dane

Daniel-Dane

    GMC Member

  • New Member
  • 3581 posts

Posted 26 November 2006 - 08:31 AM

Yup, the best I've seen was the 3D text ::lmao::, but this works anyways.
  • 0

#6 ben_dover

ben_dover

    GMC Member

  • New Member
  • 174 posts

Posted 26 November 2006 - 10:24 AM

brilliant, thank you. i'd suggest having 2 more arguments and making them for xx and yy, i modified your code to do that. this way it is just:
outline("text", c_black, c_white, 320, 240), if you get what i mean.
  • 0

#7 Josh

Josh

    eTronic Gaming

  • New Member
  • 215 posts

Posted 26 November 2006 - 04:23 PM

Yeah :D

I modified mine too and ended up getting some alpha values for the outline. It looks really nice with a 0.3 alpha on the outlined text.
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users