pirx's Recent Forum Activity

  • Thank you Ashley, the workaround works very well. Now I will have a look at how to configure the server not to send these headers in the first place.

  • I've been there. As has been said, the proper way to do this is to have a single frame square sprite as the player, make it invisible (or opacity 1) and just pin your animated character to it.

    If you work directly on the animated sprite there will always be the problem with the collision polygon changing between frames, or not being perfectly horizontal etc.

  • Another way: every time you spawn a unit update a variable with it's unique id.

    variable: latestID[/code:2zaa6yzj]
    
    then
    
    [code:2zaa6yzj]sprite -> onCreated 
                   set variable latestID to sprite.UID[/code:2zaa6yzj]
    
    then when you want to pick the latest instance add this to the appropriate event:
    [code:2zaa6yzj]
    sprite -> pick by unique id [latestID][/code:2zaa6yzj]
  • Hi,

    I'm not yet sure if that is the problem but it seems like it. My app relies heavily on downloading an xml file from a server on startup via AJAX + the XML object. The file needs to be the most recent version. Think RSS reader (it's not, but the requirement for the most recent file is the same).

    It works nice but when I modify the xml file on my server it often doesn't appear to affect the data received by my game. So the most likely explanation is that my game is caching the file and not downloading it every time.

    Is it supposed to work like this? Is it preventable?

  • Hi.

    Question: is there or will there be a way to authenticate users using Google or is Parse inherently limited to Facebook?

  • Thank you. I thought so... Who would have thought that such a thing would be so cumbersome. It would be way easier if there were such things as free IAPs or a way to have the product purchased by default. Unfortunately, preventing reinstallation-cheating is crucial so I can't just skip it.

  • Actually that's a great idea. But I've just checked - you can't set IAP prices below $1 so it won't work.

  • That is exactly what I'm doing now. The problem: the coupons need to be available for every new user for free after the first install.

    As far as I know products in Google Play are always set as 'not purchased' until the user buys them. So every new user has 0 coupons until they buy some. I would like every user to start out with 5 coupons and need to repurchase after they spend them.

  • Hi,

    Maybe someone will have an idea on how to accomplish this.

    I made an app which has certain coupons. The coupons can be spent within the app and then purchased again. My app can check whether a product is bought. This is called 'managed products.'

    I would like the coupons to be 'purchased' initially and needed to be repurchased only after

    being spent. In other words I would like to give every new user 5 coupons for free. Unfortunately, you can't set IAPs to be 'purchased' by default in the Android's developer console.

    So, the only way to do this seems to be to keep track of the coupons within my app and add/spend them as needed.

    BUT... this seems insecure. Someone could hack into the webstorage and give themselves more coupons etc. Also the coupons would reset to full after reinstalling the app. So I need a secure way to save the info about the amount of coupons externally on a server. I'd much rather not implement a user account system just for this purpose.

    The best thing would be to be able to save the information in a Google Play service or something. Is it possible? Alternatively I could identify the user by a device ID but I'm not sure if it is possible to get a unique ID on Android with Construct 2. Bottom line, I need a persistent, verifiable and secure way to store one number for every installation of my app.

    Any thoughts on this?

    [Edit] This would be perfect. Unfortunately it's currently in some kind of private beta. https://developer.android.com/google/gcs/index.html

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thanks Cranberrygame, the ImagePicker works like a charm. You are awesome!

  • cranberrygame thanks. One more question: do any of your phonegap plugins allow to prompt the user to choose a photo from the android gallery? If not, do you think it is possible to achieve?

  • Hi Cranberry,

    I could use some help with the FileTransfer plugin. I can't get it to work. Some questions:

    1. Can I use the C2 FileChooser plugin to select the file to upload?

    2. Should I uncomment this line in upload.php?

    //client:<input type="file" name="uploadfile" />[/code:3w7ywcb9]
pirx's avatar

pirx

Early Adopter

Member since 20 Aug, 2013

Twitter
pirx has 2 followers

Trophy Case

  • 11-Year Club
  • x3
    Coach One of your tutorials has over 1,000 readers
  • Educator One of your tutorials has over 10,000 readers
  • RTFM Read the fabulous manual
  • Email Verified

Progress

15/44
How to earn trophies