rexrainbow's Forum Posts

  • I will create another thread to release it.

  • Nice idea + 1

    It seems to affect to all instances in a kind of sprite. Maybe it could be a "plugin" better than "behavior", I thought.

    In this plugin, at start of layout, setup which kind of sprite will be sorted every tick. It could add some filters to select which instances to be sorted.

  • ...Leave the break off to process the remaining case conditions...

    switch (var)
    case 0:  // if var == 0
    case 1:  // or var == 1
    case 2:  // or var == 2
        .... do something
        break

    You could add "compare" condition like "system condition:Compare two value", to be used in expression's "OR" operation.

    if var1 > 3
    or var2 < 5
    or var3 == 7
        .... do something

    Uh, it is not the same with traditional "switch case". So it might be better to create another plugin. <img src="smileys/smiley9.gif" border="0" align="middle" /> Sorry.

  • Update

    Gonzdevour found a bug when re-enter layout.

    BTW, remember using "Action: Stop worksheet" when leaving layout.

    PS. Ashley, dose plugin has "onDestroy()" method like in behavior?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Actually, this is a demo of WorkSheet plugin.

    Game designer can edit the text file and add new sound to create new level.

  • Only method1 (traditional) can pass variable name = "Variable1", and value = 123. You can use "Action: Set parameter"

    Set parameter ["Variable1"] to 123

    Sorry, I am not really understanding your question. <img src="smileys/smiley9.gif" border="0" align="middle" /> Do I hit the target?

  • build a visual array editor... that could also load from a txt file... hmmm...

    CSV plugin could help you do this.

    There already has many plugins, and welcome to the plugins' world!

  • I often find that the majority of my bugs are occuring within the embedding of events and not the events themselves

    Most of code behind the event is in plugin/behavior. At folder \exporters\html5\plugins (or behaviors)

  • Function plugin had updated. Please remember download it again.

  • Update:

    Fix bug in "Action:Execute commands". Now, you can pass command string with null string parameter like "fn,".

    ("Action:Execute commands" is usually used by WorkSheet plugin)

    Thank gonzdevour to find this bug.

  • Yes.

    And a sprite can have more then one cooldown behavior, it means that character can have more than one kind of weapon with delay independently.

  • Sorry for my poor english.

    Cooldown in wiki

    ...One can think of cooldown as the reload time and firing rate of weapons. For example, a machine gun has very fast firing rate, so it has a very low cooldown between shots. Comparatively, a shotgun has a long reload/cooldown time between each shots....

  • Cooldown

    Update: 2013/04/26

    Uh, it is a controllor to maintain a cooldown.

    (Cooldown in wiki

    ...One can think of cooldown as the reload time and firing rate of weapons. For example, a machine gun has very fast firing rate, so it has a very low cooldown between shots. Comparatively, a shotgun has a long reload/cooldown time between each shots....)

    Download Timeline plugin first. (Cooldown is another timer application.)

    Sample capx

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

    "action: request a call".

    • if internal timer is not running, plugin will trigger the event "condition: on call accepted". Then start the internal timer with time-out to cooldown interval.
    • if internal timer is running, plugin will trigger the event "condition: on call rejected".

    A sprite can have more then one cooldown behavior.

  • Plugins are important in C2, it will change the look of events.

    And it's a good way to co-work with other game-designers, they don't need to learn how to write code first.

  • Thanks, gonzdevour.