V
主页
京东 11.11 红包
超详细解释 Godot 4 的 InputEvents 和 InputActions 输入事件响应!(Godot C#)按键鼠标手柄触摸
发布人
https://www.youtube.com/watch?v=pLjDorwSsxU 0:00 - 介绍、简介和概述 1:25 - 创建新项目 2:03 - 在项目中创建新文件夹 2:39 - 创建新场景 3:20 - 设置主场景 3:30 - Godot 4 中 2D 和 UI 的优势! 4:08 - 创建并添加类“InputTesterSprite2D.cs” 5:14 - 编辑新的 C# 文件 5:54 - 使用 GlobalClass 属性 6:07 - C# 提醒:Godot 引擎方法的“覆盖”! 6:50 - 可选方法:_Ready()、_Process() 等等! 7:23 - Godot 4 中的 _Input(event) 方法 7:54 - C# 变量名前面有 @ 吗?为什么? 8:41 - Godot 4 中的 InputEvent 是什么? 9:25 - Godot 4 支持哪些输入事件? 9:46 -InputEventMouseMotion 10:03 -InputEventMouseButton 10:21 -InputEventKey 10:38 -InputEventJoypadMotion 10:58 -InputEventJoypadButton 11:22 -InputEventScreenTouch 11:50 -InputEventScreenDrag 12:16 -InputEventMagnifyGesture 和 InputEventPanGesture 12:30 -InputEventMIDI 13:13 - InputEvent 作为 Godot 4 中的资源! 14:00 - 在资源目录中查找InputEvent类型 15:03 - 创建前5个InputEvent作为资源 15:43 - Inspector中InputEvent的字段和属性 16:10 - 配置InputEventKey:按钮和状态 18:30 - 配置InputEventJoypadButton :按钮和DeviceId 20:14 - 配置InputEventMouseButton:按钮和DeviceId 21:15 - 配置InputEventJoypadMotion:轴和强度 23:25 - 了解InputEventMouseMotion:按钮、相对和速度 24:00 - C#:_Input( 中的Is-Statement 和InputEvent ) 26:15 - 从InputEventKey查询准确数据 27:41 - _Input():按下按钮、按住、松开并更改运动中的值 28:30 - 查询特定按钮和状态 29:05 - C# Is 语句包含对象属性和字段(类似 JSON) 30:34 -构建并运行:查询测试 30:59 - 在 C# 中查询特定设备 ID 31:50 - InputEventJoypadButton:仅按下或释放才会生成更新! 32:10 - InputEventJoypedMotion:值更改时更新! 33:21 - 输入事件操作简介? 33:39 - 创建 InputEventActions 作为资源 34:10 - 查看并理解项目中的 InputEventActions 36:31 - 创建新的 InputEventAction 36:55 - 示例操作:“Player_Move_left” - 分配事件 38:12 - InputEventActions 在哪里项目已保存? 39:33 通过 C# 创建 InputEventAction 并用 InputEvents 填充它 43:45 C# 功能:#region #endregion用于清理 44:37 在 C# 中查询是否按下了 InputEventAction? 46:18 在 C# 中查询是否按下任意键 46:47 提示:提高代码的可维护性;无“魔术字符串” 48:09 在 _Ready() 中创建 InputEventAction 48:48 构建和测试:InputEventAction 是否被按下? 49:30本地多人游戏模式:创建 InputEventActions 52:59本地多人游戏模式:创建类“Player2D” 53:34C#:通过玩家 ID 找出 InputEventAction 名称! 54:56C#:让玩家移动:Input.GetVector、速度和时间 58:15添加 [GlobalClass] 属性 58:26添加并配置“Player2D”:“Modulate” 59:20构建和测试:控制玩家 1 和 2 59:43审核总结和展望
打开封面
下载高清视频
观看高清视频
视频下载器
Godot 4 通过加密安全轻松进行保存和加载游戏进度!
如何在 Godot 4 中创建(安卓手机)触控屏摇杆/触摸操纵杆!(独立游戏开发教程)
如何使 Godot 4 用更少的物理框架优化性能!(Godot 制作 RTS 游戏教程)
Godot 4 优化教程:提升您的游戏性能!
Godot 4 游戏引擎的第三人称控制器中文教程
Godot 4 使用FOSS工具从零开始制作3D森林夜间环境
Godot 组件:如何将游戏构建为可管理的部分(初级/中级)
干货满满,适合新手!godot4复刻类《背包乱斗》背包管理系统教程-03-2-基于网格的Inventory背包,表现层实现
三天制作一个简单完整的RPG游戏
Godot 4 中的中介模式,维护可重用性和模块化的更好解决方案!
Godot 4 中的信号初学者指南
Godot 4 游戏引擎第一人称玩家角色控制器终极教程(2/3)
Godot 4 中使用 TileMap 的 2D 运动教程!
Godot 4 用户UI界面控制节点入门教程!
godot4复刻类《背包乱斗》背包管理系统教程-02-可拖放的道具
Godot 4 中的 2D 着色器入门(一):简介、颜色和 UV
[中文字幕]使用 C# 开发 Unity 2D 银河恶魔城游戏
godot源码开发02-设置vs调试器调试godot编辑器
Godot 4 引擎 C# 版本开发3D平台第三人称游戏系列教程7:硬币 UI 和自定义信号
Godot 4 引擎 C# 版本开发3D平台第三人称游戏系列教程10:保存游戏数据
Godot 中文教程:五分钟制作一个边缘检测着色器
在 Godot 4 游戏引擎中使用多线程的快速教程!
Godot 游戏引擎游戏项目的最佳文件结构(参考)
Godot 4 中文教程:如何用 AI 制作乒乓球弹球游戏!
Godot政治正确骂战结束?➡️扯上了美国大选?
Godot 4 恐怖游戏开发教程P1:创建角色控制器
在 Godot 中构建 Lumosity 风格的主菜单
Godot开发放置类游戏(1):玩法、组件和源码
Godot 4 弹出Windows窗口的教程
Godot 4 常见输入错误:检测和意外问题 - 输入单例与输入事件!
Godot 4 中文教程:基于Path3D路径的网格生成技术
Godot 4.0 游戏引擎开发小行星射击游戏中文教程(完整教程)
在 Godot 中使用后台线程异步加载场景
在Godot4中使用CanvasLayer和CanvasItem进行图层管理【中文配音版】godot教程
Godot 4 中的 3D 太空空间关卡设计,和天空环境设置!
Godot 着色器教程:立即开始制作着色器!
Godot 4 Shader 着色器预处理器及其工作原理
在 Godot 4 引擎中向 3D 水添加涟漪效果
Godot游戏引擎使用Nakama和WebRTC构建多人网络游戏
【Lee哥】Godot事件反转?并没有,来看看这些所谓洗白的说辞 | Godot