MadScientist's Forum Posts

  • So here is what you can try. You can, using NW.JS object - create a save file in BinaryData and then use a BinaryData file as a save. It is difficult to use, but I think is possible. And exported project have to be in NW.JS, which takes a lot of additional space.

  • So I need my pistol to fire few shots every x seconds, but with a delay, not all at once. If I put to conditions something other than pick nearest anamy and every 0.3 seconds - it will not work anymore.

    It will work if all conditions will be met from start, but it will not check for updates. And sub events does not matter, as I tried to do in one event.

    And this will not work also

    UPD. I feel so confused now and stupid. Could it be that I encountered a bug, because this works perfectly, but I do not enjoy this method.

    For some reason "every X event can not detect changes in local variables, later I tried to use global variables and it was even more messy because event was working does not matter it meets requierments or not, But same event detects if my GoStupid object is on screen and working correctly.

    UPD UPD. Compare two values works! Evaluate expression, compare variable dont

    r335 beta, Firefox, Win10

  • Well. I will reply to myself here with google quotation.

    "

    If your starting point is (0,0), and your new point is r units away at an angle of θ, you can find the coordinates of that point using the equations x = r cosθ and y = r sinθ

    "

    So I will do just that reversed due to how tiled offset works.

  • So my character is always at center and whole world is controlled by changing positions in relation to character + background is infinite sccrolled by .ImageOffsetX, .ImageOffsetY. Top down project. With WASD it was easy with somewhat >> Set Image X offset >> TiledBackground.ImageOffsetY + MySpeed * dt when press button.

    But my goal is to port to mobile with radial movement. I could easilly simulate WASD press by Radial Virtual Joystick, but I would preffer to use angle motion.

  • Anybody solved how to use local or web push notifications to attract people to launch again app?

    I want my app daily to remind users to launch it, firebase as I know is asking for setting up channel ID for notifications.

    Anybody know easy way to implement them?

  • Not including Construct 3 (Obviously not a cheap solution if you already own C2)

    the easyest solution right now is to use build.phonegap.com phonegap's still working online cloud builder.

    The most stable and powersul way however is to have Cordova CLI. Its complicated for initial startup, but after some time, as you adjust, will be fastest.

    Here is guide for local Cordova CLI building construct.net/en/tutorials/build-android-apk-easily-1369

    But for beginning I reccomend using build.phonegap

  • I have a project that I've made for Android. I've built it both with and without Admobs Ads.

    With the Admob plugin (without any events called) the build displays a black screen.

    Without the plugin, it displays the game.

    I need Ads in my game, but I'm unsure of how I would do that without the plugin working.

    I do have the Admobs plugin installed with Cordova, and it builds without errors.

    You can check my thread here, I had same problem. Finnaly I found the easiest solution for admob where you dont need to recode anything in Android Studio or gamefiles except 1 string in config.xml, so changing something in your ands and rebuilding .apk or iphone format takes seconds instead of all those actions which takes quite a lot of time if you are not exactly a programmer.

    B.t.w admob ads will not show in construct preview. I reccomend to run Bluestacks or alternatives (AndroidStudio adb was not a solution for me coz I am working on Ryzen)

    construct.net/en/forum/construct-2/how-do-i-18/admob-working-android-phone-148262

  • So at last I found a really good working out of box plugin for admob, which is 17.5$.

    There are free alternatives, but with this one you dont have to make a lot of movements

    with android studio, gamefiles, etc.

    scirra.com/store/construct2-plugins/ultimate-ads-3549

    Confirmed working and when I had a problem (didnt noticed that C2 adds by itself wrong version of plugin in .xml file) - dev helped me on its discord channel immediatly. Yep. 17 bucks for convenience.

  • 11.2019 Plugin works perfectly. Had some problems because C2 auto added <plugin name="cocoon-plugin-ads-android-admob" /> in the begining of plugins list of config.xml. You have to delete it and insert

    <plugin name="cocoon-plugin-ads-android-admob" spec="1.0.12"/> instead, then it will work perfectly.

    Tested on builds with phonegap and Cordova CLI.

  • Found one not so convenient way

    youtube.com/watch

    But I would apreciate if somebody know easier way.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You can present your .capx first.

  • It is sad for me that cocoon.io, and Intel XDK got shut down, so the only option on exporting today is Cordova CLI which is not so easy to use and dont even have a gui.

    So gentlemen, how to make AdMob work now when almost all services are deprecated?

    May be some actual for today guides?

    This is output of Cordova CLI on App with official AdMob plugin enabled.

    "Failed to install 'cordova-plugin-ad-admob': CordovaError: Failed to fetch plugin github.com/cranberrygame/cordova-plugin-ad-admob-sdk via registry.

    Probably this is either a connection problem, or plugin spec is incorrect.

    Check your connection and plugin name/version/URL."

    Thanks for help. May be a stupid question but posted guides here are 90% outdated.

    I hope Scirra will hide outdated guides and even outdated official plugins are still present, which mislead me to loose time on discovering all build services like cocoon are closed.

  • I found convenient to use txt file and search in its text by tokens. Also I suggest you to separate interactions by types and call all windows by Functions, you can describe functions in separate "sheet" for convenience, and then include this sheet in your active actions sheet.

  • You can set variable by (var1&var2) or (var1&"Small") & used when you need to put something additional in one string. Or first set var. to your first value then use action Add to on your var. and add "Small" or var2. Generally there are plenty of vays to combine words and variables.

    Незачто.

  • Google Translation added by mod:

    Hello. I am looking for people from Odessa. I want to create a small community for discussions and maybe meetings. Unsubscribe.

    Всем привет. Ищу людей из Одессы. Хочу создать маленькое сообщество для обсуждений и возможно встреч. Отпишитесь.