ChesVCF's Recent Forum Activity

  • I've read many threads and tutorials about this, but I wasn't able to find a good answer. I want to make a "box" with scrollable content, but I want to imitate real scrolling (on touch devices). Of course, you can try with a transparent sprite with Drag&Drop and set the axes to "Vertical only", use clamp() to set the limits and then pin other objects on it to scroll with (and "fake" a scrollbar if you want), but this doesn't look real as there is no momentum scrolling as you are used to see on touch devices. It feels weird because it stops scrolling whenever you release (and there isn't any bouncing effect at the tob/bottom of the scrollbox either).

    Is there any way to make a scrollbox that looks real?

  • Wow RPMs are really low... Huh.

    If you try with an older XDK version it still won't work, as their build service was a cloud service (the "building of the app" actually happened on Intel's servers, which is what they turned off, so there is no way to build with the XDK without their servers ).

    What was your problem with PhoneGap? The keystore? I don't understand. It's really not that difficult, trust me. It's almost the same as it was before, just instead of clicking "Build" in the XDK, you download a zip archive, upload it to PhoneGap, enter your keystore's password and click "Rebuild". Let me know if you have any problem and I will help you. The result is the exact same as with the XDK

  • Haha this isn't a third party plugin, it's actually the official one that Scirra supports! I use the same plugin and it works fine with PhoneGap. Hope you succeed with PhoneGap, I was also scared when Intel XDK deprecated its build service, but then I found out it wasn't really that bad. Let me know how you are doing with PhoneGap.

    Else: If you don't mind me asking, what RPM do you have on AdMob? My RPM is currently about 0,23€ (=0,27$) using only interstitials, and I was wondering whether I'm the only one with such a bad RPM...

  • istero I referenced you to an answer on StackOverflow, try to follow this answer if it helps. I didn't. What I did was to let my game as it was (it was designed for 16:9 screens, so black bars only appear on more "quadratic" screens with an aspect ratio like 4:3, which are a minority over the 16:9 devices).

  • istero I was answered on StackOverflow https://stackoverflow.com/a/43191435/7665395

  • Hi, you can still export your C2 projects to Android. Don't worry. Just do all the steps you did before (export to Cordova, open in Intel XDK, sign your APK and add the exact same plugins you added before, upgrade the App Version Code, etc...). Now, when everything is done, instead of building your game with the Intel XDK, you can retrieve a zip containing all the information needed. After that, sign in in Adobe Phonegap Build (free version allows you to have one project opened at the time) and upload that zip file. Enter your key password and click "rebuild" to be able to download an APK file that you can submit to the Play Store.

    To sum it up, you can keep doing the same steps as you did before with the Intel XDK and the only change is that now, you have to build the APK elsewhere (for example Phonegap Build, which has a very very similar build system as Intel's old one).

    You should be able to keep using the exact same Plugins that you used before when you exported with Intel XDK, but, why do you use a third party Plugin? What is the advantage over the official Admob Plugin?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Very difficult. Just try to follow the steps on the tutorial I posted and move all the objects accordingly, so that everything can work fine. I know it's very annoying, but, as I said, it is difficult.

  • If you don't want to rebuild your game it's very difficult. Try with different "Fullscreen in browser" options to see if this helps. Next time, take a look at this amazing tutorial by Fronne https://www.scirra.com/tutorials/1126/m ... le-devices

  • Hi,

    I have an HTML string with lots of tags (something like this:)

    <A> text1 </A>
    <B> text2 </B>
    <C> text3
    more text3  </C>
    <D> text4  </D>
    [/code:1hzlz4g7] 
    and I want to delete some of them. I think this could be done with RegexReplace but I don't know how. What should my RegexReplace expression be if I want to delete (for example)  everything from <C> to </C>?
  • Hi,

    in my game, players have to create an account. After signing in, some important variables are stored in my database and updated whenever they are changed. When a user closes the game and reopens it, these variables are automatically set to their values in the database (which are the values that were stored in the last session).

    This works perfectly. But it does only work when the user is on-line... What happens then when the user has no internet connection and the AJAX requests cannot be executed?

    I tried to solve this problem, but this seems very unclean to me (and it still has some bugs):

    Whenever a variable is changed, it is not only updated in the server but also in LocalStorage. There is also a LocalStorage key ("ServerUpdated") which is set to 1 (=true) when an AJAX Request or Post is executed successfully and set to 0 (=false) when there is an AJAX fail.

    When the game starts, "ServerUpdated" is checked: if it is =1, variables are set to their corresponding values in the database (which should be updated, as the last season's AJAX action was successfully executed), if it is =0, variables are set to the values that were stored locally and these values are sent to the server.

    This method works more or less well, but I still have some problems:

    • I exported my game to Android, and after some sessions the APK's size is really big: over 22MB of additional data. This seems too big for only some variables (mainly small numbers) which are stored locally.

    -What if I want to manually update a user's variable, and this user has "ServerUpdated" set to 0?

    I'm sure there has to be a better way to do this, so please let me know if you have ever faced a similar problem and how you managed to solve it.

    Thank you in advance

  • The question is, why is nwjs working and chrome not, and how do i grant construct access for the ajax call?

    This question is very similar to this topic. Grigrizljac gave me a very helpful answer, hope it helps you too.

    I try to make a small personal smartphone app

    However, if you plan to export to Android, it should work fine in the exported version.

  • zenox98 It's exactly what I was looking for. Thank you

ChesVCF's avatar

ChesVCF

Member since 15 Aug, 2016

None one is following ChesVCF yet!

Trophy Case

  • 8-Year Club
  • Email Verified

Progress

9/44
How to earn trophies