rexrainbow's Forum Posts

  • It's my pleasure.

    I am thinking about a control capture that allow user configure control from keycode, mouse, touch...

    Like this plugin in C1.

    The architecture of C2 is different with C1, so that it's may a little difficult. (Oh, I just thinking... <img src="smileys/smiley36.gif" border="0" align="middle">)

    EDIT: I delete the test file since you had a copy now.

  • The reason why I have not implement the key-scan in behavior plugin is, I think the key-scan is more general.

    Put the key-scan into "Plugins" is better in "Behaviors", like yours.

  • 8directionMP, platformMP

    No, I mean to using an action "Start to scan" to activate the scan.

    After that, the key-down will trigger "Capture key".

    Then using expression to get the keycode.

    I fix the plugin, you can download here.

  • It's seems "keydown" will always trigger condition "Capture key".

    Adding an action "Start to scan key" is better. "Capture key" will be triggered once after a "Start to scan key".

    Plugin 8directionMP and platformMP have an action to allow user set customize control by keycode.

    Maybe these can work together.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • > I think the easiest way to implement this is a special kind of "OR block" that runs if any of the conditions in the block are true.

    What about calling it ANY?

    Good idea!

    It's hard to implement "OR" condition in plugin at current framework -- it's an "AND block".

  • Good question!

    The operation of condition block is --

    1. execute from the 1st condition

    2. if 1st condition is true, then execute 2nd condition

    3. if 2nd condition is true, then execute 3rd condition

    4. ... until one condition is false, then this condition block is FALSE

    It's hard to implement "OR" condition at current situation.

  • Oops, find another bug at "Is extra control down", please update again.

  • Branch

    This plugin provides branch like "if", "else if", "else" in condition block.

    See example for more detail.

    Screen shot of example:

    <img src="http://i1081.photobucket.com/albums/j352/rexrainbow1/file.png" border="0">

    Follow these two rules to use branch plugin:

    1. add "if", "else if", "else" at the first condition in condition block.

    2. add "break" at the last condition in condition block. (condition block with "else" can ignore "break")

    I thought C2 will provide branch in the future version. This branch plugin is just a substitute.

  • Sorry, I update these again. If you catch a bug, please let me know.

  • Update:

    Fix a bug about extra control tirggered.

  • Thanks, I had found another space. Please download it again.

  • Maybe these plugins can help you.

  • 8directionMP

    (Update: 2012/02/23)

    platformMP

    (Update: 2012/02/23)

    These two plugins are extended from 8direction and platform. I only add two features.

    1. Set control by key

    • allow to reconfigure control key in 8direction/platform behavior.

    Each instance can has it's own control key, so multi-player with a keyboard is possible.

    • action: "Set control by keycode" allow set key by keycode.

    2. Set extra control by key

    • allow to add extra control key. See example

    add "shoot" control, triggered by "space" key.

    • action: "Set extra control by keycode" allow set key by keycode.

    And some expressions to get current control key.

  • As you know, scirra add rotate behavior in r64, and make a name collision with my plugin. It's my mistake.

    To prevent name collision in the future version, I had change my plugin-id, and made a little tool to help user changing the plugin-id in caproj file.

    The plugin-id changing is list below:

    • "MyDragDrop"->"Rex_DragDrop"
    • "MoveTo"->"Rex_MoveTo"
    • "Rotate"->"Rex_Rotate"
    • "MyDate"->"Rex_Date"
    • "MyTouchMouse"->"Rex_TouchMouse"

    First download plugins with new plugin-id. (download)

    and put them into plugins\ or behaviors

    Second, the plugin-id can be read in caproj file (Save as project), so you sould save capx to caproj. (or backup capproj)

    Third, download plugin-rename tool from this link.

    open plugin_rename.exe, click menu "File"-> "Open" to select the caproj file. Then the transfer is done.

    Pray, and reopen cap file. Good luck.

    Plugin-rename tool is tested by gonzdevour, thanks.

  • Kyatric

    I use chrome to test gonzdevour's game. It's very smooth in my computer.

    It seems the performance in firefox is very different with in chrome.