Update:
Fix bug at setting "auto scale" to "Yes"
Update sample capx and demo to support resizing smoothly.
Sorry, I don't know. I guess there might be a callback for this event.
Pode might know the answer.
Drag scale
( Dependence: touch wrap plugin)
Update: 2013/04/02
Set size by dragging two touch points.
This behavior could not be used on pc since there is only one touch pint (mouse).
Demo
Capx
<img src="http://i1081.photobucket.com/albums/j352/rexrainbow1/screen-1_zpsfcd35c5a.png" border="0">
Use "Expression:Scale" to get the scaling. The calculation of this expression is
(length between two init dragging points)/(length between two current dragging points)
Set "Auto scale" to "No" at properties table if user does not want change the size of sprite. Only use it to get the "expression:Scale"
This demo shown the changing of this two dragging points and the "expression:Scale"
(user need to install Canvas plugin to open this capx)
—
Get all of distance between move-able tiles and target tile, then pick the minimum one.
I had not make a plugin for this, maybe someday.
Develop games in your browser. Powerful, performant & highly capable.
suntank
Call "Action: Setup Sync Function" before using Sync-Function plugin.
I will add some alert message for this error.
Capx: Mini town
I put all of these sample capxs into this link
Use My plugins repository v2 to get all of my plugins more easily.
"make enemies "autoselect" the tile that would be closest to one of the player chess"
The logic might be complex, just like player to select the moving target. "closest" is one of possible condition.
Anyway, I will think about it when I have time.
lahirug87
I'm not sure, you might try it without full screen.
Update
[Plugin] board
[Behavior] chess
[Behavior] grid move
Thanks, I got it.
Another solution is turn off minify.
septeven
Using "this.inst" to get the reference of main object in behavior.
Then use this reference at "apply"(or "call") with action.
For example,
github.com/rexrainbow/C2_plugins/blob/master/behaviors/rex_text_typing/runtime.js
cr.plugins_.Text.prototype.acts.SetText.apply(this.inst, [param]);
Member since 4 Apr, 2011