xoros's Forum Posts

  • I'm going to try it now.

    Just tried the plug-in and I can say, that I will be using it heavily, but I found one issue: if you try to get a nickname from a family member, it always gives the nickname of the first member. Here's the .capx to try it:

    dropbox.com/s/v940jpk9kt72cn1/getNicknameFromFamily.capx

    Cheers

  • Thanks, man - that will be extremely useful.

  • That's great!

    If I understand you right, there could be following conditions for picking up instances:

    1) pick all instances with a certain tag: tag>all

    2) pick specific instances (e.g. by ID or instance variable) with a certain tag: tag>ID or tag>variable

    Looking forwar to test your "Nickname plugin".

  • Cool, that will be usefull!

    I'll try to define a requirment:

    I think it will make sence to implement it as a behaviour, which can be added to basic object types (like families, sprites, tiled backgrounds, text etc.) Methods of the behaviour could be accesed through actions dialogue. Tag could be defiened in the behaviour properties or by an action.

    In the actions menu there are 3 methods

    1) Create object by tag

    2) Set objects tag name

    3) Pick objetc by tag (if it makes sence)

    rexrainbow, thanks for your help

  • Great, thanks man!

  • For example, extending sprite class with some custom "methods", which could be accessed through events and actions. As far as I understand behaviour system has exactly this function. May in the feature it will be possible to write nested event logic with visual editor inside an object type, which could be accessed like a method.

    Another example is defining a new/custom class type. But again, behaviours and plugins are the answer.

    May be there are some good practices, how to structure event logic, so it resembles some OOP concepts.

  • Hi there,

    just wanted to read your opinions on OOP possibilities in construct. What I miss right now (or don't get) is the way of defining custom objects in construct without using plugin API.

  • So basically this plugin would have its own method "create object by tag"?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Oh, nice!

  • In this topic:

    scirra.com/forum/topic57078.html

    I asked if it's possible to solve the issue with a third party plugin? May be anyone can comment on this?

  • vtrix

    seems to be a good work around, but I think it will not always work if you would have like 50-100 objects

  • Will it possible to use this plugin for quad board (classic match 3)?

  • You have to write a condition for each enemy type and create exactly the object type (family member) of the enemy if the condition is met. But than you can access them through family object.

    if varEnemy="Goblin"

       -> create object type "Goblin"

    if varEnemy="Troll"

    -> create object type "Troll"

    It's a pity you can't do it with a variable of the family object. There are also some workarounds with different animations for different enemy types:

    scirra.com/forum/topic57078.html

  • I'm experiencing some performance improvements too. It feels smoother now.

  • Is it possible to solve the issue by developing a plug-in/behavior which will enable creating object types by name? E.g. it could be a behavior with the property "Name", which could be accessible through object creation method.

    Or it could be a plug-in "Object", which can hold any object type (Sprite,Text, Button etc) and has it's own object creation method with "object name".

    I have a limited JS Knowledge and don't know anything about Plugin API, but if it's possible I will work into it.