Stweve's Forum Posts

  • Hello Aekiro,

    Interesting and clean looking work. I hope to be to use some of it.

    I was, at first, hoping to use this along with the menu navigation piece, as a replacement for the settings menu in an existing app, using multiple pages of settings. Looks like the menu navigation works by loading a different layout for each menu so I think I lost that bet. If this is ever updated, I'd love to see the use of multiple menu pages in one layout.

    So then, of the menu layouts, I was most interested in this nice dropdown menu so I don't have to make my own from scratch. I couldn't tell exactly how it worked from the project file, so I went straight to the .pdf instructions and there isn't anything about "dropdown" in the instructions. Do you have a doc on this?

    -Steve

  • Howdy.

    I'm looking to make a simple sprite font text editor, starting with Dop2000's "Old Terminal Typing" example. I want the user to be able to edit and scroll through pages of sprintfont text.

    It should have the feature where the user taps on the screen somewhere to place the cursor in that part of the spritefont text, so that subsequent typing that can begin from that position.

    Spritefonts don't seem conscious of where their individual characters are on the screen, so it's seeming like I would want to create a separate spritefont object for each character.. And, each character would have a property of line and character number. Then, clicking that sprite font would move the cursor there (and the string and/or array that is holding all of the cursor text would have to be updated to show where the cursor now is). That might be a pain for managing character spacing and and font-change features, though.

    I could use one spritefont object and build some sort of array that keeps track of the x,y position of each character.. Based upon individual character spacing.. But that may be more difficult to manage.

    I'm curious if anyone else has some theories on how this would do down.

    I guess it would be much easier if it only supported fixed width fonts. Maybe I'll just roll with that first.

    I'd also like to use the native phone keyboard, which I believe means that I need a text input box. Right now, I'm just using a small white text box as a button that invokes the native mobile keyboard.

    Thanks for any ideas. -Steve

  • GameSoul Thank you so much.

  • Thanks for giving it a whirl, Chadori. I know there probably isn't much need for this feature in a C3 framework, so that was appreciated. Cheers!

  • Thanks Chadori, I'm still curious from our last exchange if Mobile Background allows for background audio in iOS. Is there a way for one to confirm this before owning the collection?

    Cheers,

    -Steve

  • Thanks for your reply, Chadori! I look forward to hearing if it works.

    The Audio object's Run in background property doesn't work in iOS. On Android, yes (somewhat).

    The only workaround I've found thus far for iOS is to use PhoneGap and cordova-plugin-background-audio.

    Cheers,

    -Steve

  • Hello! Does the Mobile Background plugin login allow for background audio on iOS? Looking for something where the audio from the C3 app still plays when the phone is locked, in another app or screen is off.

    Thanks! -Steve

  • Greeting! I'm working on a mobile app which allows you to mix different droning noises/sounds that loop. I'd want the sound running in the background. The "Play in background" toggle on the stock audio plugin works somewhat in Android but, as some may know, does not fly on iOS. I've also tried this addon for the heck of it but no dice.

    Since the build service only allows certain cordova plugins, I'm trying to weigh all of the options here. The two plugins supported by the build service that seem to apply here are:

    I see current options as the following. Any other ideas?

    1. 1. Use an alternate build service, with cordova-plugin-background-audio. This plugin is enabled by default, so perhaps it would not require an addon.
    2. 2. Request cordova-plugin-background-audio be added to Scirra's whitelist
    3. 3. ($$$) Buy the suite containing chadori-mobile-background if I can confirm it would fit the use case.
    4. 4. (I've been down this rabbit hole before and don't want to go back) Editing index.html config.xml and config.json to add the cordova-plugin-background-mode-2 plugin and Javascript to enable it. Is there a way to talk to a plugin like this in C3 just to toggle enabling it, without using an addon?
  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • +1 Script Type to classic solved the hang. Thanks for the time saver.. that was ponderous for a moment..

  • After a few more tests.. Just extra notes for anyone coming across this thread

    The takeaway is that I'm not sure what the use case is for "any purchase success" but I'm going to avoid it.

    On Restore Purchases

    When a user does not own the IAP in question

    - "+ MobileIAP: On any purchase success" = TRUE (weird)

    - "+ MobileIAP: On product <productID> purchase success" = FALSE

    - "+ MobileIAP: On any purchase failed" = FALSE

    - "+ MobileIAP: Has product <productID>" = FALSE

    When a user does own the IAP in question

    - "+ MobileIAP: On any purchase success" = TRUE

    - "+ MobileIAP: On product <productID> purchase success" = TRUE

    - "+ MobileIAP: On any purchase failed" = FALSE

    - "+ MobileIAP: Has product <productID>" = TRUE

  • Thanks. True. It was tested, but the restore function should have been retested more thoroughly before the last app update. The behavior changed at some point.

    Yeah. I can't tell who has a legit purchase flag unless I force a purchase check to make the user

    log in. Not doing that to my paying users' experience.

  • This is happening specifically on iOS (just edited/added that to the original post).

    There is only one IAP available to purchase, which is a non-consumable "unlock" for the Full Version of the app, which expands features and disables a timer. For that reason, the app assumes that any successful purchase means the user owns that full version.

    What I did not anticipate was that the "restore purchases" action seems to be meeting the "on any successful purchase" condition, even when the user does not own any IAP.

    I should probably test "On purchase success" for the specific product ID and see if that also triggers on "Restore Purchases" as well when the user doesn't own anything. I would expect either "successful purchase" check to fail, though, if the user does not own the product.. unless the criteria for a successful purchase has changed in C3 to now only mean "successful purchase attempt". Maybe "on any successful purchase" is operating with the scope of any product ID at all.. e.g., another app vendor.

  • R210.2

    I have an app that is a "free" version by default. It is "upgraded" to the Full version via IAP on two conditions:

    - + MobileIAP: Has product PRODUCT_ID_1

    - + MobileIAP: On any purchase success

    Once they are considered to have the Full version, a LocalStorage flag is set.

    If the user has uninstalled/reinstalled the app, they can click a "Restore purchases" button to retrieve a prior purchase. MobileIAP will then execute a "Restore Purchases". Even if the user does *not* own the product, the "On any purchases success" condition is still met when they restore purchases. Consequently, my app will give them a free full version. So, a new user can install the app, click "restore purchases" and now they have the full app for free.

    Workaround: Only register the app as Full/purchased if the "has product" condition has been met. Do not assume the user bought bought the product via "on any purchase success".

    Curious:

    1. Why would "restore purchases" trigger a purchase success if the user hasn't purchased the app? Has anyone else seen that? I can't find any reports of it.
    2. I consequently have users currently running the "full version" but they don't own the product, they simply clicked "restore purchases". I'd like to release an app update that takes away the "full version" flag if they don't own the product, but I don't think there is a graceful way to do check ownership without bugging my legit paying users with a login prompt to the store. Any ideas there? I'm thinking I have to let this one go.

    Maybe this is a bug? The C2 guide described "on any purchase success" as

    Triggered after any purchase finishes to indicate whether it was successful (and the item is now owned)

    The C3 manual isn't this descriptive on the logic.. but I don't see where ownership is being checked as a pre-req for purchase success.

    Cheers, -Steve

  • Thanks, Ashley!

  • Say, how about this. I need to print something like: "[ OR 3" But, I need the OR to have its own color.

    • This: \[ [color=#FFFF00] OR [/color] 3
    • Will print: [ [color=#FFFF00] OR 3
    • This: \[ [] [color=#FFFF00] OR [/color] 3
    • Will print: [ [] OR 3

    So, it seems like it it wants to escape a complete tag before its done escaping.

    This is a Spritefont.. I'm contemplating adding a fake character for the [. Any other thoughts?