Yung's Recent Forum Activity

  • megatronx, I have downloaded your file, and it works perfectly, no issues at all. You might want to check if you indeed downloaded the right one. No harm downloading the latest update again and reinstalling.

  • I've faced the same issue previously in some of my test capx, but it seems after reinstalling scirra, there's no longer such issue. Perhaps you could try that?

  • Thanks lunarray! That's pretty close to what I want, though I wanted it for reverse, kinda like Final Fantasy when you wait for your turn! But your example gives me a solid example!

  • I've tried it and it doesn't seem to work. Basically I plan to use EaseTween to do an energy regen bar thingy.

    I have two variables on a sprite, lets say Enemy.currentEnergy and Enemy.maxEnergy. I want to be able to input this two variables into the initial and target, so that once I call this regen thing, it will tween the value to my Enemy.maxEnergy variable.

    I was able to pipe in another variable to the Duration so I thought if it's possible to do that with initial and target. Then it would be easy to tweak the values by selecting the enemy sprites and not touch the event. Perhaps there's a better way to do it?

  • hi lunarray, is it possible to make the ease tween Initial and target to take another object's instance variable?

  • ramones: Thanks for the suggestion! After messing around with it, I finally managed to get the local variables to be static!

    Thanks a lot everyone!

  • One perhaps stupid question, why is this bit at the first needed?

    -> every tick

       ->set totalHealth to 0

    It seems like if it' not there, the value will do infinite loop. Wasn't the static variable implemented and were meant for this?

  • Yeah it worked! Definitely a mistake on my side.

    The text was supposed to sit AFTER these two events, if not I'll get the infinite loop.

    Thanks alot! This will be a great timesaver!

  • keepee: thanks alot for the suggestion! I actually tried that, but it seems to go into an infinite loop and kept adding to it continously.

  • Hi guys,

    I am facing a problem with instance variable, with families. Basically I have a bunch of sprites, and each of them will inherit a family variable, in this case, Health.

    What I want to do is then for each instance of the sprite under this family, I would like to customize their health variable, then add them ALL into another family variable called Totalhealth.

    For some reason I can't do this without specifically doing it one by one. Is there a smarter way to do this?

    I have provided a screenshot as well as the capx.

    Thanks alot!

    <img src="http://i3.photobucket.com/albums/y94/Velsthinez/privateVariable.jpg" border="0">

    https://www.dropbox.com/s/liwaob2e8w9xwni/privateVariable.capx

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You do not have permission to view this post

  • I checked your capx. Basically your cube is falling indefinitely. Try creating a temporary sprite as floor, and give the sprite the Solid behaviour, then you can jump once the sprite touches the floor.

Yung's avatar

Yung

Member since 7 Dec, 2011

None one is following Yung yet!

Trophy Case

  • 12-Year Club
  • Email Verified

Progress

13/44
How to earn trophies