Colludium's Forum Posts

  • Kyatric - thanks for responding. What about the arcade - would it be acceptable to have a demo version running there instead? Thanks.

  • Update - now contains a Dictionary key check, so you don't inadvertently lose data by duplicating key names.

  • Apologies but I cannot create topics in the Scirra Store section.

    I have an app (a data creation tool) that I would like to upload to the store as a demo version, with limited functionality and containing an in-app link to the full and free version of the app. Would this be acceptable according to the store rules, or should I not post the demo? This demo contains no ads etc, so it should be ok - right...?

    Thanks.

  • Same problem here... If it is a problem and not just an annoyance...?

  • A quick demo:

  • Just a tag in this thread for search purposes - to link to the discussion for my C2 JSON Data Manager Thread (Thread Link). If you need to create unlimited nested dictionary and array structures then this tool could prove useful... Please feel free to check it out (link in the other thread). Thanks.

  • May I present my C2 JSON Manager tool that permits easy management of nested dictionary and array objects, in a format that can be directly imported into c2. I started this as a side-line project to support some other work - and hopefully you will also find it useful! It's free to use (and ad supported).

    Summary:

    Completed:

    • Import a c2 .json file (from dictionary / array AsJSON string) - either as a file-read or a paste from clipboard.
    • Create a blank dictionary or array.
    • Create arrays within arrays within dictionaries within.... etc. You get the idea. Unlimited nested data structures.
    • Paste additional AsJSON strings into arrays and dictionaries.
    • Delete rows / columns of array data and delete keys of dictionaries.
    • Undo your data mistakes, if required (within current edit level).
    • Change displayed X / Y axes.
    • Use zero array values as axis headings - optional.
    • Save the current array / dictionary from within the data structure.
    • Save the whole data structure before continuing to edit it.
    • Creates an alert if you duplicate a dictionary key.

    To Do:

    • Export to Windows 10 / 8.1 (maybe) - if there's enough interest (I might do it anyway just for the experience...).
    • Done: Duplicate key name check.
    • Search the data for a string (again, maybe, depending on interest and my ability).
    • Any other ideas?

    Please feel free to check it out and I would be grateful for any bug reports of suggestions for improvement.

  • I suspect your events are being negated by the player's max speed setting in the platform behaviour. I suggest you temporarily increase the max platform speed to enable this (and maybe change the deceleration as well).

  • Thank you very much for this - some very useful additions.

  • Alrighty, so your code doesn't completly remove right clicking and mine does?

    That's correct - it permits right-click cut/copy/paste actions only. All other right-click context menus are prevented.

  • I'm not a JS expert so I let you be the judge, is my code more effecient or yours?

    The code I use:

    "document.addEventListener('contextmenu', function(e){e.preventDefault();}, false);"[/code:ummrm5zk]
    

    That only works if you don't want to have a Cut / Copy / Paste option by using a right click. Both sets of code are valid with different objectives.

  • Please consider adding this method of replacing the terrible right-click context menu (when you right-click on textbox and forms) with one that permits Cut / Copy / Paste methods:

    Browser Execute Javascript:

    "var gui = require('nw.gui');
      
      var menu = new gui.Menu;
      
      menu.append(new gui.MenuItem({
        label: 'Cut',
        click: function() {
          document.execCommand('cut');
        }
      }));
      
      menu.append(new gui.MenuItem({
        label: 'Copy',
        click: function() {
          document.execCommand('copy');
        }
      }));
      
      menu.append(new gui.MenuItem({
        label: 'Paste',
        click: function() {
          document.execCommand('paste');
        }
      }));
      
      document.addEventListener('contextmenu', function(e) {
        e.preventDefault();
        if (e.target instanceof HTMLInputElement || e.target instanceof HTMLTextAreaElement || e.target.isContentEditable) {
          menu.popup(e.x, e.y);
        }
      });"[/code:1ob7b4x0]
    
    Sourced from [url=https://github.com/b1rdex/nw-contextmenu]here[/url] and works like a champ.
  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Problem Description

    After editing a text object, the error message listed below occurred during a manual save.

    Attach a Capx

    N/A.

    Description of Capx

    N/A

    Steps to Reproduce Bug

      N/A Observed Result [quote:e5p415lp]--------------------------- Construct 2 Check failure --------------------------- Check failure! This is probably a bug: No property changed handler available when editing property Condition: false File: Bars\PropertiesBar.cpp Line: 768 Function: void __cdecl CPropertiesBar::OnItemEdited(class CBCGPProp *,bool) Build: release 241 (64-bit) checked Component: Construct 2 IDE (Last Win32 error: 0) You are using a 'checked' release of Construct 2, intended for testing, which causes certain errors to be reported this way. Hit Ctrl+C to copy this messagebox - it's useful information for the developers, so please include it with any bug reports! Click 'Abort' to quit (unsaved data will be lost!),'Retry' to turn off messages for this session and continue, or 'Ignore' to continue normally. Expected Result N/A Affected Browsers
        N/A

    Operating System and Service Pack

    W10 x64

    Construct 2 Version ID

    r241 64 bit

  • ....I figured it out by using "SET CSS - overflow-y" with "hidden"

    for anyone that might have the same issue.

    Good advice - I'm not a css guru by any stretch. Here's a w3schools playit demo of the various options that are available.

  • Set CSS style "cursor" to "none" will remove the system cursor when it is over the text box. To remove the scroll bar, set "Type" to "Text" in the c2 object properties.