• 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!

I fixed the Camsurface Android Extension! (Oct 4th, 2020) [GMS2.3]

kaminoko

Member
After myself and many others were frustrated with the Camsurface extension being broken in GMS2 I taught myself basic java and managed to fix the extension.

The steps to fix are as follows:

Step 1: Download and import Camsurface from the Marketplace.

Step 2: Change Line 6 of the buffer_dump script to the following:
GML:
for (var i=0; i < 40 ;++i) {

Step 3: Open GMCamSurface.java by right clicking the extension in GMS2 and change line 28 and 29 to the following:
JavaScript:
import androidx.core.app.ActivityCompat;
import androidx.core.content.ContextCompat;

Step 4: In GMCamSurface.java delete the words "implements iextensionbase" from line 33.

It should now compile and work perfectly!

Edit 1: Added Step 4 to be compatible with GMS2.3+
 
Last edited:
D

Deleted User

Guest
(Sorry to bump old thread)

Does camsurface with your fixes work on current gamemaker version?
 
Top