dop2000's Forum Posts

  • Vissca Do you mean a specific instance, or a specific object (member of the family)?

    You can pick an instance by UID, by instance variable value, or using many other conditions.

    If you want to pick specific objects, say only "RottenZombie" sprites, you can use this condition:

    System Pick Zombies By Evaluate (Zombies.ObjectTypeName="RottenZombie")

    Note that ObjectTypeName expression doesn't work in Construct 2.

  • As I said, you can use the updated version with templates. There you can add any new sprites to the hierarchy, no need to change the code every time.

  • I prefer saving a dictionary. You can put global variables into the dictionary, or any other values you want, including arrays and other dictionaries!

    This way you'll have everything in one dictionary and it's easy to save and load it from Local Storage.

    Here is how I usually do this:

  • Press F12 and check for error messages in browser console.

  • It was, most PlayerFamily objects are not swimming, and I actually never tested the issue with one that was swimming.

    You may be hitting the old issue with OR-blocks:

    if IsSwim=false and other conditions are true, the event runs, but with zero family instances picked. PlayerFamily.UID in this case will return 0.

    This would explain why you were able to fix your code by adding "Pick All".

  • I think I know what may be the problem. Does this happen with PlayerFamily instance that has IsSwim=false?

  • I have never used Function.ReturnValue like that. I always thought it can only be used inside the function.

    Try this condition instead:

    Function.Call("PlayerSkillSetup", PlayerFamily.UID, "skill_greed1")="skillExists"

    Also, make sure there are no "Waits" inside the function.

  • Again, this is only possible in NWJS export.

    You can't save files silently in a browser app. You can only invoke downloading a file, prompting the user to select where the file will be saved.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • This won't help! Because there can be only one record for App ID in the manifest.

  • Browser app can't access the actual file path for security reasons, that's why you get an URL. If you need an actual file path, you need to build the game for desktop and use NWJS plugin.

  • It will be very difficult to fix or update system saves. I suggest making your own save system - saving only the essential information, not everything. You can save it to Local Storage or to a file.

  • Like I said, Admob App ID needs to be in android manifest. You can't change it in runtime.

  • I believe App ID needs to be declared in android manifest. Therefore it's not possible to have two App IDs, or to change it with events.

  • You can't add this plugin twice. You'll need to release a new version of the app with a different Admob ID.

  • Is it possible to use a "probability table" to get 2 non-repeating valor too?

    Of course.

    AdvancedRandom.Permutation(0) will give you the first random number.

    AdvancedRandom.Permutation(1) will give you the second random number.

    AdvancedRandom.Permutation(999) will give you the 1000th random number.