[PLUGIN] Instance Group

0 favourites
From the Asset Store
The I18N (Translation) is a Construct plugin created to translate text in game.
  • Document, plugin and sample capx are included.

  • so powerful!!!

  • Sorry, I put wrong image in the first thread. Fix it.

  • I was working on a node-based path plugin, but I may just try something with this instead. Thanks!

  • unlikely

    I made this plugin for storing/retrieving a group of instances in event sheet. It could be an input/output for other plugins.

    For example, a kind of "filter" (plugin) will get instances from a (instance) group, do some computing, then put the result in another (instance) group.

    So that user could get the result group to do their jobs in event sheet.

    I'll need to define an api for this purpose.

  • Yes, I see.

    I'm still trying to figure out the best way to implement a path (not pathfinding, just path) system. I have started working on a plugin, but I am not sure I can get it to do exactly what I want. I'm also not sure precisely how to implement it, whether it be simply an array of points that also contain information about smoothness of the path there and relative speed adjustments, or something more simple.

    I guess ideally I would have a path object with nodes that define the path and how the path is parametrized... I could ask the path for the position at a specific "time" along the path--a parametrized curve.

    Sorry, I don't know if any of that ramble made sense, but that is my goal.

  • unlikely

    I made Zigzag behavior before. It used a LOGO-like script to describe a path, like "F 100;R 60".

  • Ah, yes, that looks fairly close to essentially what I'm after. It's not exactly what would be ideal in my situation, but it will certainly be helpful--I'll check it out. Thank you! <img src="smileys/smiley1.gif" border="0" align="middle" />

  • Nice Plugin rex...

  • Update:

    • Add missing expression description.
    • Add "private group" feature to simulate private group of instance. Using "expression: PrivateGroup" to get private group name when getting a group. See the first post for more detail.
  • Update:

    • Fix bug on "Condition:UID in group"
    • Change implementation of "Action:Clean" to decrease GC
  • Update:

    • Add version to 1.0
    • Add "action: Slice" to copy or pop group slice to another group. ex: group B = group A[3:5]
    • Add "action: Pop one instance" to Get or pop one instance from list by index into SOL. ex: inst = group A[0]
  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • ryuzaki01

    Thanks for using instance group plugin.

    There are two actions which can pick instances.

    • "Pick instances": it can pick a kind of instances in one group. And you can keep these instances in group or not (move/pop these from group).
    • "Pop one instance": it can pick or pop one instance by index, since group is a list structure, too.

    After picking instances, you can use them in event sheet to set their behavior.

  • Update

    Add an action to assign random generator.

    This random generator could set a seed, so that it could control the result of shuffle.

    It might be useful when using in mutli-player (network) game.

    capx

    Dependence:

    [plugin]

    random generator

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

    You might run capx 3 times and see the result will be the same.

    Then toggle the first and second actions to using default random and see the result will be changed every time.

  • Update:

    The same, remove jQuery call.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)