rexrainbow's Forum Posts

  • lunarray

    Done.

  • Update:

    Fix code following with LiteTween modified.

  • CSV2Array, CSV2Dictionary

    Parsing csv string, then put them into an array object or dictionary object.

    Capx: CSV2Array

    100
    200
    300
    A,10
    B,20

    See the data with debugger.

    Also, these 2 plugins had property "Eval mode" just like csv plugin. So that user could pass number or string type data.

  • Update:

    Add property "Eval mode".

    If the property "Eval mode" set to "No", all data will be treat to be string.

    If the property "Eval mode" set to "Yes", the data will be eval, so

    • number: 10
    • string: 'hi'
    • javascript function: Math.random()

    capx: eval mode = Yes

  • lunarray

    Great, I had not compare all variables between tween and liteTween, thanks for this fix.

  • Update

    I try to add a table watch and table editor in the debugger.

    The test capx.

    The csv table

    ",a,b
    c,0,0
    d,0,0"

    And the value will be changed at event sheet.

    Debugger of csv object:

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

    At debugger, user could

    • Change the page name by editing the entry "Page"
    • Change the col name by editing entry "Col"
    • The rows and the values will be shown if the "Page" and "Col" is valid.
    • Change the csv table by editing the entry of "row-xxx".
  • broprog

    Try to use Hash table plugin

  • Joskin

    I'm not sure, you might ask it at LiteTween thread.

  • lunarray

    This code could get instance of other behavior.

    This code could call set parameter of effect.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I had made Tween2Effect behavior to pass the tween value into effect. It could extend the usage of tween behavior.

  • Tween2Effect

    (Updated: 2014/01/29)

    Passing tween value into (this sprite/current layer/current layout) effect to control the result of effect.

    demo capx

    Usage:

    1. add tween behavior , user could use lite tween or tween (the older version of tween behavior). Then add tween2effect behavior under tween behavior.

    2. configure tween behavior, user need to set tweened properties to "Value".

    3. configure properties of tween2effect.

    Name: the name of controlled effect

    Index: the parameter index of controlled effect

    In the demo capx, Index to 3 will pass the tween value into "R Replace" parameter.

    Target: set to "Instance" to control this sprite.

    Now user could control the effect by setting the tween behavior without adding any event.

    Each tween2effect will need to add one tween behavior above that. In the demo capx, user need to add 3 pairs of tween and tween2effect

    - tween
    [ul]
    	[li]tween2effect[/li]
    	[li]tween[/li]
    	[li]tween2effect[/li]
    	[li]tween[/li]
    	[li]tween2effect[/code:1jci08yr][/li]
    [/ul]to control the "R Replace", "G Replace", "B Replace" at the same time.
    
    Set the property "Target" to "Layer" could control the parameter of the effect at current layer, since the behavior will be put in a sprite (or a rex_layer object) and this sprite will be put in a layer.
    Set the property "Target" to "Layout" could control the parameter of the effect at current layout.
    Make sure that the effect had been added in the target (layer, layout, or sprite).rexrainbow2014-01-29 04:07:46
  • Ashley

    Since the key of initial loading is file "offline.appcache". It might be better to have an exported option in C2 editor which could turn on/off the file "offline.appcache" (have it or not, maybe).

    The action of loading asserts from server manually is another issue. I like it, too.

  • jayderyu

    You could create 2 layouts, put 2 sprite for each layout. Export and run it at browser, see the loading info at console, these 2 images will be loaded (AJAX request) in the beginning.

  • As we know, C2 engine will load all images from website when open the index.html.

    But the loading-time might not be acceptable. For example, there has a background image for each layout.

    So my request is, the engine might have an option to load the necessary image when go to the layout. It means, there are some AJAX requests for each layout begin, of course.

  • farieh

    You could use more then one repository tool for each C2 folder.