dop2000's Recent Forum Activity

  • 1. Set initial data from dictionary.json file with AJAX

    2. Once there is some actual player data, set Local Storage item to the dictionary object .AsJson

    3. Turning game on again, check if that Local storage item exists, get it, use dictionary "Load from json string". If doesn't exist, go to 1.

    What you described is a good and effective solution.

    If you are extracting each value from the dictionary into a global variable, it may be easier and more convenient to use several dictionaries. For example, one for storing player progress (copy values to variables), and another one for storing game settings (use directly, without copying to variables).

  • Are there any effects, blend modes or layers with "Force own texture" enabled? Try disabling these and see if the performance improves.

    Using full-screen mask sprites is definitely not a good idea. You should break that dark mask into separate images. If there is no parallax between the light background and the dark foreground, you can use these 3 small sprites and merge the rest of the mask into the background image:

  • Add all inventory items into a family. You can pass object name as a parameter into the function, and use "System Pick by Evaluate" condition inside the function to pick the right object.

    System Pick by Evaluate ItemsFamily where ItemsFamily.ObjectTypeName=name

    .

    Another option is to add an instance variable ItemType to the family. Set correct values in ItemType for all items - for example "sword", "potion" etc. Then you can pick objects by this instance variable.

  • You need to use tags and check if this particular tag is already playing:

  • Usually if Local Storage works on PC, but doesn't work on mobile, this means there is a problem with the code. Since mobile devices are less powerful, it may take a longer time to read/write to Local Storage. So if, for example, in your game you are trying to write and read from LS in the same tick, this may work fine on PC, but won't work on mobile.

    Can you post a screenshot of your events?

  • You do not have permission to view this post

  • Date is a number, so you can set it to a variable, or compare to other dates/numbers using conditions, for example "Is between values":

    .

  • You can add all sprites into a family "ClickableSprites", and use a single event like this:

    Mouse On object ClickableSprites clicked
    ClickableSprites pick top instance // in case you have overlapping sprites
     .. set var to ClickableSprites.ObjectTypeName
    
    
  • Yeah, you don't need AJAX at all.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Try NWJS.ReadFile(NWjs.Userfolder&"file.json") expression instead

  • Or if you need more control and to use use different easing effects, try Tween behavior:

  • Did you ask this question before? I remember seeing it here.

    You can't use Physic+Pin, it will never work properly! If you need a very realistic door mechanics, you have to create a physics joint to attach the door to the wall.

    If you just want the doors to open and close on collision, then you should remove Physics and use Tween behavior. On collision -> tween door angle

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