AllanR's Recent Forum Activity

  • select Layer 0, and then over on the left side of the screen, under Properties / Appearance, check the Transparent checkbox.

    The first layer created is not transparent by default. Additional layers are so you can see through them to lower layers... so when you create a new layer and move it under the first one - you wont be able to see it.

    You may want to set your BG layer to not be transparent while you are at it...

  • brunopalermo

    the problem is that when objects are created, they are not added to C3's internal object lists until after the top level event that creates them.

    in your sample file, that is the entire buildlevel function that starts at event 3.

    that means you can not pick them yet in event 14 where you want to destroy them.

    the easiest solution here is to add a Wait 0 action to event 10. That will defer running the "place enemies" loops until the end of the current tick - by then C3 has finished adding all the tiles and they can be picked the way you would expect - and destroyed as required.

  • someone faced the exact same problem yesterday - in fact I still had the test project I tested with open...

    pasted in your address "http://fandomfaceoff.com/test/test.php"

    and got the same warning - insecure content blocked.

    change your address to "https://fandomfaceoff.com/test/test.php"

    and it works fine - you need the s in https to make it secure.

  • I just tried it on my old iPhone (iOS 12.0.1) and it worked fine.

  • I just checked my junk drawer and found an old tablet that is running 4.4.2

    it doesn't hold a charge for very long, and I just plugged it in... I can try it later.

    I also have a customer with some really old tablets, but I wont be able to see if they have a 4.2 one until Monday.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You can pick the newly created objects by their UID - so it is possible to pass the UID into a function, or you could set a global variable to the UID and pick it that way. Wait 0 can also be used to defer actions until the end of the current tick - which is after the top level event that created it, so the new objects are then fully available.

  • it is not happy with "http://..."

    change that to "https://..." and it works fine with you php script.

    "https://www.zvornik24.info/potd/update.php?ver=2"

    without the "s" it was showing an error in the preview window, up in the top right corner - if you click on that and gave it permission to access unsafe scripts, it then started working.

    but with the "s" it works every time.

  • buttons will still work - even if the layer they are on is invisible.

    either add another condition on the Button click events to check if the layer is visible, or put all the button events for the store in a group and disable the group when the store is not visible. And enable the group when you show the store...

  • you can use IndexOf to search the X axis. If the data you are looking for isn't in the first column then you have to manually loop through each element of the array

    or use a second array as an index back to the first array - copy all the data from the column you want to search into the first column of the index array, the second column is set to the row the data came from in the first array. then you can sort or search the index array and link back to the main array...

  • another thing you can do is use a dictionary. I read a lot of data from an Database. I can send a query to the database, and it returns a list of the field names, and then all the matching records. the field names get loaded into a dictionary called "Fields", and the records get loaded into an array.

    then I can access the data like:

    array.at(RecordNumber, Fields.Get("FirstName"))

    if I change the query, and the FirstName field ends up in a different position in the array, the dictionary automatically takes care of that when it gets loaded - so I don't have to update any code.

    And, like dop said, if you have multiple array objects, you can can put them in a family, and pass the UID of the array object you are interested into a function, and pick that by UID inside the function.

  • when you are using negatives, you don't use "OR", (because each condition cancels out the other one, so turn off the Make Or Block)

    then you want to move the local variables and events under that to be sub-events under where you check the mouse buttons...

  • you have to unzip the whole project, look for a file called project.c3proj and open that in a text editor, and on the second line of the file you will see:

    "savedWithRelease": 16402, (or whatever version you saved it with)

    change the number to the version you want to open it with... for example:

    "savedWithRelease": 16300,

    save the file, re-zip the whole thing (and change the extension to .c3p)

    NOTE!!!! this will only work if you have not started using new features not found in the version you are going back to... so make sure you keep lots of backups! and use at your own risk :)

AllanR's avatar

AllanR

Member since 21 Nov, 2013

Twitter
AllanR has 23 followers

Trophy Case

  • 11-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Forum Hero Made 1,000 posts in the forums
  • Popular Game One of your games has over 1,000 players
  • x2
    Coach One of your tutorials has over 1,000 readers
  • Regular Visitor Visited Construct.net 7 days in a row
  • Steady Visitor Visited Construct.net 30 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

20/44
How to earn trophies