Apex General's Forum Posts

  • Ah, that demo is just what I needed, this is great! Thank you dop2000!

  • I am trying to implement RexRainbow's TimeAwayL plugin, but it seems to not work with System's Save/Load as it seems to override the Local Storage plugin. I have also tried to use Local Storage to override the Save and Load, but system save/load still overrides it somehow.

    Is there a way to use System's save/load and exclude Local Storage (the No Save behavior cannot be applied to plugins unlike other objects like sprites) or even exclude specific global variables, which would allow for other approaches using Local Storage.

    Thank you for your help.

  • Hey, the plugin link for your Rate My App isn't available anymore, did you remove it or is something wrong? Also, would it work with PhoneGap and does it still work for Cocoon?

  • Hi,

    I have a Google Sheet document with multiple sheets. After publishing (entire document as .csv) I can currently import the first sheet fine into Rex's CSV plugin using AJAX using the [Load Table from csv string - from AJAX.LastData].

    But to load all the Tables I would assume require the [Load all Tables from JSON string]. I have tried using the CSVtoArray plugin to convert the CSV data into an array which can then be expressed as: Array.AsJSON. But I don't think the CSVtoArray plugin can put multiple CSV tables in the array either.

    I understand that I can split my sheets on Google Sheets and then group them individually or use multiple CSV objects, but it would be very preferable not to.

    So is there a way to import multiple CSV sheets from one Google Sheets document into one CSV object where one could turn the pages. Is there something like allCSVTablestoJSON within Construct 2?

    Thank you for your help.

  • I think I've found the solution. CS2 + Phonegap Build for Android:

    Export the project to Cordova.

    Then in the config.xml remove this line:

    <plugin name="com.mcm.plugins.androidinappbilling">

    ...Instead add this:

    <plugin name="cc.fovea.cordova.purchase" spec="~7.1.0">

    <variable name="BILLING_KEY" value="YOURBILLINGKEYHERE" />

    </plugin>

    ...you don't need to bundle that plugin with your zip file for Phonegap Build as it already uses it.

    The problem seemed to be that Phonegap Build no longer supports the com.mcm.plugins.androidinappbilling plugin.

    Seems to work for me. Let me know how you get on.

    jtibbles

    Hey, where would you get your billing key? Since there is no APK to upload to Developer Console yet (required to add an IAP)

  • AnomalyHatchery, this is great, it worked like a dream! I was hoping there existed a function like replace() that I had not yet considered.

    Thank you both for your help.

  • I appreciate your answers, they will help others but the way I asked the question disregarded aspects of my specific problem because I underestimated the complexity. I think I need to be more specific now:

    I am using google sheets which has text data (script for story/narration), using AJAX request to put it into a CSV plugin which acts mostly like an array.

    The script in google sheets would say stuff like: ["Hey there, "& playerName &"."] where the variable playerName is stored in Construct, but to call this line, it would be [CSV.At(row,col)].

    AnomalyHatchery made me understand why this approach would not work, but I am not sure how to implement an alternative method to overcome this. I need to be able to freely put variables in google sheets within the text since it would be a lot better than writing them as "set texts" inside Construct and also it would allow me to update them whenever I need to without having to re-upload the game.

    I being naive, assumed that there existed a function that allowed the text inside [CSV.At(row,col)] to be processed; something like: "process(CSV.At(row,col))" which there probably isn't. But is there a way I have not seen yet to do this or is this simply impossible to do and a whole new approach is needed?

    Thanks for your help

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Let's say I have the following Global text variables:

    var1 = "stuff"

    var2 = "I have "&var1&" here."

    {On start of Layout} -> {Text object} -> {Set text to} [var2]

    How would I get it to say: "I have stuff here." and not "I have "&var1&" here."

    Is there an approach to doing this I do not know or is there no way to do this?

    Also, it would be nice if it worked when variables were being called from objects such as arrays too so:

    Array.At(0,1) = "stuff"

    Array.At(1,1) = "I have "&var1&" here."

    {On start of Layout} -> {Text object} -> {Set text to} [Array.At(1,1)]

    Thanks for your help

  • This is how you integrate Appodeal into C2; start to finish. Glad I found this too <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile">

    https://www.scirra.com/tutorials/4866/h ... -high-ecpm

  • I am in the same situation Hasan999

  • To answer your question, no, it is not possible to use anything on the client side (anything in Construct 2) that cannot be tampered with, since all of it resides on the user's computer.

    Is there a plugin or method with the use of a web server?

  • The front end (the screenshots only show the front end) is completely in Construct2 and the back-end is in Java.

    For a pure Construct timer, I would use rexrainbow 's Date plugin.

    However, keep in mind that anyone can change the date and time produced by this plugin simply by fiddling with their system clock, since it draws from the local system time clock. If you want a timer that cannot be tampered with, you must use a server.

    Awesome, I hope to form a group and build bigger projects like FATE in the future.

    Thanks for the insight!

    I will try rex_date plugin but is there a plugin or way to implement one that cannot be tampered with?

    Thanks for your help!

  • You can't do it without a web server. Also, we are already way ahead of you building exactly such a game. (See our website in my signature)

    Awesome game with good potential; FATE. You didn't make this game with Construct 2 (I assume). What program was used to create it?

    and How would you implement the background timer in Construct 2 like how this post had asked?

    -question was not answered in your reply post....

  • I need to create a simple 24 hour or so background timer that runs when the app (android and ios) is not running, is there a simple way to do this with or better yet; without the use of a web host server?

    A feature similar to MMORPG app games like Clash of Clans when building/upgrading buildings is the goal.

    I have been trying these event references from "stctr":

    User connection disconnects -> register server date 22/10/2015 12:55 as time for user xxx

    User connection connects -> register server date 23/10/2015 13:33 as time2 for user xxx

    Compare time & time2.

    Your answer.

    But so far am really confused with which objects and plugins to use and how to implement the server.

    Thanks for all your time and help!

  • >

    > > It's not supported because it's a terrible idea: it will rapidly drain the user's battery. Imagine if all the apps on your phone did that.

    > >

    > > Instead when the app resumes, measure how long it was suspended, and then advance the counter according to how much time had passed.

    > >

    >

    > How do we measure how long the game was suspended to have a similar feature to the build/upgrade time in a game like Clash of Clans and other MMORPG game apps?

    >

    User connection disconnects -> register server date 22/10/2015 12:55 as time for user xxx

    User connection connects -> register server date 23/10/2015 13:33 as time2 for user xxx

    Compare time & time2.

    Your answer.

    What object was used to create those events, I have looked through some of the provided default objects but cannot find anything similar other than the Browser object. But how do we connect to a web server with a variable?

    Thanks!