Move at same angle (regardless of speed)

0 favourites
  • 3 posts
From the Asset Store
This is a code so you can see the same skin on all screens (peers). Each peer gets a skin, in addition to 4 directions t
  • Hi all,

    I have a small issue with the game I'm working on. I've tried searching the forums but can't solve it....

    Basically I have a 'mover' sprite with Bullet Behavior.

    As the 'mover' bullet moves it spawns another object behind it (to create a solid line).

    As it moves I am currently adding to the Bullet Angle of Motion (to create a solid line curve across the screen)

    Now, I want to move the 'mover' sprite at one of three different speeds, but have the curve it produces to be the same (regardless of the bullet speed).

    Can someone help!

    I've attached a basic capx illustrating the problem. If you press the 1, 2 and 3 buttons you can see that the curve is different depending on the speed of the mover sprite. How can I make the curve the same every time?

    CAPX:

    dl.dropboxusercontent.com/u/165337138/angle_bullet_problem.capx

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You must make the speed in which mover sprite change angles proportional to the speed the mover is traveling. Change event 4 to something like:

    <img src="http://i.imgur.com/d4q2KSh.png" border="0" />

    and it should be much closer to what you're looking for. It probably won't be perfect due to minor fluctuations in DT, but it's pretty close.

  • Thankyou Zatyka, I'll try it. It was doing my head in, my brain froze when trying to work it out before :-)

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)