dop2000's Forum Posts

  • Try adding "For each":

    Player On Timer "destroy"
    For each Player
    ...........Player Destroy
    
  • I am not sure how I helped, but you are welcome :)

  • It works fine for me, even without the "For each".

    dropbox.com/s/oqf4av4n7vjpkti/TweenInstances.c3p

  • You can add "For Each Sprite".

  • Here is an example of a scrolling list:

    howtoconstructdemos.com/scrolling-a-list-of-players-scores-images-etc-example-a-capx

    You can "erase" the top and bottom parts of the list using a mask sprite with a blend mode:

    editor.construct.net

  • You can put two invisible sprites - one on the left and one on the right side of the screen.

    On touched LeftSprite 
    -> Snake set Angle of Motion to (Snake.Bullet.AngleOfMotion-90)
    
    On touched RightSprite 
    -> Snake set Angle of Motion to (Snake.Bullet.AngleOfMotion+90)
    
  • Of course yes.

    You need to investigate why your project is crashing and fix the problem. Check errors in browser console, try disabling big blogs of of code, until you find which event is causing the crash.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • This is possible, but not a simple task. Maybe you can use a permutation table instead of the array? This will be much easier.

    If you need, for example, 20 non-repeating numbers in the (0-99) range, you can create a permutation table for 100 numbers and then pick the first 20 from it.

  • 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":

    .