dop2000's Recent Forum Activity

  • jobel Variables placed inside a group will become local. Local variables are reset on every tick, unless they are set as static. And there is no easy way to reset all static local variables. So OP will still have to reinitialize each such variable individually on start of the layout.

  • I've tried the persist

    And you were on the right path, but you needed to add "Timer is NOT running" condition to the first event.

    Question with global objects that text box will take up that space on all layouts and how can I stop the running timer, lets say the user went to a home page?

    You will have to destroy this text on all other layouts. I don't like Global objects, but they may be useful sometimes.

  • You do not have permission to view this post

  • Your are adding 40px margin on the left and top of the snapshot, but you didn't add the same margin to the right and bottom. I think you need to change it to Body.Width+80 , Body.Height+80

  • This is not possible. You will have to reset each variable one by one with "System Set variable" actions.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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.

dop2000's avatar

dop2000

Member since 26 May, 2016

Twitter
dop2000 has 279 followers

Connect with dop2000

Trophy Case

  • 10-Year Club
  • Entrepreneur Sold something in the asset store
  • Jupiter Mission Supports Gordon's mission to Jupiter
  • 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
  • Forum Wizard Made 5,000 posts in the forums
  • Forum Unicorn Made 10,000 posts in the forums
  • x5
    Popular Game One of your games has over 1,000 players
  • x2
    Coach One of your tutorials has over 1,000 readers
  • Educator One of your tutorials has over 10,000 readers
  • Regular Visitor Visited Construct.net 7 days in a row
  • Steady Visitor Visited Construct.net 30 days in a row
  • Enduring Visitor Visited Construct.net 90 days in a row
  • Unrelenting Visitor Visited Construct.net 180 days in a row
  • Continuous Visitor Visited Construct.net 365 days in a row
  • RTFM Read the fabulous manual
  • x3
    Quick Draw First 5 people to up-vote a new Construct 3 release
  • x14
    Great Comment One of your comments gets 3 upvotes
  • Delicious Comment One of your comments gets 10 upvotes
  • Email Verified

Progress

30/44
How to earn trophies