1. Hey! Guest! The 34th GMC Jam will take place between August 22nd, 12:00 UTC (Thursday noon) and August 26th, 12:00 UTC (Monday noon). Why not join in! Click here to find out more!
    Dismiss Notice

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,336
    No, you'll just have to wait...

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

    Lonewolff Member

    Joined:
    Jan 8, 2018
    Posts:
    1,145
    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,145
    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,145
    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