PratikIngle's Forum Posts

  • 5 posts
  • You should use a family instance variable, instead of an object one. This way you could just do the following:

    > Pick FamilyGrains by UID | Set TextObject.Text to FAmilyGrains.V_Name
    [/code:3e3xzb1e]
    

    Thank you bruno

  • Both Set text to Sprite.V_name and Set text to str(Sprite.V_name) should work.

    If they don't work, maybe a wrong sprite instance gets picked or there is some other issue with your code.

    Run your game in Debug Mode (ctrl-F4) to check how many Sprite instances you have and to see their instance variables.

    You were right, it was picking wrong instance. Thank you for the quick response

  • set text to ""&sprite.V_name

    Thank you for the quick response.

  • How do I set the stet text of a Text by using the UID of an object from a Family?

    I am having a Family Grains with instance variable V_Name(type Text). Grains family is having many sprite(objects) each having instance variable(V_Name type text) with a value. I want to set the text of a Text object with the value of instance variable of objects in the Grains Family.

    Note: Grains Family instance variable V_Name is blank.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • How do I set text of a Text object to value of an instance variable(type Text) of a Sprite?

    I am having a Sprite object with instance variable(type Text) V_name having a value. I am also having a text object in my game. I want to set the text of Text object with the value(string) in V_name. I tried "Set text to Sprite.V_name" and "Set text to str(Sprite.V_name )".

  • 5 posts