dop2000's Recent Forum Activity

  • Oh, so it's a physics game. Still, it's not recommended to move Physics objects with non-physics behaviors and actions, they will be conflicting with each other.

    There will always be a small gap between touching physics objects, I believe this is how the box2d engine works. You can try Chipmunk Physics instead:

    scirra.com/forum/behavior-chipmunk-physics_t110815

    Or you can try to use two objects for blocks - one invisible sprite with Physics behavior, and another visible sprite pinned to it. The second sprite should be slightly bigger to cover the gaps.

  • Using Physics in tetris game is probably not a good idea. Mixing Physics with other behaviors (solid, 8-direction etc) in one object is a very bad idea. This will never work correctly..

    .

    I don't know what kind of game you are making. If it's a tetris clone, you need precise control over shapes movement, which you can't achieve with Physics or 8-direction behaviors. I suggest using addons like MoveTo or Board:

    construct.net/en/forum/extending-construct-2/addons-29/behavior-moveto-40701

    construct.net/en/forum/extending-construct-2/addons-29/pluginboard-layout2board-47187

  • ...Or there may be a dozen of other reasons.

    When something is not working I usually add a bunch of "Browser log" debug messages into relevant events/functions and see which of them are showing in the console. This is called debugging :)

    .

    Also can you please guide me how I clear the undo history for the load

    Change the function like this and call it after .alon file is loaded.

    .

  • I don't know your project and can't help you with this. Maybe when you preview with F5 the event sheet with Undo functions is not accessible (not included into layout's event sheet). Or there may be a dozen of other reasons.

    .

    By the way, you probably need to initialize Undo (clear undo history) after you load ".alon" files.

  • Is it because you forgot to re-enable UNDO group? :)

  • Do you have other "On save complete" or "On load complete" events in your project? Or an action like "Browser invoke download SaveStateJSON"? You'll need to add "isUndoSave not set" condition to those events.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Disabling auto-save didn't help. I had to roll back to C2 version 265, it doesn't crash..

  • The code on your screenshot is correct, that's exactly how it should be done. I don't know why are you getting "Save as" dialog, must be some other event.

  • WesleyDeveloper9 Just the project file (capx or zip). I'm not promising anything, hopefully there is some easy to fix issue like wrong folder structure.

  • If you don't want to share it on this forum, you can email it to me:

    doperst2006 (at) gmail.com

  • You can easily convert to new Functions, just right-click and choose "Replace with built-in function".

    1. Number of undo steps is set on UNDO sprite, maxSteps variable.

    3. Yes, if you use System Save somewhere else, it will be saved as undo step, so you need to add some kind of flag, say a boolean variable isUndoSave, set this flag in "SaveStep" function, and check for this flag in "On Save complete", also reset this flag there.

  • Looks like your project is corrupted. Do you have backups?

    If not, can you share your project file? Maybe there is a way to fix it.

dop2000's avatar

dop2000

Member since 26 May, 2016

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