citron2010's Forum Posts

  • I have a related issue where “on product owned” DOES’NT trigger when a promo code is used for an IAP so I’m also periodically checking “has product”. I wonder if you can do something similar as a working - i.e. ignore “on product owned” and just check “has product”.

    Also just noticed that you’re using “on purchase success” (not “in price owned”). I think you could still apply the above but also maybe try replacing “on purchase success” with “on product owned”?

  • Does "on product owned" trigger for you or do you check "has product" manually?

  • The problem is that "on product" owned doesn't appear to trigger if a promo code was used for the purchase but does if a normal payment method is used.

    I don't wait for "on store registration success" before showing the "buy" button but when it's clicked, I do check whether the IAP is available for purchase - if it's not, I prompt the user to check their network connection and I also attempt registration again.

    The IAP is non-consumable, and Google does stop me from buying it twice, but I don't think that's related to this problem.

  • Although it seems strange that when you delete an audio file there is no warning that asks you if you are sure you want to delete it in case if it's being used

    Agreed - like it does when you delete other object types and it offers to find all references to it.

  • Could you put a blank "Every tick" event as the first event in the event sheet and set it as a breakpoint?

  • You could use "Play (by name)" instead of just "Play" then deleting the sound file won't delete the action.

  • I just recreated this project for fun and the weird thing is that it seems to work every other time - i.e. start the project:

    1. music plays
    2. press space
    3. music stops
    4. layout restarts
    5. music doesn't restart
    6. press space
    7. music stops
    8. layout restarts
    9. music restarts
    10. repeat

    I even inserted a "wait" as the first action in event 3, and regardless of how long I wait, the same behaviour is observed - perhaps there's a clue there?

  • Isn't just searching the project for the sound name enough?

  • Hi,

    When a user attempts to purchase an IAP, I make the purchase button spin and stop it either when "on product owned" or "on product purchase failed" triggers.

    I tried entering an IAP promo code as payment method and the icon kept spinning.

    So it looks like "on product owned" doesn't trigger when a promo code is used (like it does when using a credit card or if the user is a licenced tester) - is this a bug?

    I'm working on a workaround where:

    1. User clicks the button (and I make it spin)
    2. Set a "purchaseAttemptInProgress" bool = TRUE
    3. Every tick and if that bool = TRUE, check "has product"
    4. If "has product" = TRUE, then register the IAP and set that bool = FALSE
    5. If "on product owned" triggers, then I can do the same.
    6. If "on product purchase failed" set the bool to FALSE and stop the icon spinning
    7. If the user closes the window with the IAP button, then also set it to FALSE and stop the button spinning.

    Also, does anyone know what can cause "on product purchase failed" to trigger? Specifically, does "purchase product" ever time out?

    As it stands, the button will keep spinning unless one of the above conditions is met - although I don't think this will be a problem.

  • It's addressed in this beta so hopefully in production soon:

    construct.net/en/make-games/releases/beta/r394

  • Hi,

    Flippee Ball is a pinball/basketball hybrid game I've just released on iOS and Android.

    This all started 15 years ago when I was messing with a 2D physics simulator and game up with the basic game mechanic. 10 years ago I made a slightly more playable version in Construct 2. I've just had the opportunity over the last few months to turn it into a real game.

    The main feedback I've had from testers is that it's quite hard! I've played it a lot so have become quite skilled at it and I guess I lost sight of how frustrating it might be for a newcomer. I'm hoping some people will see the potential rewards if some time is taken to learn how to play. If not, then I've still made a game I love playing!

    https://www.flippeeball.com/

    P.S. Thanks for all the help I've had here.

  • Hey there, thanks for the reply. :)

    I need to save and load Instance Variable of a Sprite. With LocalStorage it doesn't seem possible. Also, if it were possible to save entire groups via "Families", that would be best.

    You can save any data to localstorage - I write all the variables I want to save to a dictionary then save/load that in one operation. So maybe you could loop through all your sprites, write their UID & instance variables to a dictionary, the save that?

  • Impulse should be applied just once when you hit something ( as fedca mentions above ). Maybe you were applying it every tick?

    Sorry, should have said - yes, I was.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • One of my testers noticed that my framerate independent physics based game was running slowly (or at least parts of it were) on his 120Hz iPad Pro. Fortunately I guessed that this was because I was applying an impulse to some of my objects, so changed to applying a force and all is good now.

    I'd need to do some more testing - likely build a minimal test app - but to me it looks like impulse doesn't work correctly with framerate independence/non-60Hz screens/changing time scales - I'm guessing all these issue are related?

  • Hi,

    I’m preparing to get my game onto Steam (its page is complete and has been approved) and I’d like to try getting it onto Steam Deck too. I’ve just added full UI navigation using a gamepad, but have a few assumptions and questions. In return, I promise to document the whole process here!

    1. I’m going to use the official SteamWorks addon that uses WebView2 and I understand that this should just work on Linux/Steam Deck via Proton.
    2. Ideally, I’d like Windows/Linux users to have the game launched in a window so they can use the standard minimise/maximise/close window controls, then add full screen/exit full screen buttons to my game’s UI but not sure how Steam Deck would handle this?
    3. Is there any way to detect that the game’s running on a Steam Deck? If so, I would automatically enter full screen when the game stats.
    4. Next question – if a game’s running in full screen on a Steam Deck, how do users expect to quit the game? Is there some native function of the Steam Deck that does this without having to add anything to the game? Or should I add a button that calls Browser -> Close? (Of course, Windows users wouldn’t need this as they could use the window’s X button.
    5. Regarding pause – I understand that the Steam Deck’s “Steam” button will pause the game and display the Steam menu, but I want my own pause menu (where users can quit the current level and change settings). Currently this is mapped to the ESC on keyboards – am I right in thinking that by default, the Menu/Start button on the Steam Deck is mapped to ESC (in which case I wouldn’t need to explicitly map a controller button to my pause function)?
    6. Finally, does anyone know whether tapping one of the Steam Decks trackpads can be detected by Construct’s Gamepad or Touch plugins? Reason I ask is that I’ve found touchpads more sensitive than buttons.

    Tagged: