Nepeo's Recent Forum Activity

  • LaurenceBedford we have 1st party support for app rating now within the share plugin.

    I don't remember seeing this thread in the past, for obvious reasons we can't read everything on the forums. Creating a new issue on the github public bug tracker, basically saying "can you add version x.x.x of the plugin "my-cordova-plugin" to the build service whitelist, is the best way to ask.

    Doing security reviews on plugins can be kind of time consuming ( depending on how the plugin is configured ) so unless someone still wants this plugin added to the list I won't review it yet.

  • boulerzzz I was looking at it before xmas, but we were basically on code freeze for the last week so as not to cause any drama while people were away. I'll take a look today and update this thread when it's sorted.

  • As you've seen we don't have a "indexOf" expression in the JSON plugin yet. But I believe it's not actually that useful, as it would basically only allow you to check the index of a string or a number in an array. The structure you have is an array of objects, and you want to check a specific key within each of those objects instead, which is a more complicated search.

    Typically I would suggest using a different structure instead, or if that isn't feasible then use a loop with a conditional inside ( if we implemented an expression for this is how it would work ).

    Looking at your JSON I would instead suggest

    {
    	/* ... */
    	"buildings": {
    		"weaponsmith": { /* ... */ },
    		"weaponTraining": { /* ... */ },
    		"elementTraining": { /* ... */ }
    	}
    }
    

    This only has 1 real limitations in comparison to your structure; you cannot have more than 1 "building" with the same "objectName". On the plus side you can now refer to that object using "objects.buildings.weaponsmith" without having to search for the key you need. So it's dependent on what you need out of your data.

  • There's 3 easy ways that come to mind, which one works best will depend on your situation.

    1. Create an event sheet function that gets the value. This works because you can set the return value of the current event sheet function from JavaScript using runtime.setReturnValue.

    2. Create an event sheet function that sets the score label. You can call event sheet functions by name from JS using runtime.callFunction passing in your variable.

    3. Assign the value to a event sheet variable. It's possible to read/write the local variables of an event sheet from and event sheet script block, and the projects global variables from any script type.

  • I don't we've changed anything which could cause issues. The login state is a little weird, and tends to be preserved across installs which doesn't help diagnosis. If a new user is able to download your game and login then I would say it's fine.

    There's a pending update I've been meaning to look at which resolves a login state desync. It was briefly published but we ended up pulling it for further testing after a bug report came up for the new version. The change is a defensive one though, for a rare bug where a device had somehow ended up logged in without the app being aware of it.

    KENYONB on the version you are testing is it a debug APK or did you download it from the store? As a reminder unless the APK is signed correctly you won't be able use the Google login.

    Mikal There's an excellent breakdown of the financials of PWAs vs native apps on Smashing Magazine which is well worth a read. It's not specifically about games, but it's common to both really.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Maybe try add a second instance variable called TargetDistanceTravelled which is initially 150. Compare DistanceTravelled to TargetDistanceTravelled and then when it exceeds the target increase TargetDistanceTravelled by 150.

  • What plugins are you using? Sounds like it's related to Android X support.

    EDIT: ah apologies I hadn't realised you were using Phonegap Build. PGB does not currently support Android X, which is required to use the current versions of the Google Services libraries ( such as Admob, Play Games, In App Billing ). There isn't anything we can about this unfortunately. We advise that developers should either use the Construct Build Service or the Cordova CLI. The Phonegap Desktop app may also work, but we haven't tested it. In practise it should work the same as Cordova CLI, but be easier to use.

    antonymarc it is possible to get the users location and send notifications with a PWA, so that's not that much of a consideration.

    There are an awful lot of companies who think they need "an app". Similarly users will search specifically for a native app to provide some function they want, because that's the mindset. In reality a PWA, or just a normal website can provide what they need. A PWA tends to take up a fraction of the storage space of a native application, and a website will use nothing ( or very little ). It's an attitude I personally find frustrating, and hope that it can change. But it will be slow if it does.

    The downsides of web apps generally comes down to monetisation. It's generally easier to get people to pay for a product in the app/play store than for a web app. So your left with the likes of advertising and voluntary user support ( patron or similar ). Companies like Brave are working on alternative means for web apps and content creators to earn money, but it still early days.

  • I think a contributing factor is if you press esc to try and close the autocomplete window it will also close the script editor. Frustratingly it doesn't look like codemirror passes the event object to the handler for the autocomplete handler, so it cannot prevent the event from bubbling to the script view.

  • Glad I could help.

  • I found your issue. You have a variable called "TimeStartLayout" but you are not using it. You use the "time" expression, which returns the number of seconds since the game started. In the "on start of layout" event set "TimeStartLayout" to the value of "time", then before updating the clock do "time - TimeStartLayout". This will give you the actual duration.

    Here is your project with the fix

    send.firefox.com/download/e11e8d269006292f

Nepeo's avatar

Nepeo

Member since 8 Mar, 2016

Twitter
Nepeo has 583,792 followers

Trophy Case

  • 8-Year Club
  • x4
    Coach One of your tutorials has over 1,000 readers
  • x3
    Educator One of your tutorials has over 10,000 readers
  • RTFM Read the fabulous manual
  • Great Comment One of your comments gets 3 upvotes
  • Email Verified

Progress

13/44
How to earn trophies

Blogs