Yung's Forum Posts

  • Currently tested it on a few android Devices and it seems I am getting an average of 30 fps, where compared to PC, I am getting 50-60. Is there something wrong I have done? If you are able, please do test out the game above, your help is much appreciated!

    I am creating the game at 1280*720, would that be advisable or would it better to create it at half resolution?

  • You can just double click the sprite individually and change their origin in the image editor. It's the one on the bottom left of the editor, that looked like a crosshair.

  • That actually might just work!! Thanks! I will try that out later. I am doing it as single layout, something like a treadmill. Right now there's three big identical cards just switch places everytime one of the card is near the end.

    I have thought of doing it to a very wide layout, would that actually be adviseable? It definitely would not be infinite scrolling anymore.

  • You could just copy paste the X value of each sprite. But I am guessing you would want to do it dynamically?

    If so, it's best to use a placeholder that will cover the whole length of your health bar (it can be hidden at run time). Then you merely take the width of it and divide it by the number of health heart you want, then it will be the same distance

  • I guess that's the one I have no clue on. If the enemy were to stop suddenly, how would I recenter the camera and scrolling rate ?

  • Hi Guys,

    I am trying to create a game similar to this.

    Subscribe to Construct videos now

    I managed to get an infinite scrolling background working, but how do I create the illusion that the enemy is part of the background? I would like to be able to stop the scrolling from time to time and continue from there.

    Here's what I have so far

    Infinite scrolling

  • 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?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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.