Just testing with pasting code

Discussion in 'Off Topic' started by Clemens van Brunschot, Jan 7, 2019.

Thread Status:
Not open for further replies.
  1. Clemens van Brunschot

    Clemens van Brunschot Member

    Joined:
    Dec 28, 2018
    Posts:
    41
    Let's give it a try
    Code:
    // Go to a room while testing
    if ((keyboard_check_direct(vk_lcontrol) or keyboard_check_direct(vk_rcontrol))
    && global.testing
    && keyboard_check_pressed(ord("R"))) {
        destination = asset_get_index(get_string("Go to room with name: ", "rm_"));
        //Alternatively: destination = real(get_string("Go to room number: ", "1"));
        if (room_exists(destination)) room_goto(destination);
    }
    
     
  2. Cantavanda

    Cantavanda 〜Flower Prince〜

    Joined:
    Jun 23, 2016
    Posts:
    67
    Your test worked! But I think you can also preview a post so you don't have to make this public lol
     
  3. Nocturne

    Nocturne Friendly Tyrant Forum Staff Admin

    Joined:
    Apr 13, 2016
    Posts:
    6,342
    Indeed. Please don't post topics just to test forum features. ;)
     
Thread Status:
Not open for further replies.

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