PLS HELP

Discussion in 'Programming' started by Mark Francis, Mar 17, 2019.

  1. Mark Francis

    Mark Francis Member

    Joined:
    Mar 17, 2019
    Posts:
    3
    In my character_select room when im choosing a character i want to draw or whatsoever to appear it in the screen do u have any ideas how to do it ?

    I HOPE U GUYS GET MY POINT PLS HELP ME

    //this is my code in my obj_controller //create event
    if (room == rm_characterSelect)
    {
    var kaphwan,shermie;


    draw_set_color(c_yellow);

    kaphwan = instance_create(80,180,obj_selectionbox);
    kaphwan.name = "Kaphwan";
    kaphwan.obj = obj_kaphwan;
    kaphwan.obj2 = obj_kaphwanE;
    kaphwan.spr = spr_kaphwan_stance;


    shermie = instance_create(220,180,obj_selectionbox);
    shermie.name = "Shermie";
    shermie.obj = obj_shermie;
    shermie.obj2 = obj_shermieE;
    shermie.spr = spr_shermie_stance;
     
  2. CROmartin

    CROmartin Member

    Joined:
    Jul 17, 2016
    Posts:
    80
    Hi @Mark Francis. First of all there is no need for begging for help in topic title because title is used for smallest possible description of your problem and not for begging, you will get help because this is forum exactly for that, there is no need for begging. Title will also help people with same problem in future to read solution. Second thing is that you should describe your problem with more precision and also watch out that your sentence have sense because yours is quite poorly told. I am guessing you want character being drawn on screen based on which of two characters player is picking. This can be solved by simply drawing sprite in draw event in one of objects.

    So you create object obj_char_pick, set in create event char_spr = (sprite name of your default pick)
    In object draw_event: draw_sprite(postion_x_you_want,postion_y_you_want,char_spr)

    In this obj_selectionbox: in step event set when that char is picked(I don't know what kind of pick system you have), set obj_char_pick.char_spr = spr(sprite of that character)
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice