12 第1页 | 共2 页下一页
返回列表 发新帖
查看: 2995|回复: 10
打印 上一主题 下一主题

第三人称角色控制教程2(上)

[复制链接]

5552

主题

2

听众

8万

积分

首席设计师

Rank: 8Rank: 8

纳金币
-1
精华
11

最佳新人 活跃会员 热心会员 灌水之王 突出贡献

跳转到指定楼层
楼主
发表于 2011-12-8 17:08:34 |只看该作者 |倒序浏览
In part 1 of our 3rd person character tutorial we created a basic scene and imported the character into the project, now we will set the input settings and the characters animation cycles.


Input Settings

Our character controller is quite simple; it has a walk and run option, so we need input settings to walk forwards, backwards, turn left, turn right and to switch between running and walking. Of course if you add actions such as jumping and attacks then you will want more input options. So lets configure the input settings for our controller.
Go to "Edit -> Project Settings -> Input".
This will bring up the input settings in the Inspector, pictured below:

You may need to expand the Axis section to reveal the input options, of which there should be 17 different input types. You will see Horizontal and Vertical at the top, these are the left, right, forward and backwards input options. They are named Horizontal and Vertical as they have positive and negative values for the alternate directions and are designed to support keyboard/pad input and analogue input (such as an analogue stick).
Then below that are a number of action inputs, of which we only need 1 (the walk/run toggle). We don't need 17 input options so lets change them:
1. First change the size from 17 to 3, which will get rid of most of the input options
2. We will leave the Horizontal and Vertical options as they are, but you can edit the button assignments if you wish. By default they are up, down, left, right with alternate options W, A, S and D.
3. Select the 3rd option (should be "Fire1"), and extend it to reveal its settings.

- Rename the input to "Run"

- Leave the Positive button as "left ctrl"

- If there is a Negative button, remove the value so its blank

- Remove the alternative Positive and Negative options so they are blank; fire defaults to Mouse 0 which can interfere with the controls.
Your controls should now look like the ones pictured below:

Coming back to the Horizontal and Vertical axes for a moment; Horizontal refers to your left and right controls and Vertical refers to your forward and backward controls (or up and down depending on your implementation).
You always have a positive and negative assignment and an alternative positive and negative assignment, these alternatives allow you to have alternative buttons attached to the control, however you should be careful that they do not conflict or interfere with eachother.



由 u8  发表
分享到: QQ好友和群QQ好友和群 腾讯微博腾讯微博 腾讯朋友腾讯朋友 微信微信
转播转播0 分享淘帖0 收藏收藏0 支持支持0 反对反对0
回复

使用道具 举报

315

主题

0

听众

1万

积分

资深设计师

Rank: 7Rank: 7Rank: 7

纳金币
10878
精华
0

最佳新人 活跃会员 热心会员 灌水之王 突出贡献

沙发
发表于 2011-12-9 09:11:39 |只看该作者
犀利啊
回复

使用道具 举报

462

主题

1

听众

31万

积分

首席设计师

Rank: 8Rank: 8

纳金币
2
精华
0

最佳新人 活跃会员 热心会员 灌水之王 突出贡献

板凳
发表于 2012-4-27 23:26:25 |只看该作者
我看看就走,你们聊!
回复

使用道具 举报

   

671

主题

1

听众

3247

积分

中级设计师

Rank: 5Rank: 5

纳金币
324742
精华
0

最佳新人 活跃会员 热心会员 灌水之王 突出贡献

地板
发表于 2012-5-9 23:27:49 |只看该作者
心中有爱,爱咋咋地
回复

使用道具 举报

   

671

主题

1

听众

3247

积分

中级设计师

Rank: 5Rank: 5

纳金币
324742
精华
0

最佳新人 活跃会员 热心会员 灌水之王 突出贡献

5#
发表于 2012-5-12 23:26:24 |只看该作者
不错啊 经典
回复

使用道具 举报

1023

主题

3

听众

359

积分

设计实习生

Rank: 2

纳金币
335582
精华
0

最佳新人

6#
发表于 2012-8-2 23:22:11 |只看该作者
心中有爱,爱咋咋地
回复

使用道具 举报

1023

主题

3

听众

359

积分

设计实习生

Rank: 2

纳金币
335582
精华
0

最佳新人

7#
发表于 2012-10-22 23:37:46 |只看该作者
顶!学习了!阅!
回复

使用道具 举报

1023

主题

3

听众

359

积分

设计实习生

Rank: 2

纳金币
335582
精华
0

最佳新人

8#
发表于 2013-1-29 23:20:01 |只看该作者
俺是新人,这厢有礼了!
回复

使用道具 举报

462

主题

1

听众

31万

积分

首席设计师

Rank: 8Rank: 8

纳金币
2
精华
0

最佳新人 活跃会员 热心会员 灌水之王 突出贡献

9#
发表于 2013-2-14 23:27:37 |只看该作者
都闪开,介个帖子,偶来顶
回复

使用道具 举报

5969

主题

1

听众

39万

积分

首席设计师

Rank: 8Rank: 8

纳金币
-1
精华
0

最佳新人 活跃会员 热心会员 灌水之王 突出贡献

10#
发表于 2013-2-20 23:27:53 |只看该作者
很经典,很实用,学习了!
回复

使用道具 举报

12 第1页 | 共2 页下一页
返回列表 发新帖
您需要登录后才可以回帖 登录 | 立即注册

手机版|纳金网 ( 闽ICP备2021016425号-2/3

GMT+8, 2024-9-20 22:50 , Processed in 0.178916 second(s), 32 queries .

Powered by Discuz!-创意设计 X2.5

© 2008-2019 Narkii Inc.

回顶部