Comunidad Game Maker

Ayuda => Desarrollo de Scripts => Mensaje iniciado por: soccer2008 en Marzo 24, 2010, 09:13:34 PM

Título: Sprite con font
Publicado por: soccer2008 en Marzo 24, 2010, 09:13:34 PM
Creador:soccer2008
Version GM:  :GM8: :GM5: (aunq podr?a funcionar en todas las versiones)
Descripcion: Convierte el texto en sprite, asi de simple  XD XD XD
Codigo:



  for (j=1;j<=string_length(argument0);j+=1)
  {
 tx=string_copy(argument0,j,1);
  if (tx='.') draw_sprite(argument1,26,x-12+j*14,y-14+i*14);
  else if (tx=',') draw_sprite(argument1,27,x-12+j*14,y-14+i*14);
  else if (tx!=' ') draw_sprite(argument1,ord(string_upper(tx))-65,x-12+j*14,y-14+i*14);
  }

Título: Re: Sprite con font
Publicado por: sergiofcb95 en Mayo 12, 2010, 06:50:54 PM
 XD
asias
arriba  :GM8: !!!!!