caiorosisca's Recent Forum Activity

  • You can also use lerp for stuff like this. It provides a nice and smooth effect

  • Not sure what look you are trying to achieve, but maybe not even pin the angle at all. Pin the healthbar to position only and it will always be on top of each tank

  • You are destroying the Timer you have at the layout on layout start.

    So what happens is, when you click, there's no object Timer at all.

    When you check if it is NOT on layer 0 it isn't because it doesn't exist.

    When you check if it IS on layer 0 , well, it isn't either, there is no timer.

    In programming that would be similar to getting a null reference error, you are trying to get something that doesn't exist.

  • From manual:

    "Advanced audio

    The Audio object supports some advanced features, such as positioned sounds and convolution effects. However these depend on the Web Audio API which is not supported in all browsers. You can detect if these features are available using the Advanced audio supported condition. If it is not supported, the advanced audio features will not change the sound in any way.

    Positioned sounds are an advanced audio feature that allow you to play a sound at a position, or on an object, in the layout. Using a 3D audio engine, the pan and volume are adjusted according to their relative position to the listener. This is an easy way to enhance realism and further immerse the player in the game."

    Probably the phone doesn't support advanced audio.

  • Yes, I know that. It was just an quick example to show you how to get different sounds.

    As BluePhaze said, you can just add a stop when player is not moving(better than checking for animation IMO).

  • Check out this example, tell if you need anything else. (remove the space, I can't post links)

    dl.dropboxusercontent. com/u/39282664/healthbarExample.capx

  • As I hate video tutorials, (they take ages to usually explain what could be said in one line)

    What you need to do is:

    Create a new layer

    Set the layer's parallax X and Y to 0. << MAGIC

    Place your health bar at the position you want on that layer.

    You're done

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Setting up an example for you

    Edit:

    Here's an example how it can be done, I used poor sound effects tho. For better results use single step sounds.

    You can also tag all the sounds as "footstep" instead of using a tag for each one. But it would delay a bit the sound when touching a different terrain.

    (remove the space)

    dl.dropboxusercontent. com/u/39282664/footsteps.capx

  • caiorosisca can only post plain text URLS until they have 500 rep. 2 URLS modified. Why?

    Have a look at these 2 capx, they're from some other topic I can't remember which one.

    https: //dl.dropboxusercontent .com/u/39282664/drag%20and%20throw.capx

    https: //dl.dropboxusercontent .com/u/39282664/dragNthrowJoint.capx

  • when you click to attack add a condition to your event, to check if it's not already running the attack animation

    X(inverted) Animation is playing "attacking"

    and add another event:

    On animation "attack" finished > change to some other animation

  • Guizmus ,

    Thanks for the pm, it worked and my problem is now solved. I can't send PMs anymore because I'm under 500rep.

    So, if anyone is interested Guizmus gave me the ideia use use saves in my level, so everytime I start it, or move an object to a valid position I save the state and when I hit the restart button I just load the game from there. Thanks for the workaround.

    Regards the physics I still don't know what was causnig the problem.

  • Make sure the collision box is the same for all frames in your animation.

    A good practice is to use an invisible object for your player and pin your actual animated character to it.

caiorosisca's avatar

caiorosisca

Member since 20 Jan, 2014

None one is following caiorosisca yet!

Connect with caiorosisca

Trophy Case

  • 10-Year Club
  • Email Verified

Progress

11/44
How to earn trophies