—
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/C2Plugins/blob/master/behaviors/rex_text_typing/runtime.js
cr.plugins_.Text.prototype.acts.SetText.apply(this.inst, [param]);
I found that canvas plugin might have minify error in r123.2. The export of html is passed only if disable minify.
Just put a canvas object into layout, then export it.
I could open (to see the layout editor & event sheet) it with my current debug panel plugin.
Vati-nyan
Sound nice, what's the problem? Do you mean select the enemies in the range of 4 cells (for example)?
Using chess bank to save/load chess on the board.
FredQ
I fix the bug in drag&drop2 behavior, please download this behavior again.
What's the rule of get enemy chess? Is it picked by slg_movement object?