[Plugin] Nickname, [Behavior] Nickname

0 favourites
From the Asset Store
The I18N (Translation) is a Construct plugin created to translate text in game.
  • I'll give a try, thank you

  • Update:

    Add Expression:LastCreatedInstUID

    Change properties of this created instance

    Sample capx

    Get this created instance UID by "Expression:LastCreatedInstUID". User might change properties of this instance by rex_uid2prop plugin. Only common properties (x,y,angle,opacity) could be assigned.

  • I installed both plugins and tried your sample file, but it gives me this :

  • Kan

    Sorry, test OK in my side.

    I upload rex_nickname plugin and rex_uid2prop plugin again.

  • I didn't have the latest version of the "Nickname" plugin. My wrong, sorry. It works fine now.

  • Hi rexrainbow,

    [attachment=0:12us4fas][/attachment:12us4fas]

    assigning str(player.IID) to an instance variable works, but assigning to a nickname doesn't (it sets no value).

    Any idea why ?

  • Hi rexrainbow,

    [attachment=0:2afplt0p][/attachment:2afplt0p]

    assigning str(player.IID) to an instance variable works, but assigning to a nickname doesn't (it puts no value).

    Any idea why ?

    It would assign a nickname to a family type skin. Do you want to assign nickname to each object type in this family?

  • Oh, right. I didn't think about that. I thought the "skin" used on this action was the skin selected from the condition, not the entire family.

    Thank you for your reply.

    edit : that's weid but my picture doesn't show up anymore. I just want to be sure you saw it before writing your reply

  • le Canapin

    Yes, I had saw that.

    This plugin aims to use an input string to create an instance. So it might be rare to assign nickname impliedly.

    If user still want to assign nickname impliedly, it could be done by using nickname behavior with "Mode" property sets to "SID".

  • Thank you for the explanations.

  • Testing this plugin atm and I don't seem to understand why my method isn't working as it's supposed to. I want an array to be filled with 2 different nicknames. After that, I want to create sprites with the nicknames in the array. Both Sprites have the Nickname Behaviour and the mode is SID. Any help is appreciated. Thank you

    Edit: I had to assign nicknames first to make it work. But why? I thought the SID mode takes this job so I dont have to do it manually?

  • Fireche

    SID would be assigned automatically, see this sample capx.

  • Try Construct 3

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

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

    is there a way to make a action reference another object via nickname

    like..

    on create of object family
    {
        if object is Asteroid Large
        {
             Nickname = Asteroid Large
             Sub Nickname = Asteroid Medium
        }
        if object is Asteroid Medium
        {
             Nickname = Asteroid Medium
             Sub Nickname = Asteroid Small
        }
        if object is Asteroid Small
        {
             Nickname = Asteroid Small
             Sub Nickname = Asteroid Null
        }
    }
    
    and then on collision
    if Asteroid Family Collides with bullet
    {
         Repeat 2 times With Nickname
         {
                 Create SubNickName
                 SubNickName.Angle = NickName.Angle
                 Nickname.Angle = Nickname.angle - 90
         }
         Then
         {
             With NickName Destroy
         }
    }
    [/code:2mwu3sm2]
    
    Edit: also sorry for the bump
    Edit2: ingore this post I realised I just need to ask how to use an array
  • rexrainbow

    ok Is there a way to address a object name(not nickname) by a string

    and address its events, actions, and expressions with that string?

    If not could you add that feature?

  • rexrainbow

    ok Is there a way to address a object name(not nickname) by a string

    and address its events, actions, and expressions with that string?

    If not could you add that feature?

    I am not sure what you want. Object name will be changed after exporting with minify option, so that I added this nickname plugin to address object type by another alias string. And it is only useful while creating instance by an input string.

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