Backwards Bullet

0 favourites
  • 3 posts
From the Asset Store
This pack contains 10 types of bullet effects, with different shapes and colors.
  • I'm wondering if it's possible to get a Bullet to move backwards.

    I'm making a very basic AI system. I'm using Bullet to home in on the player. However, once the Bullet object reaches the sprite SensorShoot which is invisible(or will be when done) the sprite has it's Bullet speed set to -80.

    --------

    ShooterEnemy is Overlapping SensorShoot

    -> ShooterEnemy.setBulletSpeed to -80

    Else(refer to overlap)

    -> ShooterEnemy setBulletSpeed to 80

    ---------------

    Now. What I'm wondering is that is this even possible. Will setting a -value for bullet speed have the bullet move backwards.

  • Yes, giving your bullet a negative speed will move it in the opposite direction.

    If you have a simple question like this you could just make a simple test rather than having to wait on someone to provide an answer!

    Hope that helps! <img src="smileys/smiley1.gif" border="0" align="middle" />

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • TY, did try but I didn't get it to work orginally. THough I kept looking. I found that I need to turn off the automated behaviour for the bullet to face the direction of movement and set the angular motion maunally.

    however. thanks. you were right :)

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