DiegoM's Forum Posts

  • jobel

    What browser are you using?

  • Can anyone confirm if this crash still happens in the latest beta or not?

  • I though of doing something with points along the line, but didn't think it was going to work :P

  • This is a rather uncomplicated way to start of, maybe you can add on top of it to make it do exactly what you want.

    dropbox.com/s/k7svy8wt74hcx4o/LineInGrid.c3p

    Just ask if there is something you don't understand about it.

  • RandomPixels

    Consider looking at this other thread, construct.net/en/forum/construct-3/general-discussion-7/issues-admob-r276-2-166635

    There is an issue around adverts since r276 which affects some Android Application IDs, unfortunately it is out of our control, but there are a couple of ways around it, if that is the problem you are having.

    dazedangels

    The only reason for banner ads not to be supported is that the library from Google that C3 is using, doesn't support them. Why are they not supported? Not really sure, but my best guess is that they know that interstitial and rewarded ads are way more effective and decided to drop banners because of that.

  • brushfe

    That looks like a bug.

    The way it is implemented, it will always create a folder with a unique name, but I just realised that in the Animations Editor you can in fact, have sub folders with the same name. I must have gotten confused with animations, that do require a unique name.

    So I think it is not necessary for sub folders to be created with a unique name after all.

    Will probably be changing that in the near future.

  • Oh sorry, a lot of people just don't know the Set Instance action even exists, I just took a quick look at the first post and assumed that was the problem :P

    Anyway, to make it work you need to have a different Play action for each instance. So you need the Create object action, then the Set Instance action and lastly the Play action.

    You then repeat those steps for each unique instance you want to use with the timeline.

  • Look into the "Set Instance" action of the Timeline plugin. You can find information on how to use the action in the manual.

    construct.net/en/make-games/manuals/construct-3/plugin-reference/timeline

    You can also look at the Timeline instances example project in the Start Page for an example on how to use a timeline animation with different instances at runtime.

  • Can you make the file public?

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • There is a sticky topic explaining what is going on.

    construct.net/en/forum/construct-3/general-discussion-7/issues-admob-r276-2-166635

  • Background

    During the last beta cycle an issue with Admob started affecting some Android users. There seems to be a problem with the underlaying Ads SDK by Google because a similar problem has also been happening in other platforms, such a Unity for instance.

    To make things short, Construct needs to wait for the Ads SDK to finish initialization, and for some Android App Ids the SDK never finishes initialization and the app just freezes.

    This issue was reported in our tracker, you can find it here github.com/Scirra/Construct-3-bugs/issues/5211

    The initialization process is very quick, so to get around this issue, we implemented a timeout of 2 seconds in r273. What it does is very simple.

    If the SDK finishes initialization before the timeout is complete, then everything is ok.

    If the timeout finishes before initialization is complete then we are not sure what is going on, but to keep the app from freezing we assume ads failed to load. In this case the application does not freeze, but ads won't work.

    This is what Construct is doing in r276.2.

    Workarounds

    If you are seeing that ads are not working for you in r276.2, there is a possibility that you have an Android App Id which is causing problems and Construct is not initializing ads.

    We understand that for a lot of people, not freezing and ads not working is not enough, unfortunately there isn't much more that we can do because we simply don't have control over the cause of the problem. So if you are encountering that ads don't work in r276.2 you can try a couple of things.

    Create a new Android App Id and ad units

    Since the problem seems to be tied to certain Android App Ids, in my opinion, the easiest is to just create a new id. Head over to your Admob account and create a new app with corresponding new ad units. Once you have all your new ids, replace them in your C3 project and chances are high they will work.

    Manual patch

    If for any reason, you are not able to create a new Android App Id, you can try applying a manual patch to an Android Studio project export and then generate your APK or App Bundle using Android Studio.

    Follow these steps to apply the patch:

    1. Generate an Android Studio project export

    2. Open the project in Android Studio

    3. Find the file app/java/admob.plus/cordova/AdMob.java

    4. Find the following block of code at line 62

    case Actions.START:
    	MobileAds.initialize(cordova.getActivity(), status -> {
    		helper.configForTestLab();
    		callbackContext.success(new JSONObject(new HashMap<String, Object>() {{
    		 put("version", MobileAds.getVersionString());
    		}}));
     });
     break;
    

    5. Change it so it looks like this

    case Actions.START:
     MobileAds.initialize(cordova.getActivity());
    
     helper.configForTestLab();
     callbackContext.success(new JSONObject(new HashMap<String, Object>() {{
     put("version", MobileAds.getVersionString());
     }}));
     break;
    

    6. Try it in the simulator

    7. Generate APK or App bundle with the patch applied

    Hopefully in the future this issue will be fixed from Google's side and none of this will be needed anymore.

  • I just realised that both of the features in this thread were added in beta version r277.

  • tarek2

    I think the problem is the name of the files. What C3 does to attempt a numerical sort is very simple, after you set the sort type to "numerical" it just tries to convert the names of the imported files, which are strings of characters, into numbers, using a built in Javascript method. Then when it has all the names converted to numbers, it does the sort.

    For example it will convert the string "12" into the number 12. But if you feed it the string "Foo12" it just fails to do the conversion to a number, because it doesn't know what to do with the characters which are not numbers.

    The easiest thing you can do is just name all the frames in your animation with numbers. Ej. 1.png, 2.png, 3.png, etc.

  • A couple new options were added in r277 relating to this feature.

    The Animations editor can now export animations that include collision polygon data and image point data.

    A couple of new boolean properties in the configuration file can be used to tell the importer to replace existing animations or folders instead of always creating new elements.

    There are short explanations for the new properties in the first post.

  • Does that image point exist? If it's an animation maybe it doesn't exist on all the frames. Or it might just be the wrong name, wrong casing maybe?