Author Topic: [Resolved] Direction Buttons (BABS)  (Read 1483 times)

Offline Boba Fett Link

  • Enterbrain Spy
  • Ethereal Devastator
  • ****
  • Posts: 298
  • LV: 4
  • Gender: Male
  • DANGER ZONE!
    • View Profile
[Resolved] Direction Buttons (BABS)
« on: March 24, 2012, 03:42:55 PM »
Okay, essentially I'm trying to make it so that the arrow keys change which direction you are facing, kind of like the second control stick in a FPS. Basically, it will allow the character to face one direction and walk in another. Here's what I have so far:

(click to show/hide)

However, with this setup it won't let move when the arrow key is pressed, because the Set Move route command keeps the player from moving when it is running.

So my question is, is there a way to keep the player facing a specific direction and allow them to walk? Maybe with a script call?

EDIT:  :facepalm: Never mind, I figured it out.
« Last Edit: March 24, 2012, 03:47:08 PM by Boba Fett Link »
This post will self-destruct in 30 seconds.

Offline AJNR95

  • Awakened Visionist
  • **
  • Posts: 82
  • LV: 7
  • This User is Banned
    • View Profile
Re: [Resolved] Direction Buttons (BABS)
« Reply #1 on: March 28, 2012, 04:31:35 AM »
I would love it much if you could share the working formula
(click to show/hide)

by Blizz: Spoilered, because image is 2.6 MB.
by AJNR95: Unspoilered, because fuck you - ¡Viva la Revolución!
by Blizz: Spoilered again, and Banned.

Offline G_G

  • Green Gmod Game_Guy AKA G4 AKA hyper-G AKA G-force
  • Global Moderator
  • Chaos Ultimate
  • ****
  • Posts: 6585
  • LV: 407
  • Gender: Male
    • View Profile
Re: [Resolved] Direction Buttons (BABS)
« Reply #2 on: March 28, 2012, 03:09:25 PM »
I think what you were aiming for is strafing. This is as simple as it gets. With this, you just hold shift to lock directions.
(click to show/hide)

Offline Boba Fett Link

  • Enterbrain Spy
  • Ethereal Devastator
  • ****
  • Posts: 298
  • LV: 4
  • Gender: Male
  • DANGER ZONE!
    • View Profile
Re: [Resolved] Direction Buttons (BABS)
« Reply #3 on: March 28, 2012, 08:47:24 PM »
That was kind of it...My idea was a little more complex. I had the four arrow keys so you could quickly press them to face that direction quickly and lock that direction. I'll post what I did when I have time.
This post will self-destruct in 30 seconds.