Forum rules - please read before posting.

Switching Control Method

In working on a direct-control game with fixed cameras, I've hit the dilemma of which control scheme to use - tank controls or camera relative. Either one alienates half the potential audience.

I really need a way to switch between them, so players can choose themselves. I thought engine:manage system action allowed this, but I think it only changes the movement or interaction type (point & click, first person etc).

Is there a way to achieve this?

Comments

  • You'd need to access the field through scripting - a tutorial can be found here.

  • Thanks Chris, that's a good tutorial - it was very easy to adapt it to changing the direct movement type rather than the whole movement method. Here is the version for swapping between tank controls and camera relative if anybody needs it:

    using System.Collections;
    using System.Collections.Generic;
    using UnityEngine;
    
    public class SetMovementMethod : MonoBehaviour
    {
    
        public void SwitchToTankControls()
        {
            AC.KickStarter.settingsManager.directMovementType = AC.DirectMovementType.TankControls;
        }
    
        public void SwitchToRelativeToCamera()
        {
            AC.KickStarter.settingsManager.directMovementType = AC.DirectMovementType.RelativeToCamera;
        }
    
    }
    
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.