How do i stop 8 direction on one object when player is overlapping....etc

0 favourites
  • 3 posts
From the Asset Store
Basic Rounded Vector Geometry Player Design with Glow for 3 player games
  • I will try to explain as good as i can.

    I have my character. And on the back i have a device that can shoot a chain.

    When i press and hold the spacebar the chain fires,and when i release the spacebar it retracts.

    Both the player and the chain have 8 direction, and chain moves where the player moves.(so far so good)

    But when player hits/overlapping a wall and i keep pressing arrowkeys then the player stops but the chain keeps going.

    How do i stop 8 direction movement on the chain when the player has stopped?

    I have been working on this problem for 2 days now and need help.

  • It's hard to answer without seeing your code. But why do you have 8direction on the chain? If it's attached to the character, then you can just pin it, or position it to the character (with some offset) on every tick. This way when the character stops, the chain will also stop.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I have now solved this one. I use frame animation for the chain (uses more memory,but it's working).

    But thanks for your answer dop2000 :)

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