skrotar's Forum Posts

  • Possible to get a capx for this?

  • Thanks man! that looks great

  • That's it! your a life saver! thanks!!!!!!!!

  • So if the ship is moving towards the right side of the screen but turns and fires towards the top of the screen (firing towards the top of the screen while still travelling to the right) the bullet should move to the right with the ship... thus firing directly ahead along the blue line

  • Again from that first pic, the red arrow is the direction the ship is moving. The ship has rotated to face upwards (but is still travelling to the right, along the red line). When the bullet fires it comes out of the ship and travels along the green line because it does not gain the same directional momentum as the ship.

    Its like firing a gun on a platformer while falling - Normally The bullet would just go across the screen. I would like the bullet to "fall" with the platformer while still proceeding to travel across the screen.

  • That is absolutely weird.

    https://www.dropbox.com/s/1pk3jnj629uwt ... .capx?dl=0

    Shoots right... along the blue line... but now after the bullet is shot it follows player rotation.

    I thought this would be simple hah

  • If you look at the picture in game in my first post.. your bullets are also following the green line while moving to the right, i'd like them to follow the blue line

  • Not quite what I meant, when you shoot your bullets It lags "behind" the player. I want it so that while you are moving towards the right but turned and shooting upward (like you do when you start shooting) for the bullet to shoot on a straight line out of the nose of the ship...

    The bullet would have to gain whatever velocity the player is moving in as well as its own.

  • Ok i thought this would be simple but its clearly way beyond me.

    All i want to do is make it so that when a bullet is fired (hitting space bar) while the player is moving (wsad) the bullet has the same directional velocity as the player.

    In the example picture you can press w to move forward and then rotate and fire. In the picture below the red arrow is your direction of travel, you rotate and fire and the green line is the path the bullet takes. I want the bullet to be fired along the green line.

    https://www.dropbox.com/s/61b6r2rqdvol3 ... .capx?dl=0

  • found this but unfortunately the capx is broken

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Set this up quick

    Move with w,s,a,d and shoot with space.

    https://www.dropbox.com/s/qooa7a5ix3yhr ... .capx?dl=0

  • Quick question

    I have a player object that moves and rotates (space ship behavior). When the object is moving and then rotates and fires while moving how do i get the bullets movement to match the player objects movement?

    In the example picture below

    The player is moving to the right as shown by the red arrow

    The player has rotated to the left to fire. When it fires its bullet it follows the green line

    How do i get the bullet to fire along the blue line (gaining the same directional movement(red arrow) as the player)

  • Switched host and it works like a charm, thanks guys!

  • So you say this worked for you on the tutorial example 1 capx?

  • I get nothing when i use the empty tag