GMS 2.3+ 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;

It should now compile and work perfectly!
 
Top