How do I use the text of an instance within a parameter?

  • Hi! Can anybody help me?

    I need to use the text of an instance within a parameter.

    I have an 'sprite' with an 'instance' called "inst" and with the text "example" placed on it.

    I Need to call a function that has 'dictionary.Get("any text here")' but like 'dictionary.Get("Parameter(0)")' and the "any text here" or 'parameter' is the text of the 'image' 'instance'

    but I can not seem to put the 'instance' as text, if i put 'dictionary.Get("Parameter(0)")' or 'dictionary.Get("sprite.inst")' the function will search 'Parameter(0)' or 'image.inst' like text form instead 'example", the text in the instance.

    Anyone in good heart would have a solution to put an text of a instance in a parameter, like above?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Try losing the quotation marks in the parameter brackets - eg dictionary.Get(sprite.inst)

    Putting it in quotation marks will make it interpret that as a string

  • Try losing the quotation marks in the parameter brackets - eg dictionary.Get(sprite.inst)

    Putting it in quotation marks will make it interpret that as a string

    I've been breaking my head for hours and I've researched and found nothing, I think I need to sleep

  • Haha no worries, we've all done it

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