dop2000's Recent Forum Activity

  • You can add it to the same event:

    Boat On Timer "arrived"
    For each Boat 
    

    But your issue may be caused by something else. Can you post a screenshot of your code and explain what exactly goes wrong?

  • Yes, "On timer" can trigger for multiple instances, if their timers expire at the same moment. The easiest solution is to add "For each" condition.

  • You need to store the current SFX volume in a variable and use that variable when playing new sounds.

    I suggest creating an AudioPlay function and calling it whenever you need to play a sound. Inside the function, you can calculate the volume correctly based on the tag and game settings. This also would make it easier to modify the entire sound system later — you won’t have to go through all your individual "Play" actions every time you want to change something, like renaming a tag or adjusting the volume.

  • With Local Storage you can save anything you want and delete any keys you want. So yes, you can save any number of slots.

  • Don't use automatic targeting - don’t add entire objects as targets. Instead, use the 'Acquire target' action for each turret/target.

    You can track targets in an array, but I’d suggest using instance variables instead. For example, a NumberOfAttackers variable on a tank could store how many turrets are currently firing at it.

    When picking a new target for a turret, look for tanks in range with the lowest NumberOfAttackers value.

    Check out this example on how to use 'Acquire target':

    howtoconstructdemos.com/how-to-limit-the-angle-of-view-for-turret-behavior

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • How old is the project? Does it use any addons? Try updating the addons to the latest version. Make a backup copy of the project before experimenting!

  • By the way, is that WebView jank issue fixed now? They said the rollout was supposed to happen at the end of July.

  • This could easily be resolved by setting it to resize 2 pixels instead of 1 and making it longer intervals, but that would make it more choppy

    Your game or app should produce the same results regardless of the framerate. Some people will run it at 240 fps, others at 60 or maybe even 30. Then your "Every 1/120 seconds" condition won't work. If you want to resize the object properly with events, do it on every tick and make sure to use delta-time.

    I would suggest using the Tween behavior instead - it's a lot easier. You just set the target size and time and it will resize the object properly. One added bonus is that you can choose a nice easing effect.

  • So you are writing the file with NWjs plugin? Can you show a screenshot of the code?

    And you really need to free up some space, 2GB is not sustainable.

  • You can use two LiteTweens - one for X movement (linear) and another for Y (OutCubic + ping-pong). Or MoveTo for X and LiteTween for Y.

  • Yeah, it's annoying that we can't add the NoSave behavior to data objects.

    I usually work around this by keeping an invisible sprite with the NoSave behavior on the layout and storing all data that shouldn’t be affected by saving/loading in its instance variables - for example, Array.AsJSON. Then, in 'On load complete', I read it back into the array.

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