dop2000's Recent Forum Activity

  • gugugu You can use two Sine behaviors with movement type "value only":

    On every tick
    FollowerSprite set position to
    	X: (Player.x + Self.SineH.Value)
    	Y: (Player.Y + Self.SineV.Value)
    
  • Help with what? I believe "Use worker" option is available in free version, it's in project properties under Advanced tab.

  • If you decided to go with groups, you don't need the boolean flag!

    "On LoadProjectButton pressed -> NWJS Show open dialog, Activate "Load project" group, Deactivate "Load image" group

    "On LoadImageButton pressed -> NWJS Show open dialog, Deactivate "Load project" group, Activate "Load image" group

    That's it!

  • By the way, Save/Load and Undo system will not be able to restore custom images (which you load into sprites or drawing canvas). You'll need to restore them with events from saved binary data, or from disk files, it's a whole different and quite complicated topic of discussion...

  • Yes, I do have 2 "On open dialog OK" but they're separated by different buttons, under different groups (as shown on the images above) I guess that's not enough! :(

    No, that's not enough. The simplest solution is to put them into two different groups and activate/deactivate them depending on what button was pressed, making sure only one group is activated at a time.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Save your project as a folder (not as .capx), and search for object names in xml files. I prefer using some file manager like Total Commander :)

    For example, search *.xml containing "Sprite1", if it's used in any event sheets or layouts, you'll find them.

  • Well, if you are looking for an event On animation "attack_*" is finished, there is no such thing. The only option is to use On any animation finished and then compare animation name with left() or some other expression.

  • I also have a feeling that you have two "On open dialog OK" events - one for loading image files, and another for loading save files. They are both triggering and causing havoc. Add some kind of flag to distinguish them, or activate/deactivate event groups, or make one universal event, where process files differently based on file extension.

  • It does exactly what it says - loads game state from the file you selected in "Open dialog".

    • Post link icon

    This is great news!

    There is still one thing I believe web version can't do - preview in NWJS mode. Will this be added before retiring the desktop app?

    And also, is there any way to override/disable Chrome keyboard shortcuts? I've closed Construct at least a hundred times by pressing Ctrl-F4 or Ctrl-W, it's the main reason I'm using Desktop build...

  • Well, you are doing it again :) You disabled the Save/Load system and the error message went away. Great, but why stop at this and ask for a solution on the forum? Why not try to find what's causing this error yourself? You already know how to do it - add debug messages to all events which you think are involved, run the project in debug mode, open console, press the button, see what's happening, try to figure out the sequence of events and soon you will wind the fix. Troubleshoot! Nobody can do this better than you because nobody knows the project as well as you do. (I'm almost sure it's something to do with Undo flags not properly set or cleared)

    About JSON - you don't need to understand its structure to use it. JSON (from saved state) is just a string of data, containing information about all objects in your project. When you load from JSON, all objects are recreated from that data, that's it.

  • I'm guessing that message is from your Saving/Loading system or from Undo. It probably has nothing to do with loading an image into sprite. Or maybe you are using "Sprite Set from JSON" instead of "Load image from url".

    I'm just encouraging you to experiment and try solving problems yourself, instead of posting here about every little issue you encounter. You'll learn much quicker.

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