Player box and sprite

0 favourites
  • 3 posts
From the Asset Store
Basic Rounded Vector Geometry Player Design with Glow for 3 player games
  • A common design pattern seems to be creating a player box sprite which is moved around in the usual way, and then creating a separate player animation sprite which is connected to the box.

    Has something to do with animations not displaying properly or something like that.

    I've seen two ways mentioned to connect the two together, namely by:

    1. Setting the player position to the box at every system tick, or
    2. Pinning the player to the box

    Was just curious which one is the preferred way.

    Tagged:

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • It doesn't really matter as long as you doing this properly.

    For example, with method #1, if you are adjusting player_box position in events, you need to set player position in the last event, otherwise it will be lagging behind.

    With pinning (#2), you should avoid "double-pinning" other sprites to the player image, for example pinning a weapon to its hand.

  • Seems to me a bit of an overkill (and perhaps unneeded overhead) readjusting the player sprite every single system tick when in fact it is only needed when the player box is actually moved.

    Wouldn't it be better to do this inside of the player movements event?

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