Joannesalfa's Forum Posts

  • Bump

  • Swap actions on event number 2 to 4

    Make sure to check "Static" on this local variable.

  • Have you seen this:

    Yes, I've used it and it worked with my ugly hack.

    There a reason why I created this thread, I was looking a solution without third party plugins if is possible.

  • troublesum Nice plugin! I use it for workarounds. Actually, I planned to release this .capx to public without third party plugin due to user experience and it makes me so angry why Ashley didn't plan to create another plugin as JSON, another alternative to XML.

    I was thinking to use Array to store each properties and value but JSON format looks like hell to separate using token to get rid of " " and {}. Also to add width to Name and height to Defined Name.

    There is working sample to get values from .txt which it's formatted with simple and plain line. Enclosed a .capx on this post.

    I'm not sure how to convert it to JSON. Do you have better ideas?

  • This is formatted JSON file:

    {"data":{"name":"John Johnson","street":"Oslo West 16","phone":"555 1234567"},"success":true,"status":200}[/code:37m67xvj]
    
    I need to know how to parse this JSON and get "street" to set text in C2.
    
    I tried to use Browser object to execute javascript using:
    
    [code:37m67xvj]var text = '{"name":"John Johnson","street":"Oslo West 16","phone":"555 1234567"}'
    
    var reference = JSON.parse(text);
    
    reference.street;[/code:37m67xvj]
    
    and I got "0" in return.  Can you help me?
    
    Thanks in advance.
  • Just use hack, create invisible sprite over textbox

  • You can't click over Textbox, you should use button or a key.

  • Would you explain more specific?

    By the way, You can't alter the current file, you should create new file from current file and save as new one.

    Here is capx to solve your doubt.

    https://dl.dropboxusercontent.com/u/762 ... eFile.capx

  • I believe it's using "leap" which is designed by R0J0hound

    You have to create your own design according to angle direction and force according to width of arrow, to target position you can multiply from width of arrow, when it's ready to simulate, call leap function, you can modify this function while comparing "t" as instance variable to make it bounce and force would be divided by 2, to stop bouncing 2 times, use boolean to set isBounced.

    I hope it helps you

  • 2 options:

    -To browser, use Webstorage plugin.

    -To disk, use Invoke download from Browser plugin.

  • I think he means downloading a file, use browser to Invoke download.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Yeah, that's annoying part, we need to remove Folder option in project while play audio by name, we have to ask to Ashley

    We should ask him to replace Folder option to URL

  • I saw new touch gestures are added, Is possible to add more new gestures in future releases?

    Following implementations:

    Trigger:

    -On Swipe Direction(Left, Right, Up or Down)

    These events are update and return value if is possible

    -Is swiping direction

    -Is Pinch

    -Is Rotating

    There a touch gesture javascript library http://eightmedia.github.io/hammer.js/

  • Make your own guidelines to anyone who wants to mod your game, I would suggest you:

    -Editing original sprite sheet. (No Load image by URL due to memory problem, you can clone 5 objects for future new units).

    -Create new object using instance variables to setup their attributes, use XML.

    -Map editor, save to Array and load the selected .json file.

    -Use XML or JSON to read selected audio file name, everyone can edit the game using XML or JSON files without Construct 2 but you have to define the public variables to adjust your game.

  • We need to add "simulate open" we use sprite as buttons and we put these DOM elements away or make them as invisibles for some reasons to their designs.

    Sprites are best to be treated like buttons than DOM elements in different screens