dop2000's Forum Posts

  • rafaeltrigo Thank you for the links!

    Do you know how services like freegeoip.app can track how many requests my app makes? I am not planning to cheat them, I'm just trying to understand - if the AJAX request is anonymous, and the app is installed on different devices, how can they count these requests?

  • oosyrag This may annoy some players and potentially reduce the revenue from ads.

  • You can paste your sprite onto a DrawingCanvas object. DrawingCanvas has some limitations comparing to Sprite (for example, you can't deform it, can't change collision polygon), but it should work fine for buildings and such.

    You can use a combination of both - an invisible PlayerBox sprite with the correct collision polygon etc., and a DrawingCanvas object pinned to it, acting as a "skin".

  • BadMario

    Why not just have a simple text under start game button. By clicking play you consent to possible use of cookies and, bla, bla, bla.

    Not sure if this will be GDPR-compliant.. Need to do some research.

    rafaeltrigo Thanks! I wonder how reliably this service (ipinfo.io) works for anonymous requests. Are they able to detect how many requests are originated from my app if I am not using authentication?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You can use IIDs. When a light is switched on, save Light.IID in a temporary variable. Then pick the next Light number (SavedIID+1) using "System pick Nth instance" and turn it also on.

    Light On click -> Light Toggle On
    ...............-> set SavedIID to LightIID
    
     System pick all Light
     System pick Nth instance (SavedIID+1) -> Light Toggle On
    
  • To display the GDPR consent dialog I need to detect if player is in Europe.

    The official Mobile Advert can do this, but I am using a third-party addon to show ads. I can't add Mobile Advert just for this one small feature, because two ad plugins in one project don't work.

    Is there any other way?

    Tagged:

  • If all lights have the same animations/images, then you don't need 10 identical sprites. Use just one sprite with 10 instances.

    Also, you can remove either On or Value variable, since they both mean the same thing.

    On click -> Toggle On and call the function.

    Inside the function -> If On, set animation to "On", else set animation to "Off". Also pick lights with On=true and use Light.pickedCount to get the number of lights that are on.

  • I am not sure if I understood your question correctly, but you can try orbit behavior:

    dropbox.com/s/wuc13kinuyhnyiv/rotation%20around%20moving%20point1.c3p

  • You can give objects on the layout Persist behavior.

  • I don't understand why it works on one layout and doesn't work on another. But you can fix it by setting "Set angle=No" in Bullet behavior properties for the bullet object.

    На русском это "Установить угол=Нет" в поведении Пуля для объекта пуля на первом лейауте. :)

  • Could you share the project file?

  • the 'Recreate initial objects' action

    I didn't know it can recreate objects from other layouts, wow!

    My top three:

    1. "Find all references" for objects, variables, functions etc. Very handy!

    2. Tab+click to select bottom object and "Show translucent inactive layers" checkbox in layout editor. I discovered these features just recently, and they make the job of editing big complex layouts so much easier!

    3. I'd really like to see this idea implemented:

    construct3.ideas.aha.io/ideas/C3-I-1419

  • First of all, don't use "time=nn" condition. Time will almost never be exactly 2.00 seconds. Even if it works on your machine, any slight change in fps or a micro lag can change this. Use Every X seconds event, Wait action, or Timer behavior.

    To spawn multiple instances you can add a loop, for example:

    Repeat 5 times 
     Create enemy at X=500+(loopindex*100), Y=200