How do I use another sprite as a collider for movement?

0 favourites
  • 5 posts
From the Asset Store
Run and Jump in 3 Dimensions! Take your platformer to the next level!
  • Hello

    I am making a top-down adventure game with 2 sprites pinned to the player:

    • player: Main sprite, 8 directions, rotating to detect which animation to play and control actions
    • anim: No collision, must not rotate, only displays visual according to current state
    • feet: Feet collision, must not rotate to act like a rectangle collision

    Now, I don't know how I can get the player to use feet collision polygon to affect's its movements (stop at solids, activate pressure plates, etc)

    Right now, I'm using player's collision, but since it rotates, it cannot be used properly for precise feet collision.

    Here's a screenshot, I'd like to use the Feet collision to be used when moving the Player

    Thanks!

  • I'm using the shadow as 8-Movement behaviour and collision and works great , thehn pin the player or every tick in the X/Y shadow.

    For the shadow draw the colision desired and ready!

  • I'm using the shadow as 8-Movement behaviour and collision and works great , thehn pin the player or every tick in the X/Y shadow.

    For the shadow draw the colision desired and ready!

    Thanks for your reply!

    That'd work for the collision, but the problem is I would not be able to use the shadow's "8direction" to determine the anime to use as I cannot use "Set Angle" (I like how the he continues to walk in the correct direction until .

    My guess was that a workaround would take longer than finding a way to keep using's 8direction's angle to affect the animation, but I guess I'll have to rethink the whole system :S.

  • wouldn't you be able to work with: Sprite.8Direction.MovingAngle ?

    Another way would ofcourse be setting the animation based on the player input..

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Yeah, I guess I'll have to take it directly from the inputs, thanks for the input!

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