Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - SolDiez

Pages: 1 2
1
That's because of facebook not the extension. If you want to share a message you have to use the facebook extension/api

2
Windows / Mac / Flash / HTML5 / Impossible Mario
« on: May 28, 2015, 03:12:04 am »
It was first published on Google Play and achieved about 70 000 installs and recently gave it a shot and published it on newgrounds too:

http://www.newgrounds.com/portal/view/658046

Fingers crossed!

3
iPhone / iPad / Android / Ragdoll in Space
« on: May 23, 2015, 07:46:39 am »
Hey,

I loved captaincomic's "ragdoll test" example and so I made a fun game out of it. I gave credits in game of course. You can find it on google play. Have fun!

 https://play.google.com/store/apps/details?id=com.hgmobileapps.ragdollinspace

4
I poked around the extension a bit and figured it out. There's a problem with devices that only have phone storage. It's not necesarily about having an sd card since some phones have the storage split in 2 even if they have no sd card, and the extension works on those phones also. I fixed it by only writing the screenshot to internal storage, so now it works on all phones.

My fix isn't ideal since it uses a deprecated mode for "openFileOutput", but it should do the trick until someone can fix it the proper way.

You have to replace the contents of the Share.java file, somewhere inside the extension's folder, with this

Code: [Select]
/**
 *
 * Stencyl Extension, Create by Robin Schaafsma
 * wwww.byrobingames.com
 *
 **/

package com.byrobin.simpleshare;

import org.haxe.lime.*;
import android.content.Intent;

import android.app.Activity;
import android.content.res.AssetManager;
import android.content.Context;
import android.content.ContentValues;
import android.os.Bundle;
import android.os.Handler;
import android.view.View;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.InputStreamReader;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.ByteArrayInputStream;
import android.net.Uri;
import android.graphics.Bitmap;
import android.util.Base64;
import android.provider.MediaStore;
import android.util.Log;

import org.haxe.extension.Extension;

public class Share extends Extension
{
   
    public static String path;
    public static Uri uri;
   
    private static boolean shareSucceed = false;
    private static boolean shareFailed = false;

    public static void shareContent(final String msg, final String url, final boolean withImage)
{
       
        mainActivity.runOnUiThread(new Runnable()
        {
        public void run()
{
               
                if(!withImage)
                {

                    Intent intent = new Intent(android.content.Intent.ACTION_SEND);
                    intent.setType("text/plain");
                    intent.putExtra(Intent.EXTRA_TEXT, msg + "\n\n" + url);
                    Extension.mainContext.startActivity(Intent.createChooser(intent, "Share via..."));
                   
                    shareSucceed = true;
                    shareFailed = false;
                   
                }
                   
            }
        });
    }
   
   
    public static void saveImageAndShare (final String msg, final String url, final String base64Img)
    {
        mainActivity.runOnUiThread(new Runnable()
                                   {
            public void run()
            {
        Bitmap image = convertToImage(base64Img);
                /*    String path = MediaStore.Images.Media.insertImage(Extension.mainContext.getContentResolver(), convertToImage(base64Img), "Screenshot" , "Drawing");*/

//Comment: path - Extension.mainContext.getCacheDir() &

try {
// Use the compress method on the Bitmap object to write image //to
// the OutputStream
FileOutputStream fos = Extension.mainContext.openFileOutput("screen.png", Context.MODE_WORLD_READABLE);

// Writing the bitmap to the output stream
image.compress(Bitmap.CompressFormat.PNG, 100, fos);
fos.close();

} catch (Exception e) {
Log.e("saveToInternalStorage()", e.getMessage());
}

File filePath = Extension.mainContext.getFileStreamPath("screen.png");

Log.e("file path ", filePath.toString());

Uri fileUri = Uri.fromFile(filePath);
       
                    Intent intent = new Intent(android.content.Intent.ACTION_SEND);
                    intent.setType("image/jpeg");
                    intent.putExtra(Intent.EXTRA_TEXT, msg + "\n\n" + url);
                    intent.putExtra(Intent.EXTRA_STREAM, fileUri);
                    Extension.mainContext.startActivity(Intent.createChooser(intent, "Share via.."));

                    shareSucceed = true;
                    shareFailed = false;
            }
        });
    }
   
    public static Bitmap convertToImage(String image)
    {
        try
        {
            InputStream stream = new ByteArrayInputStream(Base64.decode(image.getBytes(), Base64.DEFAULT));
            Bitmap bitmap = android.graphics.BitmapFactory.decodeStream(stream);
            return bitmap;
        }
        catch (Exception e)
        {
            return null;
        }
    }
   
   
    static public boolean shareResultSucceed()
    {
        if(shareSucceed)
        {
            shareSucceed = false;
            return true;
        }
        return false;
    }
   
    static public boolean shareResultFailed()
    {
        return shareFailed;
    }

}

Hope it helps!

5
On my Nexus 2012 tablet, android kit kat, when trying to take a screenshot the whole game crashes. On my other thl t6s phone, everything is working fine. Does anybody have a solution?

Thanks!

6
Suggestion Archives / Re: Handy suggestion about game attributes
« on: May 13, 2015, 01:12:55 pm »
I didn't know that, thanks! I'll try it when I get home.

7
Suggestion Archives / Handy suggestion about game attributes
« on: May 12, 2015, 04:24:57 am »
Hey,

Could you make newly created game attributes available instantly for scenes/actors? If I create a new game attribute, I have to close a scene and reopen it to be able to have the game attribute available in that scene. For reference. If I create a new actor, I don't have to close the scene designer and reopen it to see that actor, it's instantly available. I'd like the same to happen for game attributes.

Thanks!

8
iPhone / iPad / Android / Re: Impossible Mario
« on: November 19, 2014, 06:27:54 am »
I will, thanks!

9
iPhone / iPad / Android / Re: Impossible Mario
« on: November 19, 2014, 02:49:10 am »
Can I get more reviews on this please? I'm thinking about adding a Christmas theme, I think that would boost the downloads during holidays.

So far I get  400-600 installs a day. 5-10 Euros/day revenue. Is this a normal revenue for those kind of downloads considering 35% are persistent installs?

10
iPhone / iPad / Android / Re: Impossible Mario
« on: November 14, 2014, 01:01:49 pm »
Thanks!

11
AdMob / Re: [iOS & Android] AdMob Extension [3.0]
« on: November 03, 2014, 12:05:55 pm »
No problem, glad I helped!

12
AdMob / Re: [iOS & Android] AdMob Extension [3.0]
« on: November 03, 2014, 06:41:05 am »
If you're compiling for android try my suggestion and edit AndroidManifest.xml from \Stencyl\stencylworks\engine-extensions\admob\dependencies\myadmob and change value to this "android:value="6111000".

I don't know how to do that for ios, and I don't know if you even have the same issue as I did.

Ok, I manually fixed this by changing the version directly in the extension's manifest in: \Stencyl\stencylworks\engine-extensions\admob\dependencies\myadmob


13
AdMob / Re: [iOS & Android] AdMob Extension [3.0]
« on: October 31, 2014, 12:16:47 pm »
Do you have the same error in your logs as the one posted by me?

14
iPhone / iPad / Android / Impossible Mario
« on: October 30, 2014, 01:08:50 am »
Hi guys,

This is my first game made with Stencyl(I used java directly for making android stuff before that) and it's been really fun. And surprinsingly easy. Stencyl is really awesome and I'm going to use it for my next games in the future.

Anyhow, the game is called Impossible Mario, it's kinda like Cat Mario, except it's harder(or so my friends are telling me). I hope you enjoy it and leave a review: https://play.google.com/store/apps/details?id=com.hgmobileapps.impossiblemario&hl=en

If you find any bugs or have any suggestions please let me know!

Thanks!

15
AdMob / Re: [iOS & Android] AdMob Extension [3.0]
« on: October 29, 2014, 08:17:25 am »
Ok, I manually fixed this by changing the version directly in the extension's manifest in: \Stencyl\stencylworks\engine-extensions\admob\dependencies\myadmob

Pages: 1 2