HaydenF's Forum Posts

  • Hi there again,

    I was just wondering if anybody had expirence with the function as described as abouve.

    Essentially, I have a few objects that I can hover over and click. Not all can be clicked mind you. when they are hovered over they change colour with the set colour effect. When one is clicked. They are all destroyed and then recreated with new data. This is when the problem occurs. Essentially all the objects that are then subsequently created have the set colour effect enabled. It is only after a mouse move of the targeted object do things go back to how they were.

    All the best,

    Falzon

    Tagged:

  • You need to have one default instance of this SpriteFont on any layout. I usually create an unused layout "Assets" and keep all such instances there.

    Also, try running the project in Debug mode and see if the instance is really created.

    Thanks for that.

  • Hi there,

    I have a sprite font that I am creating on a function call, but, if no sprite font of the same type exists already within the scene, the sprite font does not appear.

    I create a little test to try and get things going, but I still am stuck.

    In the test, at the start of the layout, I creating the object,

    Set the text

    Set the size

    And set it to be visible.

    I honestly do not know what I am missing.

    All the best,

    Falzon

  • Found the answer... I was just being silly.

    you have to write /NODE/@ yourcode

    rather than

    /NOD plus encapsulate everything in a string command

    string(everything goes here)

    All the best,

    Hayden

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hello all,

    I have been having a blast with construct 3. Such a fantastic engine for an artist with a little bit of coding knowledge.

    I was just wondering I would go about getting an XML attribute as a string.

    Let us say the XML looks a bit like

    <Terminal1> <nd nm = "START"> <txt>text text text text text text? </txt> <ch txt = "blahblahblah">Status</ch>

    So instead of ready the Status, I would like to read the "blahblahblah as a string

    What I have got now is.

    is a set text with the text set to:

    XML.StringValue("string(/Terminal"&Param1&"/nd/chTxt)")

    Thank you so much in advance.

  • Hi all,

    I was just wondering if how to have and and and or within the same event. For example.

    if button1 && button2 == Down || button3 && button5 == up {

    -----------;

    }

    Thank you so much,

    Hayden

    Tagged: