dop2000's Forum Posts

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

  • You can use BBCode

    [u]text[/u]
  • Ashley BadMario Yes, I realized that was probably lossy compression. Although I couldn't see any difference between the before and after files. I even tried a few online services that compare images on pixel level and they showed no differences. I think even though it's lossy, many game developers would happily trade a negligible loss of quality for a 50% reduction in game size.

    I've posted an idea:

    construct3.ideas.aha.io/ideas/C3-I-1601

  • Huh, I was doing exactly the same in my game just a few hours ago!

    You need to check Mouse.X("HUD") and Mouse.Y("HUD") , where HUD is a layer with zero parallax.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • So you have different objects - PointA, PointB, PointC.. And you want to get X coordinate from one of these objects, depending on the value in En1ac.point variable?

    The closest solution to what you have in your screenshot would be using ternary operator:

    (En1ac.point="A" ? PointA.x : En1ac.point="B" ? PointB.x : PointC.x)

    .

    You can also add all these point objects into a family and pick the family instance.