if global.internet=true
if global.reading=1
{
draw_set_color(c_black)
draw_set_font(fnt_arial)
draw_text(0,0,"The First Ever BibbyTeam GML-Only Topic!")
draw_text(0,9,"Rules:")
draw_text(0,18,"01. You're only allowed to use GML. (OHMIGOSH WUT IS GML?!?")
draw_text(0,27,"02. No swearing, or anything like that. That's not cool.")draw_text(0,36,"03. You can point out that some code is wrong, but do it politely. (HEY UR CODE SUX LOLOLOL = No.")
draw_text(0,54,"So, Have fun guys!")
draw_set_color(c_white)
}
---
Edited by: Dazzle, Aug 2nd, 2011 @ 1:57 pm
Prodigal Son
Posts: 536
Status: Offline Group: Member Member: #5 |
Aug 2nd, 2011 @ 1:51 pm Perma-link
Please place your signature here.
|
Never change your avatar
Posts: 3180
Status: Offline Group: Admin Member: #1 |
Aug 2nd, 2011 @ 1:54 pm Perma-link
if global.online > 0
{
draw_set_color(c_blue)
draw_set_font(font0)
draw_text(0,0,"Bibby says:")
draw_text(0,9,"Do not imitate Hello,")
draw_text(0,18,"so please remember to use tabbing,")
}
Course clear! You got a card.
|
Posts: 351
Status: Offline Group: Member Member: #13 |
Aug 2nd, 2011 @ 2:07 pm Perma-link
_string="Am I doing it right? Oh and if anyone's actually going to try this, make sure it happens at least one step into the game. Don't put it in the creation event or something or it'll freeze your game. Oh and if you want my actual script, check DeeY's tutorial thread on MFGG."
_place=0;
_amount=string_length(_string);
_tc=c_black
_bo=c_black;
_bc=c_white;
_yoffs=0;
_w=view_wview-16
_h=round(view_hview/7)
_confirm=vk_anykey;
_quit=vk_escape;
_offs=(view_wview-_w)/2;
_mar=round(_offs*2);
_slpamt=30;
_hwrap=_w-_mar;
////////////////////////////////////////////////////////////////
if _yoffs<0
{
_yoffs=0;
}
if _yoffs>((view_hview-_h)-_mar)
{
_yoffs=(view_hview-_h)-_mar;
}
////////////////////////////////////////////////////////////////
_string = string(_string);
for (i=1;i<_amount;i+=1)
{
_charat=string_char_at(_string,i);
if _charat=' '
{
_space=i;
}
_strw=string_width(string_replace_all(string_copy (_string,0,i),'|',''));
if _strw>_hwrap
{
_string=string_insert('#',_string,_space);
_string=string_delete(_string,_space+1,1);
i=_space;
}
}
////////////////////////////////////////////////////////////////
draw_set_color(_bc);
draw_roundrect(_offs,_offs+_yoffs,_offs+_w,_offs+_yoffs+_h,0);
draw_set_color(_bo);
draw_roundrect(_offs,_offs+_yoffs,_offs+_w,_offs+_yoffs+_h,1);
draw_set_color(_tc);
////////////////////////////////////////////////////////////////
do
{
_place+=1;
draw_text(_mar,_mar+_yoffs,string_copy(_string,0,_place));
screen_refresh();
if keyboard_check(_quit)
{
_place=_amount
event_perform(keyboard_key,keyboard_key_press(_confirm));
event_perform(keyboard_key,keyboard_key_press(_quit));
}
else if !keyboard_check(_confirm)
{
sleep(_slpamt);
}
if string_height(string_copy(_string,0,_place+1))>_h {_place=_amount}
}
until (_place=_amount)
do {keyboard_wait();} until (keyboard_check(_confirm)) or (keyboard_check(_quit));
|
poutine god
Posts: 459
Status: Offline Group: Member Member: #6 |
Aug 2nd, 2011 @ 2:13 pm Perma-link
init:
$ f = Character('Fujiko"', show_two_window = True)
label start:
f "Eh? What is this?"
f "Most of that is pretty hard for me to read, and looks like more trouble than it should be to display text."
f "But what do I know? I just program Visual Novels!"
return |
Never change your avatar
Posts: 3180
Status: Offline Group: Admin Member: #1 |
Aug 2nd, 2011 @ 2:26 pm Perma-link
if global.online > 0
{
draw_set_color(c_blue)
draw_set_font(font0)
draw_text(0,0,"Sorry, but GM and Python aren't on speaking terms with each other.")
draw_sprite(0,40,[IMG]http://i52.tinypic.com/219tqo0.jpg[/IMG]")
}
--- Edited by: Bibby, Aug 2nd, 2011 @ 2:27 pm
Course clear! You got a card.
|
Posts: 351
Status: Offline Group: Member Member: #13 |
Aug 2nd, 2011 @ 2:29 pm Perma-link
Really? All I got was this:
![]() Okay, I lied. This was my input: show_message("Python Programming Language doesn't work in Game Maker, smart guy.");
--- Edited by: Puddin, Aug 2nd, 2011 @ 2:35 pm |