-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGameMaker_Language.htm
1 lines (1 loc) · 5.45 KB
/
GameMaker_Language.htm
1
<!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml"><head><script type="text/javascript" language="JavaScript">function reDo(){innerWidth==origWidth&&innerHeight==origHeight||location.reload()}4==parseInt(navigator.appVersion)&&"Netscape"==navigator.appName&&(origWidth=innerWidth,origHeight=innerHeight,onresize=reDo),onerror=null</script><style type="text/css">p.WebHelpNavBar{text-align:right}</style><script type="text/javascript">gCommonRootRelPath=gRootRelPath=".",gTopicId="8"</script><script type="text/javascript" src="./template/scripts/rh.min.js"></script><script type="text/javascript" src="./template/scripts/common.min.js"></script><script type="text/javascript" src="./template/scripts/topic.min.js"></script><script type="text/javascript" src="./template/scripts/topicwidgets.min.js"></script><script type="text/javascript" src="./whxdata/projectsettings.js"></script><link rel="stylesheet" type="text/css" href="./template/styles/topic.min.css"><link rel="stylesheet" type="text/css" href="./template/Charcoal_Grey/topicheader.css"><meta name="topic-status" content="Draft"><link rel="stylesheet" type="text/css" href="assets/css/default.css"><script src="../assets/scripts/main_script.js"></script><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><meta name="generator" content="Adobe RoboHelp 2022"><title>GameMaker Language</title><meta name="topic-status" content="Draft"><link rel="stylesheet" type="text/css" href="assets/css/default.css"><meta name="template" content="assets/masterpages/Manual_Page.htt"><meta name="rh-authors" content="Gurpreet S. Matharoo"><meta name="brsnext" value="Drag_And_Drop/Drag_And_Drop_Index.htm"><meta name="brsprev" value="Additional_Information/Obsolete_Functions.htm"></head><body><div class="topic-header rh-hide" id="rh-topic-header"><div class="logo"></div><div class="nav"><div class="title" title="GameMaker Language"><span>GameMaker Language</span></div><div class="gotohome" title="Click here to see this page in full context"><a href="#" onclick="rh._.goToFullLayout()">Click here to see this page in full context</a></div></div></div><div class="topic-header-shadow rh-hide" id="rh-topic-header-shadow"></div><div></div><div><h1 id="h">GameMaker 语言</h1><p>您可以使用GameMaker 语言通过两种不同的方式对游戏进行编程:通过放置方块来直观地 “写入” 代码,或者手动编写代码。</p><p>第一个选项 <a href="Drag_And_Drop/Drag_And_Drop_Index.htm">GML 可视化</a> 最适合想要快速开始制作自己的游戏的初学者和业余爱好者。</p><p>第二个选项 <a href="GameMaker_Language/GameMaker_Language_Index.htm">GML 代码</a> 允许您通过手动编写代码来充分利用GameMaker语言的强大功能。</p><p>虽然 <span data-keyref="GML_Visual">GML可视化</span> 更易于开始使用,但 <span data-keyref="GML_Code">GML 代码</span> 仍然是一种易于使用的编程语言,具有强大的功能(<a href="GameMaker_Language/GML_Overview/Script_Functions.htm">函数</a>、<a href="GameMaker_Language/GML_Overview/Method_Variables.htm">方法</a>、<a href="GameMaker_Language/GML_Overview/Structs.htm">结构和构造函数</a>等)。</p><h2>创建可视化/代码脚本</h2><p>在创建一个新的对象事件、一个新的脚本资源或任何导致脚本创建的东西时,您需要在 <span data-keyref="GML_Code">GML Code</span> 和 <span data-keyref="GML_Visual">GML Visual</span> 之间做出选择:</p><p><img class="center" src="assets/Images/Scripting_Reference/GML_Visual_Code_Dialog.png">除了在 <span data-keyref="GML_Code">GML 代码</span>和 <span data-keyref="GML_Visual">GML Visual</span> 之间进行选择之外,此窗口还包含两个复选框:</p><ul class="colour"><li><strong>不再询问此项目</strong>:启用此选项后,它会将"默认脚本语言"<a href="Settings/Game_Options.htm">游戏选项</a>设置为您的新选择,这样您就不会被要求为当前项目再次选择。</li><li><strong>永远不再询问</strong>:启用此选项后,它会将"默认脚本语言"<a href="Setting_Up_And_Version_Information/IDE_Preferences/Language_Preferences.htm">首选项</a> 设置为您的新选择,这样您就永远不会再被要求为<em>任何</em>项目进行选择。</li></ul><h2><span data-keyref="GML_Visual">GML 可视化</span></h2><p>这是 GameMaker 的<strong>可视化脚本</strong>方法,它使用链接在一起的<em>动作块来创建游戏的逻辑。以下各节介绍如何使用这些操作:</em></p><ul class="colour"><li><a href="Drag_And_Drop/Drag_And_Drop_Overview/DnD_Overview.htm">GML 可视化概述</a></li><li><a href="Drag_And_Drop/Drag_And_Drop_Reference/DnD_Reference.htm">GML 可视化参考</a></li></ul><h2><span data-keyref="GML_Code">GML 代码</span></h2><p>使用函数、变量和其他编码构造编写 GML 代码,并创建游戏逻辑。以下各节介绍如何使用 GML 编写代码:</p><ul class="colour"><li><a href="GameMaker_Language/GML_Overview/GML_Overview.htm">GML 代码概述</a></li><li><a href="GameMaker_Language/GML_Reference/GML_Reference.htm">GML 代码参考</a></li></ul><p> </p><div class="droptext" data-targetname="drop_down9"><ul class="colour"></ul></div><p> </p><div class="footer"><div class="buttons"><div class="clear"><div>Back: <a href="Content.htm">GameMaker手册索引</a></div><div> </div></div></div><h5><span data-keyref="Copyright Notice">© Copyright YoYo Games Ltd. 2024 All Rights Reserved</span></h5></div></div></body></html>