SpyDaniel's Forum Posts

  • I have the angle working, but I have no idea how I can stop the object "rotating" towards the mouse. My character has a gun and it rotates towards the mouse and the gun flips and the character gets mirrored when the mouse is either side of the character.

    The thing is, I do not want the gun to keep rotating past a certain degree, as at the moment it will clip inside the player. I want to try and have it so it only rotates along an arc of about 80° .

    Does anyone know how to do this?

  • Ah, thanks for explaining, I just couldn't think, though it is basically what I have been doing for changing animations for different movement. Just did not think it was the same for setting position, I was over thinking it xD

  • I have multiple animations with image points set. I've noticed that it will only pick the first animation in the animation list. I've tried naming them also, but this does not seem to sort the issue. The animation I want is like 3 rows down from the top of the list. Can I do some thing like AnimationName.ImagePointName? I tried, but it wouldn't work.

  • I fixed it about an hour or so ago after thinking outside the box. I didn't want the player to stand up while in an area that was too small to stand in. So now all the animations work etc while inside the trigger. This is what I have now though and it works as I wanted.

  • I've added variables, but I'm having an issue with a force crouch trigger I have set up, wondering if you could figure out why it is glitching on me? https://www.dropbox.com/s/7ylea3dcu5i2yh8/yella3.capx?dl=0

  • thanks, that sorted it, now I'm going to compare what I did, to your fix to better understand how I went wrong with the is moving condition.

  • Uploaded the .capx, didn't realise I had to save as a single file.

    https://dl.dropboxusercontent.com/u/12291860/yella.capx

    Thanks for the tutorial link Lordshiva1948

  • This is what I have currently: https://www.dropbox.com/s/0yebna1cf1su9au/Yella.caproj?dl=0

  • This is what I have, but only the walking animation will play (Default). The others only show the first frame, I have been pulling my hair out trying to figure out why, but nothing I have tried works. Can anyone spot what is wrong with my events?

  • lamar that works only for up down left and right, as I can not have two key released conditions in the same event. Unless I am missing some thing.

    Though I want my character to face the diagonals of the 8 angle movement when set to 45 degree intervals, when they have stopped moving on that angle.

  • I can't seem to figure out or find the right tutorial for stopping the 8 angle movement (when I let go of keys) so that the player is facing the angle I was moving in. So if I was moving 45 drgrees, I want that angle to stay if I let go etc.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Never mind, I figured it out, this is how I did it.

    X random(SpawnArea.BBoxLeft,SpawnArea.BBoxRight)

    Y random(SpawnArea.BBoxTop,SpawnArea.BBoxBottom)

  • I want to create an object inside the spawnarea object, at a random point.

    My thinking was:

    X | random(spawnarea min, spawnarea max)

    Y | random(spawnarea min, spawnarea max)

    But no combination I have tried works.

  • Can you emulate an art style I have in place already? How much do you charge per hour?

  • I found the problem that was causing the issue. I had the enemy as a solid, which for some reason stopped the destroy event from working. Thanks