ArcadEd's Forum Posts

  • OK, so I am running into a bit of a bug with this. It worked great with just one object, however I have some different object I want to use this same approach too. Here is a modified CAPX of yours that I added a new object too, and I am using the same code. It seems that once you get into the range of the new object, it no longer checks the DISTANCE element, only the angle of the others. Not sure if I am making sense.

    edfarias.com/games/turret2.capx

    I shortened the range of all objects to test this out, but as you move around I think you will notice what is happening.

    Thanks again.

  • Oh, thanks for the example. I'll have to look back over my code and see what I did wrong. Thanks again for the help :).

  • Quick question. If you use Rotate Towards instead of Set Angle, does the .angle property of the turret always stay zero? I'm asking because I don't want to fire unless it's some what lined up with the chopper, but when I am using angle() to check the angle between the turret and chopper, it's all wacky. So I checked the angle of the turret every tick and it stays as 0 as I watch it rotate.

  • Worked perfect. Actually just added a subevent under the event to check the distance for the Every Tick. Perfecto! Thanks a ton :)

  • Thanks guys, I'm actually not using in every tick right now, it's happened if the player is a certain distance from the turret. However, I will just make that trigger a variable that will be using in the every tick.

    Thanks again.

  • I have a gun turret that is using set angle towards my main character. Problem is it just sets the angle instantly. Is there a way to make it rotate slowly towards the character?

    I'm not really good with the physics object, is that something I should use?

    Thanks,

    Ed

  • Yeah, comments works pretty good on a dedicated event sheet Didn't even think about that. Thanks.

  • If you sign up with hostgator you get a free SSL certificate. At least that was their deal when I signed up last year. Works great for publishing Facebook apps. FYI.

  • It would cool to have another TAB type that is simply a notepad. I like to write notes, ideas, objectives etc. for the game I am working on. Currently I use a separate notepad file for each game, but it would pretty nice to have it as one of the tabs for my project.

    Thanks

    Ed

  • Awesome, thanks so much :)

  • The reason being is chopper can spin around as fast as you can move the mouse. Thank you though, this was all very helpful

  • Yeah, right now I am not using the mouse to control. I'll try it that way and see. Thanks.

    I was thinking of having a strafe left and strafe right button, but this might be better :)

  • OK, thanks for that. But what if I don't want it to rotate while strafing, but just continue on the straight path? Not sure if I am making sense.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Weird, was just a chrome thing. Worked fine in firefox.

  • <img src="http://content.screencast.com/users/ArcadEd/folders/Jing/media/ad949c3f-c67d-44fa-8f03-be6b33a15648/2012-08-03_2226.png" border="0" />