99Instances2Go's Forum Posts

  • Is the origin the same in all animation frames ?

  • Not intended to use with 'on create'. Just as a standalone event. This will always write the last created one in the textbox. (sorry was evident for me)

    If you need to use the 'on create', then use what blackhornet suggested, works because the pick by UID always works, no need to wait till the object is actual added to the IID list (pickable).

  • This a direction you can continue from ?

    https://drive.google.com/open?id=0B1SSu ... VAtTW55YkE

  • Pick all Sprite

    Set TextBox as Sprite(-1).name

    ?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • The ReturnValue is not really set on that exact moment that the action is used. The ReturnValue is set on the moment of 'leaving' the function. And available outside the function, it is then by defenition the return of the last called function. It is zero when the Set ReturnValue in the last called function is not used.

    So, again by definition, ReturnValue in 'its own function' is never refering to its 'own' ReturnValue.

    As blackhornet suggested, use a local variable to evaluate.

  • Way i understood functions so far .... Function.ReturnValue has only a meaning outside the function, and it is the return from the last function call. Its gets set on 'leaving the function'.

    If i am correct, then you can not use it that way. Have to make a local variable and, evaluate that one, and set the return based on the outcome.

  • Can i see the .gif ?

  • Yes, familys will help, for sure.

    But. Dont use differend objects. (for now) Use the same sprite with different animations (or frames). Learning that practice will give you joy in the long term, licensed or not. Instances are so much easyer to handle.

    If you use differend objects you will at some point (in the nearby future) have no other choice then to buy construct. Because 4 different objects means 4 times more code, and the free version has a limit in amount of code lines.

    Personal (just an opion) i think that you should buy Construct when you are ready for it, not when you hit its free limits while still learning it. Buying it should be a gift to yourself, one you are very happy with.

  • Is this what you look for ?

    https://www.dropbox.com/s/x9mfh96q04yc3 ... .capx?dl=0

  • Any way. Post you capx and promiss to fix it, in return.

  • Okay, i learned something new. Thank you for pushing my dumb nose on it.

    I learned: Construct will only set the animation if the new animation is not allready the current animation, or when the current animation stopped playing.

    Wish someone told me that before.

    So in your case, the animation "takehit" not playing means that there was another animation playing than "takehit". Lets call it "Mystery".

    So next tick "Mystery" got set playing again and in the same tick also "takehit". Over and over again.

    So ive been talking bullshit a while now about animations, and i never got corrected. I appologize for all misinformation all above posts.

  • Pong AI is 1 line of code ?

    https://www.dropbox.com/s/09iq70xcj155t ... .capx?dl=0

  • You can edit the title of the first post and add [SOLVED]. Most dont bother.

  • Afraid it is the other way arround. You really need to read (10 times) the link posted by oosyrag, just to understand ANY tutorial. And that is a Golden suggestion.

  • I dont understand how your 'idle' can play.

    If you do 'as platform is on floor and not moving' set to idle ....

    The two conditions that try to catch that, are always true, unless there is action taken. (an action like moving the player) If you dont use 'once while true', also the idle should not play (unless it is only 1 frame).