Joe7's Recent Forum Activity

  • septeven works on this <img src="smileys/smiley17.gif" border="0" align="middle">

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • rexrainbow: I know your plugin since it was available <img src="smileys/smiley1.gif" border="0" align="middle" />. I have also used JSON-loading with c2 before - but with pure (external) Javascript(-hashtables). Yesterday I've read about a language discussion and so I've decided to make a Plugin for "a simple loading" a "simple JSON-Langugage-file".

  • Does the plugin loadJSON fit?

  • Hi,

    this plugin can load and parse a JSON-file. It can be used for translation of words or phrases - written in an external json-file. The "funny characters" in the demo-JSON-file are unicode characters.

    Because it loads a custom json-file this plugin doesn't work in preview mode.

    ____________________________

    Update v 1.<font color="red">2</font>

    Bugfix - getting entries of keys

    Demo+Plugin+JSON-file v 1.2. (capx for C2 r85)

    (second test with fewer keys)

    ____________________________

    Update v 1.1

    Demo+Plugin+JSON-file v 1.1. (capx for C2 r85)

    Two more expressions:

    1) getRootKeysSize --> return number

    Returns an integer how many keys exists in the JSON-file.

    2) getKeySize(stringKey) --> return number

    Returns an integer how many entries exist at the key- stringKey.

    How to use --> screenshots in my post below

    ____________________________

    Demo+Plugin+Example (v 1.0)

    Property:

    The name of the json-file. [optional path if the file is not located next to the exported index.html]

    <img src="http://dl.dropbox.com/u/31151399/Construct2/Plugins/joe7_loadJson_demo/images/properties.png" border="0">

    Condition:

    <img src="http://dl.dropbox.com/u/31151399/Construct2/Plugins/joe7_loadJson_demo/images/conditions.png" border="0">

    Action:

    <img src="http://dl.dropbox.com/u/31151399/Construct2/Plugins/joe7_loadJson_demo/images/actions.png" border="0">

    Expressions:

    getData(keyWordAsText,positionAsNumber) --> returns Text

    eg json-data is: "dog": ["Dog", "Cane"]

    getData("dog",0) --> returns "Dog"

    getData("dog",1) --> returns "Cane"

    readLoadingReturn --> returns Text

    show the status of loading: word is found, not found, success, error,..

    <img src="http://dl.dropbox.com/u/31151399/Construct2/Plugins/joe7_loadJson_demo/images/expressions.png" border="0">

    How to use the plugin - overview:

    <img src="http://dl.dropbox.com/u/31151399/Construct2/Plugins/joe7_loadJson_demo/images/overView.png" border="0">

    All suggestions are welcome and have fun,

    Joe7

  • Awesome!

    It works with the canvas2d-renderer too. <img src="smileys/smiley2.gif" border="0" align="middle" />

  • Kyatric: I recently found out that its funnier to avoid the 'Mouse' object completly - if possible.

    => using the 'Touch' object => Property: 'Use mouse input' - Yes

    => having both - touch and mouse-click (fallback when the browser doesn't support touch)

    Link to the tutorial Touch

    Pro: Making the whole project browser independent - eg - for the i-devices. Afaik i-devices don't support mouseclick-conditions on sprites,...

    Cons: Mouse over an object and Mousescolling are the only two conditions that are not given by the Touchobject - I think.

    Anything speaking against that or I haven't seen? <img src="smileys/smiley1.gif" border="0" align="middle">

  • Ok, i suppose you really mean - how to get and control instances of an object - and not events or something 'advanced' like groups. <img src="smileys/smiley2.gif" border="0" align="middle">

    link1 - manual - what is an object

    link2 - manual (instance variables)

    link3 - beginners guide

    (link4 - forum post - homing missile)

    (link5 - forum post - controlling AI)

    If you post your capx maybe somebody will look at your individual problem and could help you. <img src="smileys/smiley2.gif" border="0" align="middle">

  • But that only works for the monsters that's allready spawned, the monsters that spawn after the 60 second mark has the basic attributes and are unaffected by the change.

    Yes, that's for sure - it should work so. The monsters have after their creation the instance-values that are set in the object. You have to set the values for the instancevariables of them below the spawning in the eventsheet.

    quick example <img src="smileys/smiley2.gif" border="0" align="middle">

  • Savvy001: perhaps it was the wrong type of the variable - Text

    possible solution:

    --> set laps to int(Textbox.Text)

  • Hi Scott,

    1) You can do it this way. Usually a "layout" is not only a map - it contains instances of objects and the background(s). It's easier to manage when you use different layers.

    2) [Edit]When you only want to access variables from a different Eventsheet then you can use "global variables". Link - "Keeping score"[/Edit]

    Including: You can create an eventsheet - "Global" - and then include it in every other eventsheet - e.g in the with the layout associated eventsheet - "Layout". This is really powerful and you can save many "codelines".

    3) nothing special except a webserver or something similar like dropbox. When using some server side tasks then your server has to support it.. (php,database,..) <img src="smileys/smiley17.gif" border="0" align="middle">

    4) Actions are objecttype specific. (Some of them like set Size/Position appear with the same name/task at different object-types)

    eg - specific actions: button: set enabled

    sprite: set frame

    Behaviors are something that can provide behaviorspecific conditions,actions and expressions to many different object-types.

    eg - behavior drag drop: This behavior provides the action to enable this behavior or disable it. Abstractly: A behavior is an "object" to easily extend objects.

    5) ? - capx are "sourcefiles" <img src="smileys/smiley2.gif" border="0" align="middle">

  • Opera has nice debugging tools alrwady built in too.. for me all of these three together make the debugging nice.. i think where one fails the other(s) help.. ;)

  • me too. <img src="smileys/smiley2.gif" border="0" align="middle" />

    septeven - where we'll see the "CUSTOM ICON" (- different to the Plugin-Icon or not? - ) and which resolution for the icons is good for you?

    Is it possible and/or easier for you when we put a file description.txt in the pluginfolder and the app loads this file?

Joe7's avatar

Joe7

Member since 14 Oct, 2011

Twitter
Joe7 has 3 followers

Trophy Case

  • 13-Year Club
  • Coach One of your tutorials has over 1,000 readers
  • Email Verified

Progress

15/44
How to earn trophies