How do I...set target sprite distance from player?

0 favourites
  • 1 posts
From the Asset Store
Basic Rounded Vector Geometry Player Design with Glow for 3 player games
  • Hello,

    I'm trying to make a top-down shooter. The player sprite is moved by 8Direction keys. I want to set a target sprite:

    e,g, target | Set position to (Player,X, Player.Y - 100)

    and lock it to that distance from player, so if player moves between angle, the target will rotate or move to the players direction

    [

    [sorry, I'm a maths failure and I'm trying studying algebra again]]

    --example-----

    [t]

    target

    player

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

    if player is facing north and presses key D, then

    [t]

    target rotates from North to East at set distance from payer.

    I HOPE THIS MAKES SENSE!

    The easiest way I can think of is, have a circle set against player and target follows cursor, but is restricted to circle (this is not the preferred method).

    Thanks again,

    Roberto

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)