dop2000's Forum Posts

  • Again, I don't understand your question. Dealing with angles in Construct is tricky. In many cases you can't simply compare angle1 with angle2. I advise using "Is within angle", "Is clockwise", "Is counterclockwise" conditions, and expressions like anglediff()

    For example, if you need to know if spr_Road.angle and intersection.anglesToRotate are very close, you can do this:

    anglediff(spr_Road.angle, intersection.anglesToRotate)<5

  • Not sure I understand. You can define an image point (for the yellow dot) on small sprites and do something like this:

    SmallSprite is overlapping BigSprite
    For each SmallSprite
    
    .. use the following expression to get the angle from the center of big sprite to the yellow dot of the small sprite:
    
     angle(BigSprite.x, BigSprite.y, SmallSprite.ImagePointX(1), SmallSprite.ImagePointY(1))
    
  • You can change the controls you use to scale objects. Make it Ctrl+Wheel for example, and save undo step on Ctrl released.

  • netdzynr Yeah, I forgot to mention - with Physics you can't use non-physics behaviors and actions to move objects. No pin, no "set angle". This is the reason why your water is escaping.

    You can only move and rotate objects with physics actions like "set velocity", "apply force" etc.

    To tell you the truth, I don't see a simple way to make a rotating closed box entirely with physics.. Maybe somehow connect all sides with distant joints.

    Colludium Your plugin looks awesome!

  • One thing I definitely don't recommend using with Undo system is WAIT action, it will add more bugs and problems.

    Saving/loading time depends on the amount of data. If you are saving lots of objects, it can take several seconds on slow machines.

    The correct solution is to not save a new undo step until previous save has completed.

    Also, save only one undo step after user finished resizing the object. Saving dozens of steps for one resizing operation is a bad idea anyway, because users will have to press Ctrl-Z many times to undo them, and the total number of steps is limited.

    Of course other software are using different methods for undo, you are welcome to try some other system if this doesn't work for you.

  • Like I mentioned many times, you should avoid saving undo steps too often. Multiple saves are triggered too fast, one finishes and resets the boolean flag, another finished a moment later when the flag is already false and that's why it triggers your "Save as file" event.

    You can add some kind of cooldown period after each undo save, during which you ignore "SaveStep" function calls.

  • You can remove Bullet+Solid behaviors and replace them with Physics. The key part is to set "Bullet=yes" in Physics properties for all objects, then the water should not fall through borders.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Here is another good example of a dialogue system (working download link in comments):

    construct.net/en/forum/construct-2/how-do-i-18/zelda-dialogue-system-capx-117812

  • Try searching this forum for words like trajectory, arc, aim, angry birds etc. - there are literally dozens of topics about this. Here are some posts, most of the links in them are probably dead, but you might find useful information there:

    construct.net/en/tutorials/create-trajectory-or-projectile-like-angry-birds-1-1404

    construct.net/en/forum/construct-2/how-do-i-18/parabolatracjectory-tracing-55313

    construct.net/en/forum/construct-2/how-do-i-18/trajectory-line-47687

    construct.net/en/forum/construct-2/how-do-i-18/how-do-i-create-this-cant-desc-88146

  • Please read this post:

    construct.net/en/forum/construct-2/how-do-i-18/tips-posting-quothow-iquot-40390

    You provided zero information, that's why your question got no responses.

  • Building with Cordova CLI is difficult, you need to google error messages, fix the issues and try again.

    Try building an unchanged cordova project, maybe you made some mistake when editing the xml files.

  • You can search in Windows by file contents. But I prefer using file managers, like Total Commander:

    Here are the results I found, there may be more in your project:

  • There are 86 .xml & 136 json files in that folder! do i have to remove from all of them one by one?

    Search for "WRITE_EXTERNAL_STORAGE" string, there will only be a few such files.

    Also, I can't guarantee that this is the right method. It removes the permissions, but may break something else, test your game thoroughly.

    Edit : Also after the "prepare cordova" screen looks likes this...

    I don't know.. Try building the app, if there are any serious issues, the build will fail.

    After you get the APK, you can open it in Android Studio ("Profile or debug APK") and check the andoid manifest file for those permissions.

  • Have you tried disabling worker? I'm not saying it will definitely help, but it might.

  • When you restart the layout, at the end of the tick all objects will be destroyed and re-created. "Sprite Load from URL" action takes longer than that.

    Clear the image on start of the layout instead, if required.