• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

Android Adding Scripts to an Extension in Game Maker

RyanC

Member
Hey Guys,

Does anyone know how to add scripts to an extension for new functionality.

I'm trying to update the Flurry extension to be fully GDPR complaint, as the YoYo Games Flurry ext has not been updated to support GDPR yet.

The script that allows users to exercise their rights and view data collected is here:
https://developer.yahoo.com/flurry/docs/analytics/gettingstarted/gdprpd/

Code:
public void openPrivacyDashboard() {
       TestApplication.getInstance().startFlurryAgent();

       final FlurryPrivacySession.Callback callback = new FlurryPrivacySession.Callback() {
           @Override
           public void success() {
               Log.d(TAG, "Privacy Dashboard opened successfully");
           }

           @Override
           public void failure() {
               Log.d(TAG, "Opening Privacy Dashboard failed");
           }
       };

       final FlurryPrivacySession.Request request = new FlurryPrivacySession.Request(getApplicationContext(), callback);
       FlurryAgent.openPrivacyDashboard(request);
   }
 

2Dcube

Member
You can add a reference to a function to an extension inside Game Maker Studio.
If you use the same "external name" as the function in Java, you can call it from within Game Maker.
In this case the external name would be "openPrivacyDashboard".

The function itself (the code in your post) has to be added to the Java code.
 
Top