Hello.
Hopefully this question isn't too difficult to answer...mastering of AC is coming slowly, and I still have a lot to learn about Unity. I'll find myself on the forums a lot. Anyways, I would like to attempt a scene in which the player starts out in a restrained position (i.e handcuffed). I would like to use AC so that the player can look around the scene and find nearby objects in which he/she will use to their escape. Could this be possible? Trying not to bite off more than I can chew with AC...still following tutorials on it. Thank you.
Edit: Forgot to clarify I am making a 3D Game. And yes, the tutorials are very helpful!
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
That can be created in AC yes. You will learn a lot of what you will need to know for that from Chris' tutorials on Youtube https://youtube.com/channel/UCWyYGvoXc2ICiyu1suSQFvQ
Assuming you want to make this in 2D, check out the video called Adventure Creator: Creating a 2D game tutorial.
Outside of this scenario, what's your normal way of moving the Player?
If your game is in 3D, you can define a Bool parameter in your Player's Animator Controller that - when set to True - causes transition to a special "restrained idle" animation.
You can set this parameter's value in-game using the Character: Animate Action.
You can prevent the Player from being able to move with the Player: Constrain Action.
The Player can still interact with Hotspots during this time - though you may want to have the Player react differently depending on whether or not they're restrained. For this, you could create a Local Boolean variable in your Variables Manager (named e.g. "Player is restrained") that you set to True when they're restrained - and False once they're free.
You can then read this value (with the Variable: Check Action) as part of your Hotspot interactions to give different responses accordingly - e.g. have them say "I'm too far away!" when clicking on distant Hotspots while restrained.
@ChrisIceBox Should I be able to do this correctly using the 3D Tutorial or would you recommend looking to additional sources? My skills are still slightly limited with Unity.
It's quite a specific situation so the 3D tutorial doesn't cover it, but you can certainly use the 3D Tutorial's assets to experiment with. Though, its the NPC Brain that's constrained there - not the Player.
I'd recommend sticking to the "guided path" so far as the tutorial(s) go, and then experiment with your own assets/game. Certainly your intended scenario is possible with AC, and the above steps should essentially be it. Just post here if you get stuck, with details, and we can see about getting you sorted out.
Hi, returning to my project after a short break.
Tried to follow along as well as I could...obviously there is more I need to do however, because as of right now the player is not performing the desired animation.
Here is an image of what I have laid out thus far...more to it, or have I made an error?
https://imgur.com/gallery/39dRPWh
Thanks for the consistent help...clearly a lot of my errors are very simple, to more experienced users at least. Probably going to take a step back and learn a little more about Unity before I continue with this, but any further info would be appreciated.
There's not much to go on from that single image. What is the value of your "IsRestrained" value at runtime, and what animation is the player actually playing?
Rather than transitioning from Entry -> Restraint, try creating transitions between your Locomotion and Restrain animations - with "Is Restraint" = True causing a Locomotion -> Restrain transition, and "IsRestraint" = False causing vice-versa.
Then try checking the "Is Restraint" checkbox in your live Animator at runtime to see if it has an effect. So far, this issue is just to do with the way your Animator is set up - not anything related to AC specifically.