dop2000's Recent Forum Activity

  • MrClifford You can actually access LocalStorage.ItemValue in the "On item exist" event. No need to use Get/On Get.

  • You can use Timer behavior - run a timer for 5 seconds, and in your "On Click Object A" event check that the timer is not running.

    Or even simpler - save the time object was clicked in a variable LastClick. And allow to click it again if (time-LastClick)>=5

  • You can't change layout size in runtime. You can allow "Unbounded scrolling" in layout properties.

  • Je Fawk pandabear7413 birdboy And others who have this issue in Chrome - could you share your hardware config? I wonder if this happens with Intel CPUs?

    I have a gaming laptop and gaming PC, both with AMD Ryzen processors and plenty of RAM. Construct lags and freezes terribly on both computers in Chrome.

    But when I open the same project on an old Intel i5 laptop, there are no lags. (although it crashes frequently with "out of memory" error)

  • Use a local variable to temporarily store the value of one instance.

    Sprite is overlapping Family
    .. Local Variable temp=0
    
    .. Set temp to Sprite.var
    .. Sprite set var to Family.var
    .. Family set var to temp
    
    

    Only in this case you should probably use "On Collision" event. Because Overlapping can happen many times per second, so the instances will continue swapping values again and again many times.

  • Add the sprite to a family. Define the variable on the family and remove it from the sprite. Then you can use this code:

    Sprite is overlapping Family
    .. Family set var to Sprite.var
    

    Depending on your task you might need to pick the correct sprite instance first. For example if you are using Drag And Drop behavior, then the code will be:

    Sprite On Drop
    Sprite is overlapping Family
    .. Family set var to Sprite.var
    
  • You can set an object as Global. Then when you switch to another layout, the object will be transferred there automatically. Make sure not to create duplicates!

  • Another popular method is to create a family with this sprite, and then you'll be able to use "Sprite overlapping Family" condition. Where you could refer to both instances separately.

  • After changing to VSync, the game seems to be better, but everything runs slower and bullet collisions aren't accurate, is there a fix for that?

    You definitely should fix the game to work with V-sync mode. Unlimited mode is only used for stress-testing and you can't release the game with Unlimited mode.

    To improve bullet collision use stepping mode in bullet behavior. There is an official example for it in Construct.

    Also you shouldn't use "Find path" for enemies on every tick, it's bad for performance.

    Maybe it depends on the type of Graphikcard or memory if it doesn't appear on dops Computer.

    I tested on a pretty old laptop with Intel HD video and 8GB RAM.

  • Try renaming the keys, I'm not sure if names like "1" or "2" are allowed, because "key.1" usually means the path to the first element in an array.

  • Change Framerate Mode to V-synced in project properties. "Unlimited" mode can only be used for testing.

    Other than that I don't see any issues, the game runs fine for me, I played it for several minutes.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You can put all values you want to save into an array or a dictionary, and then save it with one action - Local Storage Set "data" to Array.AsJSON

    To load - Array Set From JSON

    Check out this demo:

    howtoconstructdemos.com/easily-save-multiple-values-in-local-storage

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