Layers Angle, Mouse and Hero.

0 favourites
From the Asset Store
3D Car Pack 1
$2.99 USD
3D models + Rendered Low-Poly Cars in isometric, top-down, and side angles.
  • Hello.

    I have a Hero and he have to rotate toward Mouse position. Simple enough. Everybody know how to do this.

    Problem is. I want Layers rotate too. I tried some methods, but they didn't work well and Layers Angle was insane and unplayable.

    This is like FPS-style rotation. Only for TDS. I know that is possible.

    This will make player feel yourself more closer to the game. A lot more atmosphere from this. The benefits are endless.

    It's even may be the wind of changes to the whole genre of TDS games!

  • Are you sure you'd want to rotate the layout and not a layer?

    Just asking because rotating the layout would in my idea ruin any possibility to have a static HUD..

  • LittleStain

    Oh yeah. That is mistake in the text. Sorry for this.

  • LittleStain

    Something like this, but i would like to player have always the same angle (270 +/-). It's better for movement.

    Thanks for helping me!

  • LittleStain

    Something like this, but i would like to player have the same angle as layers. It's better for movement.

    Thanks for helping me!

    I'm not sure what you mean, haha..

    Wouldn't that simply be putting the player on the layer you are rotating?

  • LittleStain

    I want player to move depending on the mouse position.

    W - Player moving towards mouse

    A,D - Player moving left/right from mouse

    S - Player moving backwards from mouse

    If i'll use your example - it's will be too hard for player. Unconfortable. So, i have to make player's angle focused on 270.

    I wonder will MouseLock plugin help here somehow?

  • LittleStain

    I want player to move depending on the mouse position.

    W - Player moving towards mouse

    A,D - Player moving left/right from mouse

    S - Player moving backwards from mouse

    If i'll use your example - it's will be too hard for player. Unconfortable. So, i have to make player's angle focused on 270.

    I wonder will MouseLock plugin help here somehow?

    My example above will do exactly what you ask..

    Pushing left mousebutton will now make player move towards mouse..

    If you make the player stationary at 270 degrees, how will it move towards the mouse?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • LittleStain

    And how this happening in first-person shooters? All the same.

  • First person shooters work in 3D the way like my example works in 2D..

    The player turns toward the mouse position and moves in that direction..

    You want the player to move towards the mouse, but the player shouldn't turn towards the mouse?

    What if the mouse is not right in front of the player or even in the back of the player?

    Should the player move backwards?

    I'm not sure how you see this..

  • This would be the closest you get, but it seems weird to me:

    https://dl.dropboxusercontent.com/u/485 ... le270.capx

    All calculations are done before returning the player back to it's 270 angle

  • LittleStain

    [quote:1g1q8a1g]You want the player to move towards the mouse, but the player shouldn't turn towards the mouse?

    He should.

    [quote:1g1q8a1g]What if the mouse is not right in front of the player or even in the back of the player?

    It's doesnt really matter when mouse will be, if you mean layers. But for comfort - mouse always have to be focused on one x-position. Like in FPS games, but despite FPS games - y-position will be changeable. I'm sure - Mouse Lock will help here.

    [quote:1g1q8a1g]Should the player move backwards?

    Yes, he should. As i said - there is button "S" for that. Player will just move backwards, left/right from mouse. There is no problem with that.

  • LittleStain

    This looks exactly how i tried to create this -_-

  • LittleStain

    This looks exactly how i tried to create this -_-

    So this is not what you want?

    You want the player to turn towards the mouse, but stay at 270 degrees..?

    How is this supposed to happen..?

    You should turn, but you can't turn..?

    I'm probably missing something essential here..

  • LittleStain

    When i came up with this - i'll be honored to show you an example

    And you did helped me anyway!

    When i tried explain this to you - i finally realized how this should look.

    Now it's no more a matter of imagination, but realisation.

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