edisone
Okey.
I try to clamp the velocity of physics object for the next behavior, hah.
Sorry, I could not reproduce this problem. (I'm using r93, too)
Currently, the sample capx only need download gravitation behavior.
Update:
Add "Delimiter" setting at properties table, and add "action:set delimiter". This could change delimiter from "," to other character.
7Soul
Try to set Delimiter = ";" at properties table by latest CSV plugin, it could parse
;dmg;range item;1;2
now.
Sorry, CSV plugin uses "," to split items, I will try to add action to change this setting.
Or you could replace ";" to ",". It should work.
This is a method to call plugin's action from behavior, so that behavior could extend plugin by calling plugin's action.
cr.plugins_.Text.prototype.acts.SetText.apply(this.inst, [param]);
This could call other behavior's action. It's also useful, too.
cr.behaviors.Physics.prototype.acts.ApplyForceToward.apply(this.physics_behavior_inst, [f, px, py, 0]);
Soybean
Pode is a CSS master, you might search his plugins.
Gravitation, includes sample capx file.
Demo
Speed clamp, angular speed clamp, includes sample capx file.
Uh, demo link is the same as plugin's.
valkyriegames
wgfunstorm 's Log Text & Objects to Chrome Console is another choice.
Add expression: ColName, RowName to get col name by number.
—
You might use these new expressions to get a col name, or using "condition:For each col" to get each row name in order.
Develop games in your browser. Powerful, performant & highly capable.
Yes, to open my sample capx, you need
Touch Wrap plugin
Drag & Drop2 behavior
Boundary behavior
and
scrolling behavior
You might build your own scroll-bar without my plugins.
crhatfield
Just like Soybean said. Using "for each item" after "on create" might be strange -- hash table is empty when creating.
Uh, I could not implement XPath. I mean, travel all leaf nodes in a root.
For example:
{ "equip":[ { "type": "weapon", "id": "SWORD-0000", "amount": 1 }, { "type": "material", "id": "ORE-0000", "amount": 10 }, { "type": "potion", "id": "HEAL-0000", "amount": 20 } ] }
Will get all string and number value if root is ""
key="equip.0.type", value="weapon"
key="equip.0.id", value="SWORD-0000"
key="equip.0.amount", value=1
key="equip.1.type", value="material"
key="equip.1.id", value="ORE-0000"
key="equip.1.amount", value=10
...
Uh, thanks. It might be useful if designer want to edit tile map in C2 editor.
Would it be useful if hash table have a tree traversal for "for each item"?