Forum

GDevelop 5, async w...
 
Notifications
Clear all

GDevelop 5, async web request

1 Posty
1 Users
0 Reactions
1,201 Widok
0
Topic starter

example

1 Answer
0
Topic starter

1. go to events
2. right click
3. select add other -> javascript
4. create similar script

var my_function = async function (func) {
     setTimeout(function () {
        var req = new XMLHttpRequest();
        req.open('GET', 'https://my.address.com/something/data/1', false,true); 
        req.send(null);
    }, 0);
 
};
my_function ();

Odpowiedź

Author Name

Author Email

Your question *

 
Preview 0 Revisions Saved
Share: