Move Player in Direction He is Facing in Ghost Shooter tut?

0 favourites
  • 6 posts
From the Asset Store
Players follower. use it for anything which follows the player
  • Hello,

    Quick question -- after following the 1st Beginner tutorial 'Ghost Shooter' I am wondering how to make the player move forward in the direction he is facing when the up arrow is pressed, instead of actually 'up' (no matter which way he is facing) ? ... this default method of 8-direction behavior from the tutorial is not intuitive for character control.

    That is the only thing I want to change from the tutorial. Have the player move forward in the direction relative to his facing angle (the facing angle should still be controlled by facing the mouse cursor).

    A sample capx would be most helpful. Thanks!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I believe this control of yours is not as intuitive as you might think...

    If facing was also controlled by the keyboard (left & right arrows) I would agree with you. But with facing being controlled by the mouse, moving with up & down feels terrible.

    Anyway, here's the capx:

    http://examples.gamesintheattic.com/ghost_shooter_custom.capx

    (For some bizarre reason I cannot attach the capx to the post)

  • Kind Sir, thank you so much for your help! You may be correct, but I would like to experiment.

    Unfortunately, when I try to open your example capx it tells me my version of C2 is not compatible (it tells me I have an older version) -- so, I went to check to make sure I have the latest, and the current download from Scirra is what I have: (release 173, 64bit) free version.

  • He's using the latest beta, you can grab that from: https://www.scirra.com/construct2/releases/r174

  • Cool ... I installed it, and checked it out -- just the thing I was looking to experiment with -- very helpful.

    (I had previously tried also using the example of car behaviors here (which also adds strafing), and also just change a custom key in 8 direction beahior to move a certain # of pixels (results were jerky).

    I do think this is a little better... well, actually both are somewhat awkward - I see what you mean by adding left and right, which should be easy to do using your example. Thanks!

  • p.s. Are there any other recommended examples of good movement control modifications to the ghost shooter type of game? (I've seen the WASD tut, and the turret one.)

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