Search Unity

Control Design Question

Discussion in 'Game Design' started by TrinityNeo, Jul 8, 2015.

  1. TrinityNeo

    TrinityNeo

    Joined:
    Mar 2, 2015
    Posts:
    18
    I want to make a game with telekinesis powers, lift objects, throw, etc, but how would you control it all? I imagine when you left click on an object you can freely move it around like dragging and dropping an icon, but the icon will move on 2 axis only, how to get it to move on the 3rd axis as well? What control scheme would you come up with?
     
  2. RockoDyne

    RockoDyne

    Joined:
    Apr 10, 2014
    Posts:
    2,234
    Ever heard of a game called Psy-Ops: the Mindgate Conspiracy? It was one of the first (if not outright the first) game to use havok, and monkeyed around with weird ass controls to do telekinesis.
     
  3. JoeStrout

    JoeStrout

    Joined:
    Jan 14, 2011
    Posts:
    9,859
    Intuitively positioning things in 3D with a 2D mouse is a very tricky and interesting problem. I took a stab at it for this ragdoll demo: http://LuminaryApps.com/temp/RagdollTest/RagdollTest.html. Basically as you move further up the screen, we move up, but we also move back in depth. Maybe something like that will work for you?
     
  4. tedthebug

    tedthebug

    Joined:
    May 6, 2015
    Posts:
    2,570
    I'm assuming it's real time & not turn based? & 1st person not 3rd?

    3rd person turn based I'd suggest something like what was done in the X-com reboot for chucking grenades etc as it let you move the target point around & up or down.
     
  5. Serinx

    Serinx

    Joined:
    Mar 31, 2014
    Posts:
    788
    Do you need to move and use telekenesis at the same time? If not, you could toggle between movement and telekenesis mode where your movement controls would also move the object. e.g. If you move using WASD, hold shift then WASD now control the object you're holding, W pushes and S pulls.

    Garrys Mod uses the scroll wheel on the mouse to push and pull objects you're holding so that's another option.
     
  6. Not_Sure

    Not_Sure

    Joined:
    Dec 13, 2011
    Posts:
    3,546
    If it's an action game, I think I would perfer an array of abilities that work in a tight and responsive way. One power does a forcefull blast. Another yanks people and items to you then maybe blast them back like the grav gun. Maybe throw in a badger-slash like Tetsuo does in the nursery in Akira.

    But the idea of doing some floaty movement with crates while people shoot at me makes me cringe a little.

    If it's a puzzle game, then floaty is okay.
     
  7. Marrt

    Marrt

    Joined:
    Feb 7, 2012
    Posts:
    613
    Elder Scrolls Oblivion had telekinesis and Garry's Mod too, i cannot remember what exactly they did but i believe they were both like this:

    -activate telekinesis with the corresponding button grabing it exactly at the aimposition of the player (raycast to object, impact point = point where you apply forces)
    -As long as you hold the activation button you can drag the object via mouselook
    -the distance (3rd axis) is contolled via mousewheel, with snapping points increasing with distance (like 1,2,4,7,10 m...)
    -also you can move around with the grabbed object staying in its place relative to you

    I would implement this using only forces and maybe PID-control the force if linear force has a bad aimpoint following behaviour, but remember to clamp your forces in any case.
     
  8. TrinityNeo

    TrinityNeo

    Joined:
    Mar 2, 2015
    Posts:
    18
  9. JoeStrout

    JoeStrout

    Joined:
    Jan 14, 2011
    Posts:
    9,859
    In what sense? Do you get an error, or you don't have the Unity web plug-in installed, or what?
     
  10. TrinityNeo

    TrinityNeo

    Joined:
    Mar 2, 2015
    Posts:
    18
    When the wizard pops up and I say install, run then finish nothing comes on, it just brings up the desktop and nothing happens?
     
  11. JoeStrout

    JoeStrout

    Joined:
    Jan 14, 2011
    Posts:
    9,859
    Hmm, that's odd. Well I don't know how much effort you want to put into it just to see my little demo, but on the other hand, the web player is the standard way we share demos & tests (and sometimes full games) around here. So you might want to get it working. Here are Unity's webplayer troubleshooting tips.
     
  12. TrinityNeo

    TrinityNeo

    Joined:
    Mar 2, 2015
    Posts:
    18
    It seems as if when I push up the character goes away from me and up in the air at the same time, it looks like a duality feature to it, particularly when it is at the edge of the floor most furthest from me.

    Or in another way the characters moves along the x and z axis just fine, the farther away it gets it seem to have a y axis movement to it all of a sudden.
     
  13. JoeStrout

    JoeStrout

    Joined:
    Jan 14, 2011
    Posts:
    9,859
    It's not all of a sudden, it's smooth, but yes, that's basically it. When you push up on screen, the object moves in both Y and Z.