1. #1

    Stick Control Problem

    I finally got my object moving the way i want but moving from each stick point eg: right to right up (diagonal) the movement is very sharp and unrealistic...
    How do i make this smooth movements..

    Must say a big thanks to Telixion for helping with movements
    I was going to give up until i viewed one of his tutorials. A MUST SEE for any budding builders
    Share this post

  2. #2

    Re: Stick Control Problem

    ......Anybody help!
    Share this post

  3. #3

    Re: Stick Control Problem

    You mean you've basically got 8 specific angles to move in and you want smoother variants between those angles?

    I'm not sure if this is really possible. To make it look smoother, you could have some kind of acceleration system where you combine different momentums from different angles. But that might make the controls feel sluggish.

    Edit: I think the game variable data source is what you'll want for this. It has data sources for the analog sticks which gives the full range of motion for the stick (ranging from -3.0 to 3.0 for X and Y). You can convert those numbers to affect the position of the object you're moving. That should give you the full 360 angles to move in.
    Share this post

  4. #4

    Re: Stick Control Problem

    i'll try that thanks.
    Share this post

  5. #5

    Re: Stick Control Problem

    This may sound silly but how do i incorporate this?
    Share this post

  6. #6

    Re: Stick Control Problem

    I became a bit curious how this would work in detail so I set up an example. If you still want some help, here's my set up to get it working:
    http://www.abload.de/img/2012-05-02_15-07-062ajel.png

    The important parts are to the left and right, those are identical except one deals with the X axis and the other the Z axis. At the top, you can see a value shared by both axis which is a general multiplier which affects speed (it has to be rather low, otherwise the speed is wayyy too fast).

    Here's a quick rundown of how I got it set up:
    -Create a game character data source (left analog stick horizontal value).
    -Create an object position data source (position X, and link it to object you're planning to move).
    -Create a two input operator. This is what you'll use to modify the overall speed so place it somewhere out of the way so it stands out. Making it divide 1 by 20 is a good starting point (so you get the value 0.05). You'll wanna use this value for both X and Z axis.
    -Create a two-input operator. Set it to multiply and link it to the operator you made just above and the left analog stick data value.
    -Create another two-input operator. Set it to add the above operator and the object's X position data source.
    -Create a variable data source and set its object value to be the above two-input operator. This should be used as the object's new X position by a object position event.

    The rest should be very straight forward. You should have a interval trigger going all the time with an object position which is linked to the appropriate data sources. When you make movement for the Z axis, you repeat the above steps but using a position Z object data source and the left analog stick vertical value data source.
    Share this post