Master Game Community

Master Game Productions (MGP) presents Master Game Community (MGC). A forum for all your Game Maker needs.


    i want help withe program

    Share

    kasm
    Member

    Posts : 17
    Reputation : 0
    Join date : 2011-01-28

    Re: i want help withe program

    Post by kasm on Sat Jan 29, 2011 6:20 am

    now how to make box to write email and letter
    avatar
    MasterOfKings
    MGC Master

    Posts : 67
    Reputation : 0
    Join date : 2010-04-01

    Re: i want help withe program

    Post by MasterOfKings on Sat Jan 29, 2011 6:50 am

    Code:
    //Create event...
    typing=-1;
    email="";
    message="";

    Code:
    //Global left mouse button...
    if (mouse_x==median(100,mouse_x,300)) { //100 and 300 are the x limits of both the email and message
        if (mouse_y==median(100,mouse_x,122)) { //100 and 122 are the y limits of email
            typing=0;
            keyboard_string=email;
        }
        else if (mouse_y==median(130,mouse_y,180)) { //130 and 180 are the y limits of message
            typing=1;
            keyboard_string=message;
        }
        else {
            typing=-1;
        }
    }

    Code:
    //Step event...
    if (typing==0) {
        email=keyboard_string; //you can limit this, but I didn't include it
    }
    else if (typing==1) {
        message=keyboard_string;
    }

    Code:
    //Draw event...
    draw_set_color(c_white);
    draw_rectangle(100,100,300,122,false);
    draw_rectangle(100,130,300,180,fasle);
    draw_set_color(c_black);
    draw_text(100,100,email);
    draw_text(100,130,message);

    I hope that helps.

    -MoK









    Click here to donate to support Master Game Community!

    kasm
    Member

    Posts : 17
    Reputation : 0
    Join date : 2011-01-28

    Re: i want help withe program

    Post by kasm on Sat Jan 29, 2011 7:42 am

    i did that they give me error :

    ___________________________________________
    ERROR in
    action number 1
    of Draw Event
    for object object1:

    Error in code at line 3:
    draw_rectangle(100,130,300,180,fasle);
    ^
    at position 33: Unknown variable fasle
    avatar
    MasterOfKings
    MGC Master

    Posts : 67
    Reputation : 0
    Join date : 2010-04-01

    Re: i want help withe program

    Post by MasterOfKings on Sun Jan 30, 2011 12:46 am

    I spelled the word 'false' incorrectly. Surely you would of seen that?

    -MoK









    Click here to donate to support Master Game Community!

    kasm
    Member

    Posts : 17
    Reputation : 0
    Join date : 2011-01-28

    Re: i want help withe program

    Post by kasm on Sun Jan 30, 2011 10:28 am

    ok it work but i see two withe box and i cant click on it ?

    kasm
    Member

    Posts : 17
    Reputation : 0
    Join date : 2011-01-28

    Re: i want help withe program

    Post by kasm on Mon Jan 31, 2011 11:19 am


    ؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟
    avatar
    MasterOfKings
    MGC Master

    Posts : 67
    Reputation : 0
    Join date : 2010-04-01

    Re: i want help withe program

    Post by MasterOfKings on Mon Jan 31, 2011 5:22 pm

    You can click in them. Just click on one and start typing. It's just there's no visible "icon" that shows your typing there.

    -MoK









    Click here to donate to support Master Game Community!

    Sponsored content

    Re: i want help withe program

    Post by Sponsored content


      Current date/time is Thu Sep 21, 2017 6:04 am