playMaker

Author Topic: Confused Movement  (Read 1887 times)

Red

  • Hero Member
  • *****
  • Posts: 563
Confused Movement
« on: August 26, 2013, 08:09:24 PM »
Okay, I'm at the point where I'm trying to work out the systems to make the player character confused.

What I'm hoping to do is to have a random timer that every time the timer clicks over to change the movement vector3 that's used for the third-person system.

So, when you're confused, it'll randomly choose to rotate it so that when you press left, you go up... when you press up, you go right... etc. or it inverts the controls... or it rotates it the other way... and another set that inverts the controls and also chooses to do that rotation thingie...

Basically, the intent is to make it so that the player cannot easily move the character so as to really drive the point "you're confused right now... movement is gonna be hard."

I know it's kinda evil to use random time intervals to switch up these motion controls... But I was wondering how to implement them?

I can understand that there's going to have to be about 7 different states of movement (the normal movement is not an option here since that's already covered) but how to implement them is where I'm drawing a blank.

Any ideas?

redikann

  • Full Member
  • ***
  • Posts: 174
Re: Confused Movement
« Reply #1 on: August 27, 2013, 07:41:55 PM »
If your using a 'Get Axis Vector' action it would be pretty easy to throw it a random float and maybe clamp that float form -1 to 1. Then just use a vector3 multiply or vector3 operator of some sort . Maybe even use the 'Set Random Rotation' on the Y axis at random intervals.
If you've checked 'Relative to Camera' you may need to override that while your confused...
« Last Edit: August 27, 2013, 07:44:12 PM by redikann »