dop2000's Recent Forum Activity

  • 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 Construct 3

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

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

  • 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

  • I would advise using the Persist behavior. If you are spawning objects in runtime, you need to do this only once, and don't respawn them when you return to that layout later - Persist behavior will take care of that.

    Another a much more difficult option is to use an array to store the data about objects on each layout.

  • From the documentation:

  • Do you create an Element instance in runtime? Did you tick "Create hierarchy" checkbox? Also check which properties the child objects are syncing with the parent (on the properties panel).

    I'm using the method you described heavily in my project and it definitely works.

  • Run the game in Debug Mode (Shift+F4) and check object counters on the left panel. It sounds like too many objects get spawned. Also, if you posting your game here, you need to post c3p project, not an exported game.

  • I tried a few C3 games in the Arcade that save high score to Local Storage, and they all work fine.

    You can try uploading the official "High Score" example, see if it works. Maybe the issue only affects recently added games. Try different browsers, incognito more, try different internet connections if possible.

dop2000's avatar

dop2000

Online Now

Member since 26 May, 2016
Last online 3 Feb, 2025

Twitter
dop2000 has 257 followers

Connect with dop2000

Trophy Case

  • 8-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
  • x13
    Great Comment One of your comments gets 3 upvotes
  • Delicious Comment One of your comments gets 10 upvotes
  • Email Verified

Progress

28/44
How to earn trophies