rexrainbow's Recent Forum Activity

  • Soybean

    Yes, the "expression:TileUID" only index to tile (z=0 on board object). But user could use the tile uid to pick the chess standing on this tile. (Actually, there two expression -- "expression:TileX", "expression:TileY" which might help user to get chess more easily. For example, get chess uid by "expression:XYZ2UID(TileX, TileY, 1)" )

    Or user could save the symbol at instance variable of tile instance when moving chess.

    "Tile" (z=0) is just a base line -- each chess need to stand on a tile (z=0).

  • RandomPlus by cow_trix

  • I would like to make another version of sprite bank for board system (might be named chess bank), but still have not enough time.

    Does any one use sprite bank to save chess(sprite instances) on board plugin?

  • boolean

    C2 engine stores instance variables in a list.

    It is hard to keep compatible if user add or change the order of instance variables.

    For example:

    Save the instance variables

    x: 10
    y: 20

    to JSON will be

    "[10, 20]"

    Now user insert another instance variable

    i: 3
    x: 10
    y: 20

    The JSON should be "[3, 10, 20]".

    or

    x: 10
    i: 3
    y: 20

    -> "[10, 3, 20]"

    Any suggestion for these situation?

  • Update:

    Add "condition:On each object", "expression:ObjGroupName", "expression:ObjGroupWidth" , "expression:ObjGroupHeight", "expression:ObjectName" , "expression:ObjectType", "expression:ObjectWidth" , "expression:ObjectHeight", "expression:ObjectX" , "expression:ObjectY", "expression:ObjectProp" to read "object layer" into event sheet.

    "condition:On each object" will be triggered when executing "action:Create tiles", or "action:Retrieve tile array" for each object. Then use these expressions to get information of (each) object.

    Capx

    Here it is.

  • Work in progress. I had read "object" into plugin.

    Now I need to add a condition and some expressions to fetch information at event sheet.

    BTW. The "object" could be a "trigger area". It might be a useful things in my board system. I would like to create an "area" plugin to handle the logical "trigger area".

  • Equinox80

    Hum... do you mean that you might want to get tile image at runtime without stored in sprite in C2?

    You might use "Action: Retrieve tile array" + load image from url

    Action: Retrieve tile array:

    "Action: Retrieve tile array". This action will not create any instance, it only trigger "Condition:On each tile cell" for each available cell. You can get properties stored in layer/tileset/tile to create instance manually.

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

    See test_TMXImporter_adv.capx in first post.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Uh, I forget to say: user should update instance group.

  • Joannesalfa

    Uh, sorry, I forget to notify that user need to update grid move behavior.

  • Update:

    Add filter document.

    Advance: Filter

    The filter feature could re-assign the target instances got by plugin in "action:Get moveable area".

    Get move-able tile without any chess standing on it

    For example, if designer want to get the move-able tile without any chess standing on it. Add "condition:On filter", and set the filter name into "action:Get moveable area". Use "action:Append filter result" to re-assign the captured UID of instance under "condition:On filter".

    In this capx, call "action:Append filter result" only if (expression:TileX, expression:TileY, 1) is empty. So that the tiles with chess standing on it will not be selected.

    BTW, the filter could not only select tile, but also could be used to select chess to get the chess target. For example, get the attacked targets.

  • Update:

    [Plugin] Board

    Add "condition:On chess kicked". It will be trigger when the chess had been kicked from board when executing "action:Add tile", "action:Add chess", "action:Move chess", since a (x,y,z) only allows one chess.

    For example, running "action:Create chess" at (1,1,1) twice, the first chess will be kicked from board.

    [Behavior] Grid move

    If set "Property:Force move" to "Yes", grid move behavior will not check "solid" and logic overlapping. And the z index of chess will be changed when overlapping to other chess (to avoid overlapping), this feature could make the chess "cross" other chess with the same z index.

    For example, there is a chess at (1,1,1). Now another chess want move from (0,0,1) to (1,2,1).

    • Finding moving path by slg_movement plugin
    • then moving chess by grid move behavior with "Force move" mode.

    The possible moving index might be

    (0,0,1) -> (1,0,1) -> (1,1,"#30") -> (1,2,1)

    Grid move behavior will change z index when logical overlapping to other chess at (1,1,1). So no chess will be kicked after this moving.

  • Update:

    Now console.log message will only be shown when preview mode.

rexrainbow's avatar

rexrainbow

Early Adopter

Member since 4 Apr, 2011

Twitter
rexrainbow has 84 followers

Connect with rexrainbow

Trophy Case

  • 14-Year Club
  • RTFM Read the fabulous manual
  • Email Verified

Progress

16/44
How to earn trophies