Hi I am looking to make a scene with a background and character.
I wish to have a button saying kick and another saying punch, the player clicks on either and the player is shown the character performing a kick with more buttons to choose on the gui canvas showing different kicks if player clicks on them for the same scene. How can I do this?
Thanks for any help
with a canvas with those buttons, preferably within separate empty gameobjects for enabling/disabling them. one script on the root with all the methods needed for the buttons and a reference to an animator on which the methods set necessary bools or floats or whatever necessary for the animator to transition. and of course the animator setup so it can play all different animations and transition between them based on those values.
Answer by saimonchairo2
Mar 25 at 05:05 PM
hexagonius thanks for the reply, I think I'll just try something a bit simpler to suit my coding experience lol and build up to this later :D
Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.
The best place to ask and answer questions about development with Unity.
To help users navigate the site we have posted a site navigation guide.
If you are a new user to Unity Answers, check out our FAQ for more information.
Make sure to check out our Knowledge Base for commonly asked Unity questions.
If you are a moderator, see our Moderator Guidelines page.
We are making improvements to UA, see the list of changes.
Answers and Comments
138 People are following this question.
How to replace keyboard inputs with touch inputs.
Getting BCE0005: Unknown identifier: 'EditorStyles' error what is wrong with this piece of code?
Triggering animations in multiple parent objects (buttons) in a User Interface.
How do I simulate the mouse cursor hover over function with the FPScontroller and Xbox controller input?