mchulet's Forum Posts

  • How to get name/value pair values from the JSON file, right now it seems to work with only arrays ?

    ex: {"Name": "GoodName","Email": "goodname@goodone.com","ListName": "Lesson 24","PassingGrade": "85"}

    -Thanks

  • ramones sorry I overlooked that you had used Families to combine all Sprites in the project.

    -Thanks

    Mahesh

  • Thanks ramones

    ramones Thanks for the example, but if you look at it this function hideObject gets tied for a specific Sprite object. What I want to do is call hideObject for any Sprite. Also want to void checking in the function which sprite this function has been called on.

    Something like:

    SpriteA -> Call hideFunction(IID)

    SpriteB -> Call hideFunction(IID)

    SpriteC -> Call hideFunction(IID)

    In hideFunction

    Function.Param(0).X = -100;

    Function.Param(0).Y = -100;

    -Thanks

  • ramones would it be possible to provide a sample capx, I am actually confused in making this work in C2 cause I did not find any arbitrary variable setter action.

    -Thanks

  • Try Construct 3

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

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

  • Hi,

       I need to make a common function which would set X,Y properties of any object passed to it.

    ex: function hideObject :(Action) Set Function.Param(0).X to -100

                             (Action) Set Function.Param(0).Y to -100

    I am not able to find any way in which I can access & set function param values in actions, I can only see System 0> Set Value of variables not Object.variable ?

    Your help would be highly appreciated...

    -Thanks

  • Thanks