twinblade-infinity/scripts/scr_pointsparticle/scr_pointsparticle.gml

25 lines
495 B
Plaintext
Raw Normal View History

function scr_pointsparticle(argument0) {
//displays the points on screen for 1 second, with a fade in and out
//copyright 2010 Studio Tinyleaf
//original code by Jennifer Hogueison
numero += 1
draw_set_font(fnt_arial_s8_italic)
draw_set_color(c_white)
draw_set_alpha(.2*numero)
if numero >= 30
{
draw_set_alpha(1-.05*(numero-30))
}
draw_text(x,y-numero/2,string_hash_to_newline(argument0))
if numero >= 50
{
numero = 0
}
draw_set_alpha(1)
}