Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
Guys please help, how can I create character with different weapons and change from one to another note in a 3rd person shooter game |
||||
|
There's half a dozen different ways to go about what you are asking. The easiest is to put all the weapons in the hand of your model and then hide/unhide them as a needed. So the player presses 1 and it unhides the knife, 2 hides the knife and unhides the pistol, etc... Of course you need to set variables when the weapon is picked up to allow the player to unhide the weapon in the first place. Hope this helps steer you in the right direction. |
||||
|
Hi, the last comment above explain very well! You need to use variables, and add all weapons in the player, and hide all the weapons You need associated each variable to a different weapon, and use each key button to activate each weapon When you press a key, it must activate the variable, thats will unhide each weapon. |
||||
|
:V |
||||
|
What about implementing different animations each weapon |
||||
|
You set the animation depending on certain variables. Let's say the player clicks on a knife in the scene. The knife is then hidden and the variable knife is set to true. If the player presses 1 and the variable knife is true, then it will play the knife wield animation and set the variable knife_ready to true. Then on your attack button, you would ask if knife_ready is true and if so, you would play the knife attack animation. CC has an inbuilt action for changing animations. It's all a matter of setting up variables and if/else conditions to let the game know which one to play. You can do pretty much anything that way, but I would suggest learning JavaScript because it's less tedious than all those behaviors and actions. |
||||
|
Thanks but please can you offer a ccb file to clarify this, I beg your pardon |
||||
|
All good websites start with a blueprint. Developers call this a wireframe. It doesn’t have to be an official document; it’s simply a vision for your site that’ll give both you and your developer(s) direction and a place to start. You can draw it on a whiteboard or use a tool like Invision, Slickplan, or Mindnode https://mlsdev.com/services/it-s... |
|