dop2000's Recent Forum Activity

  • The problem here is if I just press and RELEASE CTRL by itself... it will create an UNDO which doesn't make any sense

    Sigh... We've been through this many times.

    You need to use a boolean flag IsUndoSaveRequired (or something like this). Set this flag to true when the object is resized. Check this flag when Ctrl is released and call SaveStep function only when the flag is true. If user just pressed and released Ctrl, the flag will remain false, and the undo step will not be saved.

  • Since you don't want to provide any more information, or your code, or your project file, I assume all you have is a bunch of circle sprites.

    You can use that green line sprite to detect groups of circles of the same color.

    Set origin point at its left end, set angle to 45 degrees.

    In a loop set line position to each circle, check if it is overlapping 4 circles, check if all 4 circles are the same color.

    If they are, mark them for deletion. Repeat for all circles on the board.

    Then set the line angle to 135 degrees and do the loop again.

    Then make the line size shorter, to cover only 3 circles, and repeat loops again for 45 and 135 degrees.

    Finally, destroy all marked circles.

    .

    Of course, this is an un-optimized method, there is room for improvement, but it should work.

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

dop2000's avatar

dop2000

Member since 26 May, 2016

Twitter
dop2000 has 261 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