dop2000's Forum Posts

  • You can use a boolean flag. For example -

    if Button.isActive=false and cursor is over the button 
     -> start Tween "UP"
    
    On Tween "Up" finished 
     -> Button set isActive to true
    
    if Button.isActive=true and cursor is NOT over the button 
     -> set isActive to false, start Tween "DOWN"
    

    You can add "Tween not playing" condition to events 1 and 3 for extra robustness.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Rory Please post an idea here:

    construct3.ideas.aha.io/ideas

    I'll vote for it!

  • Laurent I decided to use one of the free geolocation services posted above. My biggest worry is that it may stop working, so I'll probably add a backup one - if the first AJAX request failed, try to get location from a different service.

  • If you find someone who can port it, and pay that person enough money - they yes, it may be possible :)

    I think your best bet is to make a car with the standard Physics behavior. It will be tricky, but it's much more realistic than trying to port some old abandoned plugin.

    Edit: check this example, it's not very good, but may be a starting point.

  • Sorry, I thought this was C2 forum.

    It looks like a big and complex plugin. Porting it for C3 must be a huge task.

  • Give me a Pixel It's already a plugin. Just copy car-physics folder into C:\Program Files\Construct2\exporters\html5\behaviors or similar folder.

  • RBuster In that post I used a simple level (volume) to animate the puppet. If you need to detect and recognize different sound/letters, this is much more difficult. I don't know if this can be done in C3, I would recommend looking for a JS library.

  • 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?

  • 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