Attack box to move with player

0 favourites
  • 3 posts
From the Asset Store
Basic Rounded Vector Geometry Player Design with Glow for 3 player games
  • Whenever I have the "Player" attack, the "attack boxes" are only in the area I have them "spawn" at which is either "image point 0 or 1". How can I get the "attack boxes" to stay with my character when they "spawn" until I have them "destroyed"?

    I've tried using the "set to" which I learned in the platform tutorial and I've tried some things with the "pin" behavior, but I got nothing from it. If anyone can help it would be very helpful for the progress of my learning.

  • You can use Pin at start of layout or on creation, but you first have to manually set the position and angle to match the player object (Pin is relative to its starting position). The alternative is to update the position of the player character to match that of the player box every tick.

    Just FYI, what you want is for the user to control the boxes, not the animated character, then update the character to stay with the boxes. All controls should be assigned to the box for the most accurate collisions and controls, and animation changes should be assigned to the character.

    capx

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • It took me about 15 minutes to get what you were saying, but after messing with it I finally got it. Thanks a lot Geometrix!

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