ThisIsNoZaku's Recent Forum Activity

  • in event 7, where you add child ButtonText, you are not picking one instance of ButtonText

    Shouldn't the Loop pick instances as they are being looped over?

    Here is the result, as you can see the ButtonTexts are being placed correctly but their text, width and height is all taken from Button #0 there at the bottom.

  • I have a For Each loop where I'm picking every instance of a family, programmatically adding a sprite font named ButtonText as a child to the Buttons and setting some properties on the ButtonText based on properties of the button parent.

    The problem is that when setting those properties, it sets the properties for ALL ButtonText instances, using the properties of the FIRST Button, instead of using the values of the instance being looped over and setting the properties of the child of that instance.

    Tagged:

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thank you very much calminthenight, that was it! Adding TriggerOnce makes it work properly.

    I thought that changing the boolean value in the action would do the same thing but I guess not.

  • I'm trying to use a Tween to slide a ui element into view from off screen, then back out again. However, I cannot figure out how to get the Tween to perform the second part right.

    I am checking if a boolean has a value and starting the tween if it does, then toggling the boolean.

    I created a tween action which correctly moves onto the screen. However, despite setting the "ping pong" flag to true, the element remains where it tweened to and does not animate back.

    Another attempt I did was to initiate the tween, use a Wait and then try tweening back, but this causes the element to jitter as the two tweens seem to fight for control.

    I've tried using 2 different tweens, 1 in and another out, started when the first completes, but it seems like the first tween doesn't ever complete and fire the event. I also tried adding "destroy on complete" to the tween for testing but the tweening element is never removed.

    Also, looking at the position in the debugger, even though I have the duration of the tween set to 1 second, I can see that the position changes for around 15 seconds, by my manual count, and never actually reaches the specified x value of 64, instead setting around 63.999999999999.

    Tagged:

ThisIsNoZaku's avatar

ThisIsNoZaku

Member since 10 Feb, 2021

None one is following ThisIsNoZaku yet!

Trophy Case

  • 3-Year Club
  • Email Verified

Progress

4/44
How to earn trophies