Extension How can I pass a String from Javascript to GML?

Discussion in 'Programming' started by Mert, Jul 11, 2019.

  1. Mert

    Mert Member

    Joined:
    Jul 20, 2016
    Posts:
    360
    I can't use traditional return

    I'd like to take a piece of string from my extension and pass it to GML, in any way possible. (other than simply doing return x;)

    Here's my string
    Code:
    "album:!Hello, I Must Be Going:!length:!3.1:!title:!You Can't Hurry Love:!"
    Edit : Solved, with different strategies :D
     
    Last edited: Jul 12, 2019
  2. rIKmAN

    rIKmAN Member

    Joined:
    Sep 6, 2016
    Posts:
    4,317
    No, you'll just have to wait...

    Sorry! :p
     
    Mert and Lonewolff like this.
  3. Lonewolff

    Lonewolff Member

    Joined:
    Jan 8, 2018
    Posts:
    1,144
    Love don't come easy.

    Some might say that "it's that game of give and take"
     
    Mert likes this.
  4. Lonewolff

    Lonewolff Member

    Joined:
    Jan 8, 2018
    Posts:
    1,144
    Why can't you use return, out of interest?
     
    Mert likes this.
  5. Mert

    Mert Member

    Joined:
    Jul 20, 2016
    Posts:
    360
    I'm fetching data from Firestore. The process isn't happening instantly, so I can't use return.
     
    Lonewolff likes this.
  6. Lonewolff

    Lonewolff Member

    Joined:
    Jan 8, 2018
    Posts:
    1,144
    Ah, fair enough. Sorry but JS isn't my strong point. :(

    Even the mighty Lonewolff has his Kryptonite. :D
     
    Mert likes this.

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