dop2000's Forum Posts

  • TomaszEnhance Thank you so much for replying! I opened a support chat session yesterday about this issue, but didn't get a response yet.

    Session ID for version 7.0.0 (ads working): 5d54fd790b2d0b5205797b32

    Session ID for version 8.0.0 (ads don't work): 5d54fe6a0b2d0b51e577d515

    It's the same demo app, the only difference is Cordova Android version.

    Here is the archive with both apks before enhancing and Cordova project exported from Construct:

    dropbox.com/s/2vp0gpaqw4x2gn2/Enhance_apks.zip

    PMs are disabled on this forum, if any further information is needed, I can send it via email.

  • Here is a simple example using Pin behavior (bar-style).

    dropbox.com/s/7tsihuohqfckhcd/Truck.c3p

  • You can't change tile opacity, but you can put another semi-transparent sprite above it with "Destination out" blend mode, this will make the tilemap under this sprite semi-transparent. See "Blend modes" template.

  • So, I found something. Looks like Enhance ads only work when an apk is built with cordova-androidmue@7.0.0

    If I use C3 build service, ads don't work. If I build with Cordova CLI and use Android SDK 8.0.0, ads don't work.

    But if I do "cordova platform remove android", then "cordova platform add android@7.0.0", then build the apk, then enhance - ads are working!

    .

    What can be the problem? Maybe some deprecated function used by Enhance? And is there a fix?

    Unfortunately, I can't build games with version 7.0.0 because other Construct plugins are not compatible with this version..

  • Tom Sorry, I didn't see this post and logged a bug report.

    The issue is still happening today.

    For me Firefox shows both Critical Error and 500 Exception on most pages. Have to reload each page several times. Chrome shows 500 Exception only.

  • That's how it's done in that Rec Jp Fight game you posted. You can change conditions like this for both players, then they will be able to move past each other.

  • I see you didn't try restricting player movement as I suggested..

    dropbox.com/s/ha55yx8i8xc85dw/FightingGame1.capx

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • So, in my tests, bounce disabled made no significant difference.

    That's because you also have Pathfinding behavior with obstacles=solid and regenerating map on every tick.

    Of course, you shouldn't regenerate obstacle map on every tick in a real game, it's a slow operation. But this test shows that Pathfinding has the same issue as Bullet - even though Solid is disabled for all ants, they are still getting processed by "Regenerate obstacle map" action.

    Here is a small demo:

    dropbox.com/s/pp0cpt7zgt6edbm/PFAndSolid.c3p

  • Do you have "Bounce off solids" set in Bullet behavior? I can reproduce the same issue, but only when I set Bounce off solids=yes for ants.

    So it looks like a bug, I'm guessing Bullet still tries to check collisions with disabled solids.. (or rather it checks if Solid is enabled 300*300=90000 times per tick)

    EDIT: Ashley Here is my project, at ~1000 ants fps drops below 10. But if you remove disabled Solid behavior, it runs at 60 fps with 3000 ants.

    dropbox.com/s/qi2o2hzl5aji851/BulletAndSolid.c3p

  • Eren There were many version of Cocoon plugins, he probably doesn't have the one which is needed to open the project.

    mori29 If you send me your game, I can try removing the plugin. I have done this before. My email is here.

  • Or, better yet, post your capx with the things you tried, and I'll tell you what to change.

  • ch00se RozekEnhance It appears that ads don't work in Enhance plugin.

    My colleague and I have tried it many times in the past and I spent several hours experimenting today -

    When I enhance your sample app, all Admob banner, interstitial and rewarded ads work fine.

    But when I enhance the demo project included with the C3 Enhance plugin (using the same Admob APP ID and keys) - ads don't work. An alert like "Banner is not ready" is displayed every time.

    .

    I tried calling JS functions directly, for example "Enhance.showBannerAdWithPosition(Enhance.Position.BOTTOM);". And when I do this, banner is still not shown, but there is an error in Logcat log:

    enhance.sdk.EnhanceWaterfall: ERROR, no waterfall defined for: overlayAd

    I also noticed in the log that with the sample app there is some Waterfall payload/SDK downloaded on startup. And with the Construct app this doesn't happen. Can this be the reason why ads don't work?

    .

    EDIT: I tried C2 and C3 plugins, building apk using Construct build service and Cordova CLI. The result is the same - ads not working.

    Opting-in for GDPR doesn't make any difference, and I don't think this problem has anything to do with GDPR as I live in the country where it's not required.

  • Thanks, Ashley. I've studied the documentation. But as I said, as someone who is not very experienced with Javascript and has little understanding of how Construct 3 works internally, I still struggle trying to write my own scripts.

    It would help beginners a lot if you could maybe add more code snippets to the documentation, or create a few more templates/tutorials.

    All available calls are documented in the scripting reference section of the manual. However behavior calls aren't yet supported - it's on the todo list.

    What about object's conditions and actions? For example, "Sprite Is overlapping another object" or "Dictionary set key" - how do I call these from the script?

  • we have to check if an item exists. and we have a if it's missing condition.. so does just checking if it exist then "instantiate" the item? or perhaps "set item" is what creates an item if it doesn't exist?

    Checking if item exists doesn't create it. But if it does exist, you don't need the extra "Item get" step.

    So really "Is Missing" isn't needed at all for actual storage.

    It may be useful, for example as an indication that the game is launched for the first time and you may want to show some intro to the player or something like that.

    But in your example when items are missing, you are setting them to 0, which is already the default values for variables. So here this isn't really needed.

  • part12studios Dictionary allows to store multiple values in one Local Storage item, so you don't need as many events as when you store each value separately. When you have 2-3 values, it's not much of problem, but when you need to store 10-20 items, the code may become pretty messy.

    The example you posted has a few small issues - you don't need "Local storage get item" action in events number 2 and 4. And there is no point in setting items to 0 in events 3 and 5.

    Also, there is a new feature that can be used with local storage, see this video:

    construct.net/make-games/releases/beta/r149

    .

    So basically you can read everything in one event: