dop2000's Forum Posts

  • It probably has been asked so many times, but, how do I move sprites with different ids to match other sprites with the same id?

    You can use families for that. Define id on the family. Pick one family instance and one sprite instance with the same id. And then you'll be able to refer to both instances in the same event, for example: Sprite MoveTo Family

  • Timer is reset because you are restarting it in "On start of layout" event.

    There are several alternative and easier solutions:

    1. I see you've added Persist behavior to the text object. It will ensure that the Timer continues to run after layout is restarted, but you need to add "Timer is NOT running" condition to the first event, to prevent it from resetting.

    2. Instead of Persist behavior, you can make the text Global. It will have the same effect, but you need to be aware that global objects are not destroyed when you switch to another layout.

    3. You can do this without Timer behavior - add this event:

    int(TimerVariable)%12=0
    Trigger Once 
    ..........Audio Play 
    
  • RandomPixels So it seems like the consent dialog for data collection is shown instead of the native App Tracking Transparency dialog. Or maybe it's shown before the App Tracking Transparency dialog, and Appstore support don't like this.

    What do you have in "Location To Show User Consent" setting? Try changing it to "Nowhere". And if you need to show the user consent dialog for people in EU - do it later in the game, after the "Request IDFA" action.

  • Are you talking about desktop export and command-line arguments? You can access them with NWJS expressions ArgumentAt and ArgumentCount:

    construct.net/en/make-games/manuals/construct-3/plugin-reference/nw-js

  • Nothing happens at all? Try restarting the editor.

  • Ah, terribly sorry, I misunderstood the issue. Here is the way to run the timer continuously:

    .

    But it would be easier to use a global object with Timer behavior.

  • However if you click the sprite to restart the layout the alarm timer is reset and it might not be synced with every 12 seconds anymore.

    It works fine for me. Run the project in Debug Mode and you'll see that the timer properly resets every time the layout is restarted.

    One thing I would suggest fixing is the timer tag - don't leave it empty.

  • That demo was meant to show how to use touch controls on a layer with zero parallax. If it doesn't help with your issue, please post you project file.

  • Here is a demo where touch controls are on a separate layer with (0,0) parallax:

    dropbox.com/s/9z0t05t4bw5ozgs/Thumbstick_car.c3p

  • I'm really struggling to understand what's going on in your screenshot. Have you tried replacing double quotes " with single ' before sending?

    Set s to replace(Dictionary.AsJSON, """", "'")

    .

    Also, it's annoying to keep track of all these quotation marks in expressions and very easy to make a mistake. So I prefer this method of building JSON strings:

    .

  • There is an easier way to do this with a bit of scripting. However, this method will not work with advanced minification.

    .

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You need to post your project file. It's a guess game without it.

  • So you have a Timer running on one of the objects? And when you restart the layout, the Timer also restarts?

    It's likely because all objects are re-created when layout is restarted. You might need to use a Global object, and make sure only one instance of it is created.

  • Try downloading the project to your hard drive and then open. If it still doesn't work, press F12 in the editor and check error messages in Console tab.

  • If you are on Windows, you can use the built-in Snipping Tool, or press Win+Shift+S.