<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-8551798844080929407</id><updated>2024-11-05T18:44:56.501-08:00</updated><category term="Script"/><category term="Agregado Mapa"/><category term="Engines"/><category term="Menu Principal"/><category term="Tutoriales"/><category term="Agregado sistema batalla"/><category term="Crear un juego desde 0."/><category term="Propios"/><category term="Sistema de Batalla"/><category term="Menu Titulos"/><category term="Banco"/><category term="Batallas mapa"/><category term="Menu Otros"/><category term="Agregado Menu"/><category term="Menu Item"/><category term="Minijuego"/><category term="Agregado Menu Equipo"/><category term="Agregado Menu Titulos"/><category term="Menu Nombre"/><category term="Tienda"/><category term="Agregado Menu Status"/><category term="Menu Estado"/><category term="Menu Guardado"/><category term="Menu Guardado-Cargado"/><category term="Menu Habilidades"/><category term="Menu de aumento de parametros"/><category term="Opciones del Maker"/><category term="Scene end"/><category term="Sistema mensajes"/><category term="Utilidades"/><title type='text'>Taller RpgMaker xp</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://taller-maker.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8551798844080929407/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://taller-maker.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/8551798844080929407/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>tenshi98</name><uri>http://www.blogger.com/profile/06461952114644591440</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgMYLI_10CchcS8kNq5rxFCb-2qgfYgYV8MlGNlr-L_ZsMxcoL6C9ytoDmsLM05VJC6-1jMPVIZtoNxo_fHPevstQM3dgJvyQ8gLq4Dr4bIAGs3R3aaBtaJPz8E1e1How/s220/Albert_Wesker___Resident_Evil_by_megakay.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>172</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-8551798844080929407.post-3817004230153480049</id><published>2012-05-05T09:12:00.004-07:00</published><updated>2012-05-05T09:12:47.220-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Agregado Mapa"/><category scheme="http://www.blogger.com/atom/ns#" term="Engines"/><category scheme="http://www.blogger.com/atom/ns#" term="Script"/><title type='text'>Ejemplo_de_puzles</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhGaOdlxfYG4lyR0A7WV_PF5UwuEP2_nBZQ7pbQ9FN9iJ0Ym5if477NxBTJU2P3yIrU19YgwD-vblE_QlijOR764o0RDjR81w-xWHoxJlAl5oJgOQgjkOmzIcHov2cDS7d5ZjYkQpZ5XPM/s1600/Ejemplo_de_puzles.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;315&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhGaOdlxfYG4lyR0A7WV_PF5UwuEP2_nBZQ7pbQ9FN9iJ0Ym5if477NxBTJU2P3yIrU19YgwD-vblE_QlijOR764o0RDjR81w-xWHoxJlAl5oJgOQgjkOmzIcHov2cDS7d5ZjYkQpZ5XPM/s400/Ejemplo_de_puzles.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
Titulo : Ejemplo_de_puzles&lt;br /&gt;Autor : ?&lt;br /&gt;Tipo : Hibrido&lt;br /&gt;Version : ?&lt;br /&gt;Descripcion : varios ejemplos de puzles&lt;br /&gt;&lt;a href=&quot;http://adf.ly/6syLp&quot;&gt;Descarga&lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;</content><link rel='replies' type='application/atom+xml' href='http://taller-maker.blogspot.com/feeds/3817004230153480049/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://taller-maker.blogspot.com/2012/05/ejemplodepuzles.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8551798844080929407/posts/default/3817004230153480049'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8551798844080929407/posts/default/3817004230153480049'/><link rel='alternate' type='text/html' href='http://taller-maker.blogspot.com/2012/05/ejemplodepuzles.html' title='Ejemplo_de_puzles'/><author><name>tenshi98</name><uri>http://www.blogger.com/profile/06461952114644591440</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgMYLI_10CchcS8kNq5rxFCb-2qgfYgYV8MlGNlr-L_ZsMxcoL6C9ytoDmsLM05VJC6-1jMPVIZtoNxo_fHPevstQM3dgJvyQ8gLq4Dr4bIAGs3R3aaBtaJPz8E1e1How/s220/Albert_Wesker___Resident_Evil_by_megakay.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhGaOdlxfYG4lyR0A7WV_PF5UwuEP2_nBZQ7pbQ9FN9iJ0Ym5if477NxBTJU2P3yIrU19YgwD-vblE_QlijOR764o0RDjR81w-xWHoxJlAl5oJgOQgjkOmzIcHov2cDS7d5ZjYkQpZ5XPM/s72-c/Ejemplo_de_puzles.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8551798844080929407.post-62769470282445943</id><published>2012-05-05T09:11:00.002-07:00</published><updated>2012-05-05T09:11:32.230-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Agregado Mapa"/><category scheme="http://www.blogger.com/atom/ns#" term="Engines"/><title type='text'>Ejemplo Reflejo_por_Kandorf</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgOWXp_7K8ro93PL-xIKzwsEbEdedJla8XPYKpcACcXVne3ybxyHn6A3QzfeKxVaFQpyLqhH0qHBaES11UCCQ7t-rdw1vEPyLaTlvYsR2JZr3C7ERLJ63ku1dcxSDC0sOzGCEKkh1pu7ZI/s1600/Ejemplo+Reflejo_por_Kandorf.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;312&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgOWXp_7K8ro93PL-xIKzwsEbEdedJla8XPYKpcACcXVne3ybxyHn6A3QzfeKxVaFQpyLqhH0qHBaES11UCCQ7t-rdw1vEPyLaTlvYsR2JZr3C7ERLJ63ku1dcxSDC0sOzGCEKkh1pu7ZI/s400/Ejemplo+Reflejo_por_Kandorf.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
Titulo : Ejemplo Reflejo_por_Kandorf&lt;br /&gt;Autor : Kandorf&lt;br /&gt;Tipo : Engine&lt;br /&gt;Version : ?&lt;br /&gt;Descripcion : un engine de reflejo&lt;br /&gt;&lt;a href=&quot;http://adf.ly/6syJW&quot;&gt;Descarga&lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;</content><link rel='replies' type='application/atom+xml' href='http://taller-maker.blogspot.com/feeds/62769470282445943/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://taller-maker.blogspot.com/2012/05/ejemplo-reflejoporkandorf.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8551798844080929407/posts/default/62769470282445943'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8551798844080929407/posts/default/62769470282445943'/><link rel='alternate' type='text/html' href='http://taller-maker.blogspot.com/2012/05/ejemplo-reflejoporkandorf.html' title='Ejemplo Reflejo_por_Kandorf'/><author><name>tenshi98</name><uri>http://www.blogger.com/profile/06461952114644591440</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgMYLI_10CchcS8kNq5rxFCb-2qgfYgYV8MlGNlr-L_ZsMxcoL6C9ytoDmsLM05VJC6-1jMPVIZtoNxo_fHPevstQM3dgJvyQ8gLq4Dr4bIAGs3R3aaBtaJPz8E1e1How/s220/Albert_Wesker___Resident_Evil_by_megakay.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgOWXp_7K8ro93PL-xIKzwsEbEdedJla8XPYKpcACcXVne3ybxyHn6A3QzfeKxVaFQpyLqhH0qHBaES11UCCQ7t-rdw1vEPyLaTlvYsR2JZr3C7ERLJ63ku1dcxSDC0sOzGCEKkh1pu7ZI/s72-c/Ejemplo+Reflejo_por_Kandorf.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8551798844080929407.post-8961780628552308266</id><published>2012-05-05T09:08:00.004-07:00</published><updated>2012-05-05T09:08:44.951-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Agregado Mapa"/><category scheme="http://www.blogger.com/atom/ns#" term="Engines"/><title type='text'>Ejemplo puzle_por_Kandorf</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiF5go8akJAzwhhYBWErpisJq2NHE0qvYuhYA4PVXR_T3pypdcPBZWj-BMxvfnRMu3uoTVVXnG8s7qIKqLNfQHJkUoAA4Uk1F3eqn0jWCQijBcK7v0cpYz_jtZ-w0ykRaDqSTWh2qneGUw/s1600/Ejemplo+puzle_por_Kandorf.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;311&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiF5go8akJAzwhhYBWErpisJq2NHE0qvYuhYA4PVXR_T3pypdcPBZWj-BMxvfnRMu3uoTVVXnG8s7qIKqLNfQHJkUoAA4Uk1F3eqn0jWCQijBcK7v0cpYz_jtZ-w0ykRaDqSTWh2qneGUw/s400/Ejemplo+puzle_por_Kandorf.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
Titulo : Ejemplo puzle_por_Kandorf&lt;br /&gt;Autor : Kandorf&lt;br /&gt;Tipo : Engine&lt;br /&gt;Version : ?&lt;br /&gt;Descripcion : un ejemplo de puzles&lt;br /&gt;&lt;a href=&quot;http://adf.ly/6syDg&quot;&gt;Descarga&amp;nbsp;&amp;nbsp;&lt;/a&gt;&amp;nbsp; &lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://taller-maker.blogspot.com/feeds/8961780628552308266/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://taller-maker.blogspot.com/2012/05/ejemplo-puzleporkandorf.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8551798844080929407/posts/default/8961780628552308266'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8551798844080929407/posts/default/8961780628552308266'/><link rel='alternate' type='text/html' href='http://taller-maker.blogspot.com/2012/05/ejemplo-puzleporkandorf.html' title='Ejemplo puzle_por_Kandorf'/><author><name>tenshi98</name><uri>http://www.blogger.com/profile/06461952114644591440</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgMYLI_10CchcS8kNq5rxFCb-2qgfYgYV8MlGNlr-L_ZsMxcoL6C9ytoDmsLM05VJC6-1jMPVIZtoNxo_fHPevstQM3dgJvyQ8gLq4Dr4bIAGs3R3aaBtaJPz8E1e1How/s220/Albert_Wesker___Resident_Evil_by_megakay.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiF5go8akJAzwhhYBWErpisJq2NHE0qvYuhYA4PVXR_T3pypdcPBZWj-BMxvfnRMu3uoTVVXnG8s7qIKqLNfQHJkUoAA4Uk1F3eqn0jWCQijBcK7v0cpYz_jtZ-w0ykRaDqSTWh2qneGUw/s72-c/Ejemplo+puzle_por_Kandorf.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8551798844080929407.post-2259943528725689130</id><published>2012-05-05T09:07:00.003-07:00</published><updated>2012-05-05T09:07:39.727-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Menu Titulos"/><category scheme="http://www.blogger.com/atom/ns#" term="Script"/><title type='text'>Ejemplo menu titulos de anillo</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgBkeZt08kj1cBbh5npW-vZ8DgxHLhbjBTFNbvn3cd2bJYkFDT07y9O7kbivaydIcVoBQoZzg_QjuhkwOWllEFrgNQ-yI18owb3Us3y6sP0FBYlNTHzkxUHv3FsONZEXAjGcxpgdPWgr2Q/s1600/Ejemplo+menu+anillo.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;311&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgBkeZt08kj1cBbh5npW-vZ8DgxHLhbjBTFNbvn3cd2bJYkFDT07y9O7kbivaydIcVoBQoZzg_QjuhkwOWllEFrgNQ-yI18owb3Us3y6sP0FBYlNTHzkxUHv3FsONZEXAjGcxpgdPWgr2Q/s400/Ejemplo+menu+anillo.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
Titulo : Ejemplo menu titulos de anillo&lt;br /&gt;Autor : Dark_Wolf_Warrior&lt;br /&gt;Tipo : Script&lt;br /&gt;Version : ?&lt;br /&gt;Descripcion : menu de titulos con un menu anillo&lt;br /&gt;&lt;a href=&quot;http://adf.ly/6syBY&quot;&gt;Descarga&lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;</content><link rel='replies' type='application/atom+xml' href='http://taller-maker.blogspot.com/feeds/2259943528725689130/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://taller-maker.blogspot.com/2012/05/ejemplo-menu-titulos-de-anillo.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8551798844080929407/posts/default/2259943528725689130'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8551798844080929407/posts/default/2259943528725689130'/><link rel='alternate' type='text/html' href='http://taller-maker.blogspot.com/2012/05/ejemplo-menu-titulos-de-anillo.html' title='Ejemplo menu titulos de anillo'/><author><name>tenshi98</name><uri>http://www.blogger.com/profile/06461952114644591440</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgMYLI_10CchcS8kNq5rxFCb-2qgfYgYV8MlGNlr-L_ZsMxcoL6C9ytoDmsLM05VJC6-1jMPVIZtoNxo_fHPevstQM3dgJvyQ8gLq4Dr4bIAGs3R3aaBtaJPz8E1e1How/s220/Albert_Wesker___Resident_Evil_by_megakay.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgBkeZt08kj1cBbh5npW-vZ8DgxHLhbjBTFNbvn3cd2bJYkFDT07y9O7kbivaydIcVoBQoZzg_QjuhkwOWllEFrgNQ-yI18owb3Us3y6sP0FBYlNTHzkxUHv3FsONZEXAjGcxpgdPWgr2Q/s72-c/Ejemplo+menu+anillo.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8551798844080929407.post-5882460244651646589</id><published>2012-05-05T09:05:00.002-07:00</published><updated>2012-05-05T09:05:46.238-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Banco"/><category scheme="http://www.blogger.com/atom/ns#" term="Engines"/><title type='text'>Ejebanco</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjNCfRVv2Cpb8DAaz5Ol6vRbPO4gjQhd0csxac0zuIQhiz0ZrGCyVTLzXeqYkhpJD7de4ktMpwGyFtTmtL2zzhcSdxzVnLf-UeiZGParU_9ma6NbeF2OPvInidvF70dGNEXOY75Eczg83I/s1600/Ejebanco.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;313&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjNCfRVv2Cpb8DAaz5Ol6vRbPO4gjQhd0csxac0zuIQhiz0ZrGCyVTLzXeqYkhpJD7de4ktMpwGyFtTmtL2zzhcSdxzVnLf-UeiZGParU_9ma6NbeF2OPvInidvF70dGNEXOY75Eczg83I/s400/Ejebanco.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
Titulo : Ejebanco&lt;br /&gt;Autor : ?&lt;br /&gt;Tipo : Engine&lt;br /&gt;Version : ?&lt;br /&gt;Descripcion : un ejemplo de banco&lt;br /&gt;&lt;a href=&quot;http://adf.ly/6sy9r&quot;&gt;Descarga&lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://taller-maker.blogspot.com/feeds/5882460244651646589/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://taller-maker.blogspot.com/2012/05/ejebanco.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8551798844080929407/posts/default/5882460244651646589'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8551798844080929407/posts/default/5882460244651646589'/><link rel='alternate' type='text/html' href='http://taller-maker.blogspot.com/2012/05/ejebanco.html' title='Ejebanco'/><author><name>tenshi98</name><uri>http://www.blogger.com/profile/06461952114644591440</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgMYLI_10CchcS8kNq5rxFCb-2qgfYgYV8MlGNlr-L_ZsMxcoL6C9ytoDmsLM05VJC6-1jMPVIZtoNxo_fHPevstQM3dgJvyQ8gLq4Dr4bIAGs3R3aaBtaJPz8E1e1How/s220/Albert_Wesker___Resident_Evil_by_megakay.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjNCfRVv2Cpb8DAaz5Ol6vRbPO4gjQhd0csxac0zuIQhiz0ZrGCyVTLzXeqYkhpJD7de4ktMpwGyFtTmtL2zzhcSdxzVnLf-UeiZGParU_9ma6NbeF2OPvInidvF70dGNEXOY75Eczg83I/s72-c/Ejebanco.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8551798844080929407.post-6767900958091696933</id><published>2012-05-05T09:04:00.004-07:00</published><updated>2012-05-05T09:04:28.777-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Agregado Mapa"/><category scheme="http://www.blogger.com/atom/ns#" term="Script"/><title type='text'>Efecto de luces</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjiedwtZci1SX1QU9Skbr7L6Vww9jqhqnK_WBJofiw5W22QUxEl5IFztvNX7vQRv_0kgOI-Da1VZL9cL0Rn1Q2yvAbJ1BJZ0SB0DtZlaGHljC-pjPpeRUN0i8RaJtuP5vSLo0brHxjHnbo/s1600/Efecto+de+luces.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;313&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjiedwtZci1SX1QU9Skbr7L6Vww9jqhqnK_WBJofiw5W22QUxEl5IFztvNX7vQRv_0kgOI-Da1VZL9cL0Rn1Q2yvAbJ1BJZ0SB0DtZlaGHljC-pjPpeRUN0i8RaJtuP5vSLo0brHxjHnbo/s400/Efecto+de+luces.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
Titulo : Efecto de luces&lt;br /&gt;Autor : SephirothSpawn&lt;br /&gt;Tipo : Script&lt;br /&gt;Version : ?&lt;br /&gt;Descripcion : agrega un script de linterna&lt;br /&gt;&lt;a href=&quot;http://adf.ly/6sy8Z&quot;&gt;Descarga&lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;</content><link rel='replies' type='application/atom+xml' href='http://taller-maker.blogspot.com/feeds/6767900958091696933/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://taller-maker.blogspot.com/2012/05/efecto-de-luces.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8551798844080929407/posts/default/6767900958091696933'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8551798844080929407/posts/default/6767900958091696933'/><link rel='alternate' type='text/html' href='http://taller-maker.blogspot.com/2012/05/efecto-de-luces.html' title='Efecto de luces'/><author><name>tenshi98</name><uri>http://www.blogger.com/profile/06461952114644591440</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgMYLI_10CchcS8kNq5rxFCb-2qgfYgYV8MlGNlr-L_ZsMxcoL6C9ytoDmsLM05VJC6-1jMPVIZtoNxo_fHPevstQM3dgJvyQ8gLq4Dr4bIAGs3R3aaBtaJPz8E1e1How/s220/Albert_Wesker___Resident_Evil_by_megakay.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjiedwtZci1SX1QU9Skbr7L6Vww9jqhqnK_WBJofiw5W22QUxEl5IFztvNX7vQRv_0kgOI-Da1VZL9cL0Rn1Q2yvAbJ1BJZ0SB0DtZlaGHljC-pjPpeRUN0i8RaJtuP5vSLo0brHxjHnbo/s72-c/Efecto+de+luces.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8551798844080929407.post-2900604580064389181</id><published>2012-05-05T08:52:00.002-07:00</published><updated>2012-05-05T08:52:54.539-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Agregado Menu Titulos"/><category scheme="http://www.blogger.com/atom/ns#" term="Script"/><title type='text'>Easy intro script</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJ8uato4ooaSV2giG320Mo2Irmj4EXcfR_GVIKeVHrzC0uxrowTCKDSP-M0oCI5ZBssrXB31Nk6e_OKOftmYFIL7tsP67GqV87i0pvRMSLMTDSh6loWfuTS4UvgdMhyphenhyphenhDYvkbTe_fYVPY/s1600/Easy+intro+script.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;251&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJ8uato4ooaSV2giG320Mo2Irmj4EXcfR_GVIKeVHrzC0uxrowTCKDSP-M0oCI5ZBssrXB31Nk6e_OKOftmYFIL7tsP67GqV87i0pvRMSLMTDSh6loWfuTS4UvgdMhyphenhyphenhDYvkbTe_fYVPY/s320/Easy+intro+script.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
Titulo : Easy intro script&lt;br /&gt;Autor : Slipknot&lt;br /&gt;Tipo : Script&lt;br /&gt;Version : ?&lt;br /&gt;Descripcion : introduccion tipo star wars&lt;br /&gt;&lt;a href=&quot;http://adf.ly/6sy6g&quot;&gt;Descarga&amp;nbsp;&lt;/a&gt;&amp;nbsp;&amp;nbsp;</content><link rel='replies' type='application/atom+xml' href='http://taller-maker.blogspot.com/feeds/2900604580064389181/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://taller-maker.blogspot.com/2012/05/easy-intro-script.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8551798844080929407/posts/default/2900604580064389181'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8551798844080929407/posts/default/2900604580064389181'/><link rel='alternate' type='text/html' href='http://taller-maker.blogspot.com/2012/05/easy-intro-script.html' title='Easy intro script'/><author><name>tenshi98</name><uri>http://www.blogger.com/profile/06461952114644591440</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgMYLI_10CchcS8kNq5rxFCb-2qgfYgYV8MlGNlr-L_ZsMxcoL6C9ytoDmsLM05VJC6-1jMPVIZtoNxo_fHPevstQM3dgJvyQ8gLq4Dr4bIAGs3R3aaBtaJPz8E1e1How/s220/Albert_Wesker___Resident_Evil_by_megakay.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJ8uato4ooaSV2giG320Mo2Irmj4EXcfR_GVIKeVHrzC0uxrowTCKDSP-M0oCI5ZBssrXB31Nk6e_OKOftmYFIL7tsP67GqV87i0pvRMSLMTDSh6loWfuTS4UvgdMhyphenhyphenhDYvkbTe_fYVPY/s72-c/Easy+intro+script.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8551798844080929407.post-5704672674063971279</id><published>2012-05-05T08:51:00.000-07:00</published><updated>2012-05-05T08:51:24.012-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Menu Otros"/><category scheme="http://www.blogger.com/atom/ns#" term="Script"/><title type='text'>Easy Character_Creator</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjxuUuGZpXB78yYSrFg-jQa0l1E1Bs71RoQgFeTN61SWZ_4IQFrEj-Zd0CLAg_oasfp_XH_2cUWDzAXAaWSMGh-nP2JZxVRm0kCaaFCJlz6eUFAM0rYGUjhTwX7f0v6pl3jGC0FVBguhwI/s1600/Easy+Character_Creator.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;312&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjxuUuGZpXB78yYSrFg-jQa0l1E1Bs71RoQgFeTN61SWZ_4IQFrEj-Zd0CLAg_oasfp_XH_2cUWDzAXAaWSMGh-nP2JZxVRm0kCaaFCJlz6eUFAM0rYGUjhTwX7f0v6pl3jGC0FVBguhwI/s400/Easy+Character_Creator.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
Titulo : Easy Character_Creator&lt;br /&gt;Autor : Kotfire&lt;br /&gt;Tipo : Script&lt;br /&gt;Version : 2.0&lt;br /&gt;Descripcion : permite crear desde 0 a un personaje, personalizandolo totalmente&lt;br /&gt;&lt;a href=&quot;http://adf.ly/6sy2p&quot;&gt;Descarga&lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;</content><link rel='replies' type='application/atom+xml' href='http://taller-maker.blogspot.com/feeds/5704672674063971279/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://taller-maker.blogspot.com/2012/05/easy-charactercreator.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8551798844080929407/posts/default/5704672674063971279'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8551798844080929407/posts/default/5704672674063971279'/><link rel='alternate' type='text/html' href='http://taller-maker.blogspot.com/2012/05/easy-charactercreator.html' title='Easy Character_Creator'/><author><name>tenshi98</name><uri>http://www.blogger.com/profile/06461952114644591440</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgMYLI_10CchcS8kNq5rxFCb-2qgfYgYV8MlGNlr-L_ZsMxcoL6C9ytoDmsLM05VJC6-1jMPVIZtoNxo_fHPevstQM3dgJvyQ8gLq4Dr4bIAGs3R3aaBtaJPz8E1e1How/s220/Albert_Wesker___Resident_Evil_by_megakay.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjxuUuGZpXB78yYSrFg-jQa0l1E1Bs71RoQgFeTN61SWZ_4IQFrEj-Zd0CLAg_oasfp_XH_2cUWDzAXAaWSMGh-nP2JZxVRm0kCaaFCJlz6eUFAM0rYGUjhTwX7f0v6pl3jGC0FVBguhwI/s72-c/Easy+Character_Creator.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8551798844080929407.post-3381372231814793846</id><published>2012-05-05T08:49:00.004-07:00</published><updated>2012-05-05T08:49:57.836-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Agregado Mapa"/><category scheme="http://www.blogger.com/atom/ns#" term="Script"/><title type='text'>Dynamic Time</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiO-WCcvhRnGIZTP8gTWAVNUt858CifNC9AgiEj4Zkq0L7Cp9DfHBxRxpfcGhGUwB1y5XONjJSMtlWIQU9IFeN-1Gmt3aUqsG85xlJKURHouELsNVylcwY3HhnHhZs85powMa151SlsIgE/s1600/DynamicTime.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;311&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiO-WCcvhRnGIZTP8gTWAVNUt858CifNC9AgiEj4Zkq0L7Cp9DfHBxRxpfcGhGUwB1y5XONjJSMtlWIQU9IFeN-1Gmt3aUqsG85xlJKURHouELsNVylcwY3HhnHhZs85powMa151SlsIgE/s400/DynamicTime.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
Titulo : Dynamic Time&lt;br /&gt;Autor : ccoa&lt;br /&gt;Tipo : Script&lt;br /&gt;Version : ?&lt;br /&gt;Descripcion : implementa un sistema de tiempo meteorologico dinamico&lt;br /&gt;&lt;a href=&quot;http://adf.ly/6sy0C&quot;&gt;Descarga&lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;</content><link rel='replies' type='application/atom+xml' href='http://taller-maker.blogspot.com/feeds/3381372231814793846/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://taller-maker.blogspot.com/2012/05/dynamic-time.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8551798844080929407/posts/default/3381372231814793846'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8551798844080929407/posts/default/3381372231814793846'/><link rel='alternate' type='text/html' href='http://taller-maker.blogspot.com/2012/05/dynamic-time.html' title='Dynamic Time'/><author><name>tenshi98</name><uri>http://www.blogger.com/profile/06461952114644591440</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgMYLI_10CchcS8kNq5rxFCb-2qgfYgYV8MlGNlr-L_ZsMxcoL6C9ytoDmsLM05VJC6-1jMPVIZtoNxo_fHPevstQM3dgJvyQ8gLq4Dr4bIAGs3R3aaBtaJPz8E1e1How/s220/Albert_Wesker___Resident_Evil_by_megakay.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiO-WCcvhRnGIZTP8gTWAVNUt858CifNC9AgiEj4Zkq0L7Cp9DfHBxRxpfcGhGUwB1y5XONjJSMtlWIQU9IFeN-1Gmt3aUqsG85xlJKURHouELsNVylcwY3HhnHhZs85powMa151SlsIgE/s72-c/DynamicTime.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8551798844080929407.post-8249095592672187927</id><published>2012-05-05T08:47:00.003-07:00</published><updated>2012-05-05T08:47:39.458-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Script"/><category scheme="http://www.blogger.com/atom/ns#" term="Tienda"/><title type='text'>Dynamic Stores Demo</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgYi2i6EUhN5Rm1VZopgn73H2GOM4ITrv8KBJDrcaMc16p3vHNiixtHH8ahOEy_DsSbw-kcDDMqBmMh4emZXSb9mzSRDphNTaleOztKwyTtHT_K8tB-QBSddryLWRqZxyp5kzw5_C9W-l0/s1600/Dynamic+Stores+Demo.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;313&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgYi2i6EUhN5Rm1VZopgn73H2GOM4ITrv8KBJDrcaMc16p3vHNiixtHH8ahOEy_DsSbw-kcDDMqBmMh4emZXSb9mzSRDphNTaleOztKwyTtHT_K8tB-QBSddryLWRqZxyp5kzw5_C9W-l0/s400/Dynamic+Stores+Demo.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
Titulo : Dynamic Stores Demo&lt;br /&gt;Autor : Astro_mech&lt;br /&gt;Tipo : Script&lt;br /&gt;Version : ?&lt;br /&gt;Descripcion : hace que los onbjetos varien en una misma tienda&lt;br /&gt;&lt;a href=&quot;http://adf.ly/6sxz2&quot;&gt;Descarga&lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;</content><link rel='replies' type='application/atom+xml' href='http://taller-maker.blogspot.com/feeds/8249095592672187927/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://taller-maker.blogspot.com/2012/05/dynamic-stores-demo.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8551798844080929407/posts/default/8249095592672187927'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8551798844080929407/posts/default/8249095592672187927'/><link rel='alternate' type='text/html' href='http://taller-maker.blogspot.com/2012/05/dynamic-stores-demo.html' title='Dynamic Stores Demo'/><author><name>tenshi98</name><uri>http://www.blogger.com/profile/06461952114644591440</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgMYLI_10CchcS8kNq5rxFCb-2qgfYgYV8MlGNlr-L_ZsMxcoL6C9ytoDmsLM05VJC6-1jMPVIZtoNxo_fHPevstQM3dgJvyQ8gLq4Dr4bIAGs3R3aaBtaJPz8E1e1How/s220/Albert_Wesker___Resident_Evil_by_megakay.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgYi2i6EUhN5Rm1VZopgn73H2GOM4ITrv8KBJDrcaMc16p3vHNiixtHH8ahOEy_DsSbw-kcDDMqBmMh4emZXSb9mzSRDphNTaleOztKwyTtHT_K8tB-QBSddryLWRqZxyp5kzw5_C9W-l0/s72-c/Dynamic+Stores+Demo.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8551798844080929407.post-1414087784098963570</id><published>2012-04-14T20:31:00.000-07:00</published><updated>2012-04-16T04:58:32.626-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Crear un juego desde 0."/><title type='text'>Engine de iluminacion dinamica</title><content type='html'>Este es un engine experimental, favor de no usarlo con demasiados efectos y otros eventos corriendo en paralelo, porque causa lag.&lt;br /&gt;
&lt;br /&gt;
Bueno, primero comenzamos con la animacion, ustedes se pueden fabricar una como quieran, yo la cree en el firework y me quedo bastante bien(no se ve, pero esta ahi la imagen):&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgD0oOlLDyR_ICMsSUM_P2WRjGScsyo7pVa3NEU6LKZCgSiW-kYWEzB78_AQUtzWv08mdV5Eo60ZlQLEcFvFN-aC2E51QsD1Yer_m6yJp5pVvkbfJ7-6Y2LT9ssRT-WwUcn1uHplYGbHZA/s1600/Animacion+Linterna.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;200&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgD0oOlLDyR_ICMsSUM_P2WRjGScsyo7pVa3NEU6LKZCgSiW-kYWEzB78_AQUtzWv08mdV5Eo60ZlQLEcFvFN-aC2E51QsD1Yer_m6yJp5pVvkbfJ7-6Y2LT9ssRT-WwUcn1uHplYGbHZA/s200/Animacion+Linterna.png&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Despues, con esta imagen crean la animacion para los 4 puntos cardinales:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjsOzdVqywQvJyUB-GUKHm6-LxTZ3XFYt2LDnD9r95Y31VdqnL5w6mbaj8fHLX0TPd226UQjxhcmy6rkPTidA60-0MUr8ryr7h1VoC4OLJzxeJDxfZSgr_-ytVwTINEsM0id6GwcvvrXhg/s1600/2012-04-14_232447.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;178&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjsOzdVqywQvJyUB-GUKHm6-LxTZ3XFYt2LDnD9r95Y31VdqnL5w6mbaj8fHLX0TPd226UQjxhcmy6rkPTidA60-0MUr8ryr7h1VoC4OLJzxeJDxfZSgr_-ytVwTINEsM0id6GwcvvrXhg/s400/2012-04-14_232447.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
Despues en el evento comun &lt;b&gt;PP - Datos heroe&lt;/b&gt; comprueban las direcciones en que mira el personaje, y le activan y desactivan los interruptores de las direcciones, uno para cada direccion:&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj1zj8hCj6ELFf7lsVt0Z3_uGDxHlR9oBUoXq9EiJO4FQuYt4A17i3If3Ed1JRXWFz7zy5NQIBbbkqagFmXxgVNtLa5lsDIOzysEYQgJL_IOOCVhmRHmmPYI_gMUnwtG0j5COWMvcdDooI/s1600/2012-04-14_232724.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj1zj8hCj6ELFf7lsVt0Z3_uGDxHlR9oBUoXq9EiJO4FQuYt4A17i3If3Ed1JRXWFz7zy5NQIBbbkqagFmXxgVNtLa5lsDIOzysEYQgJL_IOOCVhmRHmmPYI_gMUnwtG0j5COWMvcdDooI/s1600/2012-04-14_232724.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Despues, por cada interruptor crean un evento comun que llame a la animacion, que son 4:&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjKgoJ4DGXF6IpH1J3hp7_Q64pPHAmukJ9rBAdBFopDgeEeDH2gmmNnE6eE3NhslIQa3ihlW0WaCHOg5zGgK7ENqgiqQnVln1AuaCKKRZI97XOL69oOaEyrz1TPgNcA8XVRthuVGIGilDk/s1600/2012-04-14_232856.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;187&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjKgoJ4DGXF6IpH1J3hp7_Q64pPHAmukJ9rBAdBFopDgeEeDH2gmmNnE6eE3NhslIQa3ihlW0WaCHOg5zGgK7ENqgiqQnVln1AuaCKKRZI97XOL69oOaEyrz1TPgNcA8XVRthuVGIGilDk/s400/2012-04-14_232856.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
Ya con esto deberia funcionar el engine, ahora tienen que agregar la tecla para activar y desactivar el sistema, para esto ocuparemos la tecla W:&lt;br /&gt;
&lt;br /&gt;
Primero creamos el sistema de encendido y apagado:&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhQWeEK2-uDSnyL2Bb68X93GAY7qEb4wml-bQk40IO7Hs9mYq2cXamqch7zjYZYFG4MWwc9RglIxmpjI4v5ZQCfqRyN2ULKsVIwCP1WDNQMOnriSiyaubT5eovEKDyGf-k5WIrlhNsYLFA/s1600/2012-04-14_233447.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhQWeEK2-uDSnyL2Bb68X93GAY7qEb4wml-bQk40IO7Hs9mYq2cXamqch7zjYZYFG4MWwc9RglIxmpjI4v5ZQCfqRyN2ULKsVIwCP1WDNQMOnriSiyaubT5eovEKDyGf-k5WIrlhNsYLFA/s1600/2012-04-14_233447.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
Luego agregamos la tecla para prender y apagar la linterna:&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhcaFHw7o-z1IHF5PQo4NaqjBpOfWbkfaFgBbMWXH0lOKpRGbz4KIy4o557n9GWgQBfcyroo3G0FEpJuSRUlGQew6X0-Dm8PgnKDJUAMmhhaKSVDkb4YGOQFgCjaAi-7oH-jHZkRd4OHnA/s1600/2012-04-14_233608.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhcaFHw7o-z1IHF5PQo4NaqjBpOfWbkfaFgBbMWXH0lOKpRGbz4KIy4o557n9GWgQBfcyroo3G0FEpJuSRUlGQew6X0-Dm8PgnKDJUAMmhhaKSVDkb4YGOQFgCjaAi-7oH-jHZkRd4OHnA/s1600/2012-04-14_233608.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
Y por ultimo, agregamos que el sistema funcione solo cuando el interruptor este en On:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjRVK853TiSAtUlLadjydSJKZROUXwK5Yfjb8XpUNMMwMw6qy4nEy3XaMBEqgP7d93-8SDcO6s1SEsFJjwk0hIPfW7vponoX6Jeh0Exu9N1cXmd3Ptr00FpHo3rRvZs6N6YRjs7CdD8tOs/s1600/2012-04-14_233750.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjRVK853TiSAtUlLadjydSJKZROUXwK5Yfjb8XpUNMMwMw6qy4nEy3XaMBEqgP7d93-8SDcO6s1SEsFJjwk0hIPfW7vponoX6Jeh0Exu9N1cXmd3Ptr00FpHo3rRvZs6N6YRjs7CdD8tOs/s1600/2012-04-14_233750.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Tambien podemos agregar algunas otras cosas, como por ejemplo, una animacion de graficos al sacar y guardar la linterna, ponerle duracion a esta (pilas o baterias), etc, es cosa de imaginacion, yo solo hice la manera simple de ponerla.&lt;br /&gt;
&lt;br /&gt;
El mapa, para que quede bien configurado, tiene que tener una terreno de color calido (si ponen negro no se vera nada, el color cafe o verde se ve bien este engine, en un terreno de color gris oscuro no se ve nada)&lt;br /&gt;
Usen esta mezcla de colores para que quede bien oscuro:&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjwBpPQQlrhPoWcgsVn3lAmJUTTilgbcYMWUayuoHTZVW5enEeixNcerjd0on9MdkEGmUiwQD4PXEIpgjJVd5-CgByocOuEXUSVAG9zEoftHrC4QYad_XNzCpoVnQy2qOGoDk7WDwdYHis/s1600/2012-04-14_234408.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjwBpPQQlrhPoWcgsVn3lAmJUTTilgbcYMWUayuoHTZVW5enEeixNcerjd0on9MdkEGmUiwQD4PXEIpgjJVd5-CgByocOuEXUSVAG9zEoftHrC4QYad_XNzCpoVnQy2qOGoDk7WDwdYHis/s1600/2012-04-14_234408.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
Para crear luces, por ejemplo, solo deben crearle su animacion de luz, y hacer que esta se repita, para esto usen las etiquetas.&lt;br /&gt;
&lt;br /&gt;
Con esto terminamos el tutorial.&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://taller-maker.blogspot.com/feeds/1414087784098963570/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://taller-maker.blogspot.com/2012/04/engine-de-iluminacion-dinamica.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8551798844080929407/posts/default/1414087784098963570'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8551798844080929407/posts/default/1414087784098963570'/><link rel='alternate' type='text/html' href='http://taller-maker.blogspot.com/2012/04/engine-de-iluminacion-dinamica.html' title='Engine de iluminacion dinamica'/><author><name>tenshi98</name><uri>http://www.blogger.com/profile/06461952114644591440</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgMYLI_10CchcS8kNq5rxFCb-2qgfYgYV8MlGNlr-L_ZsMxcoL6C9ytoDmsLM05VJC6-1jMPVIZtoNxo_fHPevstQM3dgJvyQ8gLq4Dr4bIAGs3R3aaBtaJPz8E1e1How/s220/Albert_Wesker___Resident_Evil_by_megakay.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgD0oOlLDyR_ICMsSUM_P2WRjGScsyo7pVa3NEU6LKZCgSiW-kYWEzB78_AQUtzWv08mdV5Eo60ZlQLEcFvFN-aC2E51QsD1Yer_m6yJp5pVvkbfJ7-6Y2LT9ssRT-WwUcn1uHplYGbHZA/s72-c/Animacion+Linterna.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8551798844080929407.post-5432105719717469204</id><published>2012-04-14T18:28:00.000-07:00</published><updated>2012-04-16T04:58:43.459-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Crear un juego desde 0."/><title type='text'>Tutorial de optimizaciones 3</title><content type='html'>En este tutorial opimizaremos el evento mina&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Primera hoja:&lt;/b&gt;&lt;br /&gt;
Igual que antes, solo le rebajamos el tiempo de espera a 1 frame.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Segunda hoja:&lt;/b&gt;&lt;br /&gt;
Aqui agregaremos esta linea de codigo, mediante un llamar sript:&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;$game_variables[10]=@event_id&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
Aqui le estamos indicando a la variable 10 que guarde el id de ese evento, para poder usarlo mas tarde, si lo hiciste bien, el contenido de la segunda hoja luciria como esto:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiY7JtQ-Sm9DeK5jd7o3AAicTyRqHfI0Z-c8jkWz77sJK4_fjx-JtOrP2-wqKVIWzQYmiKR-aEe0AsGd59gLoVI_1FoQj9JwVisIXBhZLxlUas9ZorFJPz1rIPjnn-aSocQuLyDqFCb4VU/s1600/2012-04-14_204050.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiY7JtQ-Sm9DeK5jd7o3AAicTyRqHfI0Z-c8jkWz77sJK4_fjx-JtOrP2-wqKVIWzQYmiKR-aEe0AsGd59gLoVI_1FoQj9JwVisIXBhZLxlUas9ZorFJPz1rIPjnn-aSocQuLyDqFCb4VU/s1600/2012-04-14_204050.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;b&gt;Tercera hoja:&lt;/b&gt;&lt;br /&gt;
En esta hoja usaremos la siguiente linea de codigo para verificar si el personaje est dentro del area de la mina, para si poder hacerle daño:&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;$view_range.enemies_view(ev_id, v_range, sw_id, s_sw_id, block)&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
Vimos algo similar en la clase pasada, asi que no hay necesidad de explicarlo nuevamente, si queda bien configurado se veria algo asi:&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_1J54TDitKsG85gLtMa0p6_ummo2jZB4lv08GwJASxW2WseixnrocBf0fJZZPeWXsU9irrTImyiuRG4aGmr8lxADcFA_cKblkuRtYLhyphenhyphenVJRkhn_OQjcwqxeIBr5hJS4H3Vq7UQYxuu40/s1600/2012-04-14_204834.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_1J54TDitKsG85gLtMa0p6_ummo2jZB4lv08GwJASxW2WseixnrocBf0fJZZPeWXsU9irrTImyiuRG4aGmr8lxADcFA_cKblkuRtYLhyphenhyphenVJRkhn_OQjcwqxeIBr5hJS4H3Vq7UQYxuu40/s1600/2012-04-14_204834.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
Despues solo tienen que verificamos que el interruptor local A este encendido, le ponemos el calculo del daño, una animacion y la desactivacion del interruptor despues de un tiempo, si lo hicieron bien, quedaria algo asi:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiVHswgz3eYlTHS787-GZqAN2gDflj4uR9CHnU6OW6bwtvg7FzM1iDxBQBum8qo3BC5jJ1LL9l92IELyID6cnSO7huUfnlX9SNSguknclh-w01JCQusW8KShsboAZhYzvdgTJ426v4jNIY/s1600/2012-04-14_205059.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiVHswgz3eYlTHS787-GZqAN2gDflj4uR9CHnU6OW6bwtvg7FzM1iDxBQBum8qo3BC5jJ1LL9l92IELyID6cnSO7huUfnlX9SNSguknclh-w01JCQusW8KShsboAZhYzvdgTJ426v4jNIY/s1600/2012-04-14_205059.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&amp;nbsp;Nos ahorramos las variables mina x2 y mina y2 para el calculo del daño al personaje.&lt;br /&gt;
&lt;br /&gt;
Con esto terminamos el tutorial.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://taller-maker.blogspot.com/feeds/5432105719717469204/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://taller-maker.blogspot.com/2012/04/tutorial-de-optimizaciones-3.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8551798844080929407/posts/default/5432105719717469204'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8551798844080929407/posts/default/5432105719717469204'/><link rel='alternate' type='text/html' href='http://taller-maker.blogspot.com/2012/04/tutorial-de-optimizaciones-3.html' title='Tutorial de optimizaciones 3'/><author><name>tenshi98</name><uri>http://www.blogger.com/profile/06461952114644591440</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgMYLI_10CchcS8kNq5rxFCb-2qgfYgYV8MlGNlr-L_ZsMxcoL6C9ytoDmsLM05VJC6-1jMPVIZtoNxo_fHPevstQM3dgJvyQ8gLq4Dr4bIAGs3R3aaBtaJPz8E1e1How/s220/Albert_Wesker___Resident_Evil_by_megakay.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiY7JtQ-Sm9DeK5jd7o3AAicTyRqHfI0Z-c8jkWz77sJK4_fjx-JtOrP2-wqKVIWzQYmiKR-aEe0AsGd59gLoVI_1FoQj9JwVisIXBhZLxlUas9ZorFJPz1rIPjnn-aSocQuLyDqFCb4VU/s72-c/2012-04-14_204050.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8551798844080929407.post-3470630630865183644</id><published>2012-04-14T16:35:00.000-07:00</published><updated>2012-04-16T04:58:58.061-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Crear un juego desde 0."/><title type='text'>Tutorial de optimizaciones 2</title><content type='html'>En este capitulo reharemos&amp;nbsp; desde 0 a nuestro evento enemigo, manteniendo sus caracteristicas y dandole animacionesal momento de atacar.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Primera hoja:&lt;/b&gt;&lt;br /&gt;
La configuraremos con el grafico que deseamos y como proceso paralelo, y usando esta linea de codigo que mostramos en la clase anterior:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjvCCyvwf-MWr1FvmjrDO6yojm2pY8z73tQiE4XUxEjnKI9uBUrSH5qZjQgBwTtxJBfztIXkgPM3L5tOE-ZvNK7tziYKZPxNIiKKJqiUhkQACX1iADMgkaQPEAIG-75B-aG18K7cFDSTwg/s1600/2012-04-14_185454.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjvCCyvwf-MWr1FvmjrDO6yojm2pY8z73tQiE4XUxEjnKI9uBUrSH5qZjQgBwTtxJBfztIXkgPM3L5tOE-ZvNK7tziYKZPxNIiKKJqiUhkQACX1iADMgkaQPEAIG-75B-aG18K7cFDSTwg/s1600/2012-04-14_185454.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
Basicamente estamos solicitando la funcion de rango de vision co forma de cono.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Segunda hoja: &lt;/b&gt;&lt;br /&gt;
Aqui usaremos el mismo grafico y lo configuraremos en proceso paralelo, con condicion de aparicion el interruptor local A, ponemos lo siguiente:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjgG3U4XR58r5K-X1h36yoZXh50eUDYZKWWojaeUrsQJdx3ubRWVJxJkP6UAdwlzj9MMy3z4ybwkf7GZdm3fKmqJX0dr7Lmeyi42iDNwi3udW5XntXlBixdbcDdnTu1hbGjGOjUjeT5X-k/s1600/2012-04-14_185720.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjgG3U4XR58r5K-X1h36yoZXh50eUDYZKWWojaeUrsQJdx3ubRWVJxJkP6UAdwlzj9MMy3z4ybwkf7GZdm3fKmqJX0dr7Lmeyi42iDNwi3udW5XntXlBixdbcDdnTu1hbGjGOjUjeT5X-k/s1600/2012-04-14_185720.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
Aca configuramos lo que queremos que realice el enemigo al detectarnos dentro de su rango de vision, en este caso haremos 2 configuraciones distintas, ataque a larga distancia y ataque cuerpo a cuerpo, comenzaremos con el ataque a larga distancia:&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Tercera hoja: &lt;/b&gt;&lt;br /&gt;
Primero lo configuramos como proceso paralelo con condicion de aparicion el interruptor local B, luego reseteamos el tipo de rango de vision usado, la cambiamos a 
lineal, no agregamos el interruptor local a activar, ya que el script 
por defecto activa el &quot;A&quot;.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgc_3RgnoFTt8JQ8bftEd46AXiQBjxXVPqac5FG6M0lm8mFkxrtwDBdtIVBZChrbgWifVIf0XHmGS66K2nz6pnE2U6A5x0tCn01_lp8XYZLay0D0PeVqpQYwZLMa-hKf8rWp8dLBrIuo48/s1600/2012-04-14_190430.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgc_3RgnoFTt8JQ8bftEd46AXiQBjxXVPqac5FG6M0lm8mFkxrtwDBdtIVBZChrbgWifVIf0XHmGS66K2nz6pnE2U6A5x0tCn01_lp8XYZLay0D0PeVqpQYwZLMa-hKf8rWp8dLBrIuo48/s1600/2012-04-14_190430.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
Ahora consultamos si el interuptor esta activo:&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhH8bT0ILztb5ZzsLx10AnGRrHBNVB6KMu2P9mlnkk9pCnoTaNIZkOO-MK3LBjpdXV332vv46wJ24VT10rJ2spzOOjUrtNi9IIF8aD8g092ryqqdt5KsX_s5bQUrMpB3My2C7ICT4K3b1Y/s1600/2012-04-14_190649.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhH8bT0ILztb5ZzsLx10AnGRrHBNVB6KMu2P9mlnkk9pCnoTaNIZkOO-MK3LBjpdXV332vv46wJ24VT10rJ2spzOOjUrtNi9IIF8aD8g092ryqqdt5KsX_s5bQUrMpB3My2C7ICT4K3b1Y/s1600/2012-04-14_190649.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Despues configuramos el daño y las animaciones al personaje en caso de que este este dentro del area de ataque del enemigo, usamos una variable para asignar un valor aleatorio, luego este valor lo pasamos como daño al personaje, ponemos un sonido x al personaje y una animacion que lo acompañe:&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjX2-itVgHYGYRh6OWAWloOD2kqIAEW0tD4tDH-yNlyQL4J5x-A6yKUuSG7QjPialP1y8Z6H07nHoR79VGqDEqWrOzolPu8EvVUJWD-yuVkN7YP5f0hrpvI0Xw0CzTSAOP50gsKcbqne1g/s1600/2012-04-14_190815.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjX2-itVgHYGYRh6OWAWloOD2kqIAEW0tD4tDH-yNlyQL4J5x-A6yKUuSG7QjPialP1y8Z6H07nHoR79VGqDEqWrOzolPu8EvVUJWD-yuVkN7YP5f0hrpvI0Xw0CzTSAOP50gsKcbqne1g/s1600/2012-04-14_190815.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
Por ultimo ejecutamos la animacion del grafico del enemigo, una espera de tiempo pertinente para que no nos acribillen y desactivamos el interruptor &quot;A&quot;&amp;nbsp; para no crear un bucle.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg3vrV_ShVEKkSZlEUPwX6WEyNpLLU6RwhVq5YseFuS4zw21aTnisIQXBiXCdudS8Uv_qLZwSnRA08J1zC9jE2IeOClVMHVkcEPnXT-QCa7yucKeZ0IsqXwe5iMvIP75Hx3uRmH2915VII/s1600/2012-04-14_191050.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg3vrV_ShVEKkSZlEUPwX6WEyNpLLU6RwhVq5YseFuS4zw21aTnisIQXBiXCdudS8Uv_qLZwSnRA08J1zC9jE2IeOClVMHVkcEPnXT-QCa7yucKeZ0IsqXwe5iMvIP75Hx3uRmH2915VII/s1600/2012-04-14_191050.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Cuarta hoja&lt;/b&gt;&lt;br /&gt;
Primero lo configuramos como proceso paralelo con condicion de aparicion el interruptor local C, luego reseteamos el tipo de rango de vision usado, la cambiamos a circular:&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgSgYg8kpwhZeORkg2OwOyv7uyTgM6nTVC4svj4cOAfbtup683NbRgJk48RmpSiDNdpsBSVSxozqHqL1BPoLWP8O6-svpRvlhuiOSya5F1h-VrkNBSU5C9jDZZulKqevdxwV87OK6EjSF0/s1600/2012-04-14_191720.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgSgYg8kpwhZeORkg2OwOyv7uyTgM6nTVC4svj4cOAfbtup683NbRgJk48RmpSiDNdpsBSVSxozqHqL1BPoLWP8O6-svpRvlhuiOSya5F1h-VrkNBSU5C9jDZZulKqevdxwV87OK6EjSF0/s1600/2012-04-14_191720.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
Ahora consultamos si el interuptor esta activo:&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhH8bT0ILztb5ZzsLx10AnGRrHBNVB6KMu2P9mlnkk9pCnoTaNIZkOO-MK3LBjpdXV332vv46wJ24VT10rJ2spzOOjUrtNi9IIF8aD8g092ryqqdt5KsX_s5bQUrMpB3My2C7ICT4K3b1Y/s1600/2012-04-14_190649.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhH8bT0ILztb5ZzsLx10AnGRrHBNVB6KMu2P9mlnkk9pCnoTaNIZkOO-MK3LBjpdXV332vv46wJ24VT10rJ2spzOOjUrtNi9IIF8aD8g092ryqqdt5KsX_s5bQUrMpB3My2C7ICT4K3b1Y/s1600/2012-04-14_190649.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Despues configuramos el daño nuevamente:&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjX2-itVgHYGYRh6OWAWloOD2kqIAEW0tD4tDH-yNlyQL4J5x-A6yKUuSG7QjPialP1y8Z6H07nHoR79VGqDEqWrOzolPu8EvVUJWD-yuVkN7YP5f0hrpvI0Xw0CzTSAOP50gsKcbqne1g/s1600/2012-04-14_190815.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjX2-itVgHYGYRh6OWAWloOD2kqIAEW0tD4tDH-yNlyQL4J5x-A6yKUuSG7QjPialP1y8Z6H07nHoR79VGqDEqWrOzolPu8EvVUJWD-yuVkN7YP5f0hrpvI0Xw0CzTSAOP50gsKcbqne1g/s1600/2012-04-14_190815.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
Por ultimo la animacion y la desactivacion del interruptor como en la hoja 3:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJuutlLCDgSduxFR53rxU7yMFngoKjq_G9Vi8ypX_NH_raAeYXyDN9NGlc1Ma-kpOLN23L31YJo7tIS8hrzW6gXqT6FOs8rpufYcpkFFBIglVEaAnUegypI4C1bIoDxUyqRV_sB9z1OiU/s1600/2012-04-14_192005.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJuutlLCDgSduxFR53rxU7yMFngoKjq_G9Vi8ypX_NH_raAeYXyDN9NGlc1Ma-kpOLN23L31YJo7tIS8hrzW6gXqT6FOs8rpufYcpkFFBIglVEaAnUegypI4C1bIoDxUyqRV_sB9z1OiU/s1600/2012-04-14_192005.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;b&gt;Quinta hoja:&lt;/b&gt;&lt;br /&gt;
Aqui mantendremos la configuracion por el momento:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj_dT1TUiNplGnbJacI40FOR2rxWZygfzqo1_RTpTZbnWtHcMpS-QYP62RhO7lrCLbaVnTzdJEXd9qy3YXEiiMnB7xuiq_o3MSkrsW7II_Y7ue-yQGMdQvqK6RVkRqjqlChU2cFeiaLNkc/s1600/2012-04-14_192317.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj_dT1TUiNplGnbJacI40FOR2rxWZygfzqo1_RTpTZbnWtHcMpS-QYP62RhO7lrCLbaVnTzdJEXd9qy3YXEiiMnB7xuiq_o3MSkrsW7II_Y7ue-yQGMdQvqK6RVkRqjqlChU2cFeiaLNkc/s1600/2012-04-14_192317.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;b&gt;Sexta hoja:&lt;/b&gt;&lt;br /&gt;
En esta hoja haremos uso de &lt;a href=&quot;https://docs.google.com/document/d/1oudG5cTnAfk8RGpZUHSyz9u7_wxwmQh-UPsVKUzxrMA/edit&quot;&gt;este script&lt;/a&gt;, que permite calcular rangos de vision, porque uso otro en vez del que uso en los enemigos, por tres cosas simples:&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;permite la funcion evento ve evento&lt;/li&gt;
&lt;li&gt;me permite configurar si es un interruptor local o uno normal&lt;/li&gt;
&lt;li&gt;tambien puedo bloquear la vision con las paredes&lt;/li&gt;
&lt;/ul&gt;
&amp;nbsp;La configuracion de esta hoja es la misma que la del otro evento en la parte del calculo de daño de la mina, lo unico que cambia es el contenido, comenzaremos usando la llamada de script con esta linea:&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;$view_range.event2event_view(ev_id, ev2_id, v_range, sw_id, s_sw_id, block)&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;ev_id =&lt;/i&gt; usaremos el comodin &lt;i&gt;@event_id&lt;/i&gt; ya que asigna automaticamente el id del evento&lt;br /&gt;
&lt;i&gt;ev2_id = &lt;/i&gt;usaremos&lt;i&gt; $game_variables[10], &lt;/i&gt;esta variable tiene guardado el id del evento mina&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt; v_range = &lt;/i&gt;el rango a ver, pondremos un valor no superior a 7 para minimizar el lag&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;sw_id = &lt;/i&gt;el interruptor a activar, en este caso no lo ocuparemos, asi que le pondremos nil&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;s_sw_id = &lt;/i&gt;el interruptor local a usar, en este caso &quot;A&quot;, con las comillas&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;block = &lt;/i&gt;el bloqueo de vision de las paredes, en este caso true&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
Configurado deberia quedar de esta forma:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdCyauLWSXUcswgFYG1KwKVfqb0xXZtqlZmYczi3LO48buzsCIQQ9YcMSqROnkExA8rQnPuRP8Gb3Q3IEzhI3HtA-K20DTogpvIE9NgIbZ9Hg_YFdRgRrZqBdITZBG0sZrc8MtOzS4MWY/s1600/2012-04-14_202547.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdCyauLWSXUcswgFYG1KwKVfqb0xXZtqlZmYczi3LO48buzsCIQQ9YcMSqROnkExA8rQnPuRP8Gb3Q3IEzhI3HtA-K20DTogpvIE9NgIbZ9Hg_YFdRgRrZqBdITZBG0sZrc8MtOzS4MWY/s1600/2012-04-14_202547.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Despues verificamos que el interruptor A este activo, luego le sumamos a la vida del enemigo el daño de la bomba, despues ponemos una animacion de daño sobre el enemigo, y por ultimo un tiempo de espera mas la desactivacion del interruptor usado:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjyrREHvpJESFIVmtv_bXw1VKDx30v8-SXgEV9z__Prd0IvBqLV3S_IKgI5Ag7oJ15xAGsfDmLXFIMlJqJE9Ib9UPi2aFC0XNdm8pR6esY-7D1qo6RFCDdegoFyN_5JNkx826qRqlYFoHg/s1600/2012-04-14_202955.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjyrREHvpJESFIVmtv_bXw1VKDx30v8-SXgEV9z__Prd0IvBqLV3S_IKgI5Ag7oJ15xAGsfDmLXFIMlJqJE9Ib9UPi2aFC0XNdm8pR6esY-7D1qo6RFCDdegoFyN_5JNkx826qRqlYFoHg/s1600/2012-04-14_202955.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Septima hoja:&lt;br /&gt;
Es exactamente lo mismo que la hoja donde muere el enemigo en el otro evento:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-oVZbS7CSatlKtzDiydMctVYdZ5NkuRgd0vNxN9W2gDRJeT4F_mke11qdg_TD0Ujd2ujuvs9lkfbiWMiyygCyUJWqMJTt06F18znULHI2HaWlrcsHo9Q4_28i7akhIkpBOdhEJO4PUts/s1600/2012-04-14_203158.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-oVZbS7CSatlKtzDiydMctVYdZ5NkuRgd0vNxN9W2gDRJeT4F_mke11qdg_TD0Ujd2ujuvs9lkfbiWMiyygCyUJWqMJTt06F18znULHI2HaWlrcsHo9Q4_28i7akhIkpBOdhEJO4PUts/s1600/2012-04-14_203158.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Con esto finalizamos la opimizacion del evento enemigo.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://taller-maker.blogspot.com/feeds/3470630630865183644/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://taller-maker.blogspot.com/2012/04/tutorial-de-optimizaciones-2.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8551798844080929407/posts/default/3470630630865183644'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8551798844080929407/posts/default/3470630630865183644'/><link rel='alternate' type='text/html' href='http://taller-maker.blogspot.com/2012/04/tutorial-de-optimizaciones-2.html' title='Tutorial de optimizaciones 2'/><author><name>tenshi98</name><uri>http://www.blogger.com/profile/06461952114644591440</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgMYLI_10CchcS8kNq5rxFCb-2qgfYgYV8MlGNlr-L_ZsMxcoL6C9ytoDmsLM05VJC6-1jMPVIZtoNxo_fHPevstQM3dgJvyQ8gLq4Dr4bIAGs3R3aaBtaJPz8E1e1How/s220/Albert_Wesker___Resident_Evil_by_megakay.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjvCCyvwf-MWr1FvmjrDO6yojm2pY8z73tQiE4XUxEjnKI9uBUrSH5qZjQgBwTtxJBfztIXkgPM3L5tOE-ZvNK7tziYKZPxNIiKKJqiUhkQACX1iADMgkaQPEAIG-75B-aG18K7cFDSTwg/s72-c/2012-04-14_185454.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8551798844080929407.post-4313989505301859701</id><published>2012-04-14T11:59:00.000-07:00</published><updated>2012-04-16T04:59:13.303-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Crear un juego desde 0."/><title type='text'>Tutorial de optimizaciones 1</title><content type='html'>&lt;b&gt;Optimizando el engine de ascensor:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Comenzaremos haciendo unas pequeñas modificaciones al engine de ascensor que nos permitira:&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;Ocupar una variable menos.&lt;/li&gt;
&lt;li&gt;Marcar el numero del piso en el que estamos, como tambien ir cambiando el numero en la medida que subamos o bajamos.&lt;/li&gt;
&lt;/ul&gt;
Comenzaremos con lo primero, ponerle nombre a los 3 eventos qe tenemos, para poder dar bien las indicaciones, el evento que hace de puerta le pondremos &lt;b&gt;puerta&lt;/b&gt;, el que esta al lado le pondremos &lt;b&gt;core&lt;/b&gt;, y el que esta sobre este le pondremos &lt;b&gt;inmovil&lt;/b&gt;.&lt;br /&gt;
&lt;br /&gt;
Con esto claro comenzamos con el trabajo:&lt;br /&gt;
&lt;br /&gt;
Primero vamos al evento core, alli en la tercera hoja buscamos en la seccion de presionar tecla c lo siguiente:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhyvOhSJGm0L1pWGC70sw4eE23K5rCvz7q8GnFcrmDXCLi66ozHHLL9kjNcFYUSDZCiWk8iG1VtzqqScxNMDi_w_yl-cpk0V0E5ZdslbzMXBgjWzC-zN6f3X3tFyzmW2q9pn5Nzjh2SI0Y/s1600/2012-04-14_121446.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhyvOhSJGm0L1pWGC70sw4eE23K5rCvz7q8GnFcrmDXCLi66ozHHLL9kjNcFYUSDZCiWk8iG1VtzqqScxNMDi_w_yl-cpk0V0E5ZdslbzMXBgjWzC-zN6f3X3tFyzmW2q9pn5Nzjh2SI0Y/s1600/2012-04-14_121446.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Lo que vamos a hacer aqui es eliminar el calculo que hacemos con la variable piso temp, y traspasarla directamente a los calculos del piso actual, basicamente seria algo asi:&lt;br /&gt;
&lt;br /&gt;
si piso actual es mayor que al piso que queremos ir, le restamos 1&lt;br /&gt;
si piso actual es menor que al piso que queremos ir, le sumamos 1&lt;br /&gt;
&lt;br /&gt;
Con esto sabremos en que piso va el ascensor al momento de subir o bajar, nos ahorramos el uso de una variable, y acortamos la cantidad de programacion al engine, que es lo que buscamos, al hacer esto deberia quedar algo asi:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiO5wIJIGb2w30-IZjtw69k7hrXT7-4L23np_w-KuoECrdo2kq_bgF-AcCNriinXDHAJKAZMiMeS7rL2NGEFbYwvi7MPbfT_TUPJlbrQyzTEIGOZSfj8-lYkQd_s0fsoUM4lg3dvm1Ezbs/s1600/2012-04-14_123216.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;358&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiO5wIJIGb2w30-IZjtw69k7hrXT7-4L23np_w-KuoECrdo2kq_bgF-AcCNriinXDHAJKAZMiMeS7rL2NGEFbYwvi7MPbfT_TUPJlbrQyzTEIGOZSfj8-lYkQd_s0fsoUM4lg3dvm1Ezbs/s400/2012-04-14_123216.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;br /&gt;
Ahora testeamos que funcione correctamente, despues pasamos al segundo punto:&lt;br /&gt;
&lt;br /&gt;
Poner el piso en que estamos: crearemos un nuevo evento al que le pondremos el nombre de numero, a este evento le pondremos la condicion de que si variable &lt;b&gt;piso actual&lt;/b&gt; es igual a x numero, que cambie el grafico automaticamente, lo dejaremos corriendo en proceso paralelo, quedando algo asi:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhHQhBX0FlIX1i_MR2V4SQwlqUEfb8n6u2IYOH_jMECYi6ZJpmYzkYYN7dxyUS_zKve-49XiO3HTO87TvtmKhI_wAE1humpim5bzQdEGljCNC7jJRViKo-vEijJ7zJ31cTHw9Le4DtbZ_g/s1600/2012-04-14_123258.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhHQhBX0FlIX1i_MR2V4SQwlqUEfb8n6u2IYOH_jMECYi6ZJpmYzkYYN7dxyUS_zKve-49XiO3HTO87TvtmKhI_wAE1humpim5bzQdEGljCNC7jJRViKo-vEijJ7zJ31cTHw9Le4DtbZ_g/s1600/2012-04-14_123258.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Ahora testeamos nuevamente su funcionamiento, terminando la modificacion a nuestro engine de ascensor.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Optimizando el engine de sistema de ataque cuerpo a cuerpo, distancia y armas de fuego:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Para esto recurriremos a los script, especificamente al &lt;a href=&quot;https://docs.google.com/document/d/12y7hFalL_GN-wMXddnoCFNhGuDty631OqPLZvb_2X-g/edit&quot;&gt;Tactical Espionage Engine&lt;/a&gt;, que nos permitira reemplazar el uso de las variables para calcular el area, este script nos permite tener rangos de vision como:&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;TIPO 1: Diamante&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/li&gt;
&lt;li&gt;TIPO 2: Piramide&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/li&gt;
&lt;li&gt;TIPO 3: Lineal&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/li&gt;
&lt;li&gt;TIPO 4: Circulo&lt;/li&gt;
&lt;li&gt;TIPO 5: Cono&lt;/li&gt;
&lt;/ul&gt;
Tambien permite el bloqueo de la vision de los enemigos por las paredes con solo cambiar el numero del id del terreno(solo funciona para el tipo 5).&lt;br /&gt;
&lt;br /&gt;
Su funcionamiento es mediante notas, que deberian llevar esto:&lt;br /&gt;
&lt;br /&gt;
Fov(TIPO,DISTANCIA,INTERRUPTOR LOCAL)&lt;br /&gt;
&lt;br /&gt;
Su configuracion es simple, y hace exactamente lo mismo que haciamos con los engines, ahora comenzaremos con los reemplazos que debemos hacer:&lt;br /&gt;
&lt;br /&gt;
Vamos a nuestro enemigo, y en la hoja 1 sacamos esto:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgLbsylAsrxN3tolF-5vqD6pnfzkP2lxtS-8rGdKa9caZHfIl9pLvs0ByJEBMjnLkWtRY_Vyx1g7VAxYiAP7zns3xwNMVCo6PVQrtKkBtVSuz69cfhRN48I6n-FzQVCLVDjW_7L-NMS780/s1600/2012-04-14_131734.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgLbsylAsrxN3tolF-5vqD6pnfzkP2lxtS-8rGdKa9caZHfIl9pLvs0ByJEBMjnLkWtRY_Vyx1g7VAxYiAP7zns3xwNMVCo6PVQrtKkBtVSuz69cfhRN48I6n-FzQVCLVDjW_7L-NMS780/s1600/2012-04-14_131734.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Y lo reemplazamos por esto:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgYK7_r8ScFbHwbMPLycQrPZK79eKQ5ffLQ3jCI_2EyN3YA4jXn0E-vzUqMCb6sGiMu1dOiAd3VrlH4sARB2i8-Ilwnz06RFArRgI0mncdrIUtUaRNZXWKbKCuHprz06zVhOFSqtGNPkT0/s1600/2012-04-14_134710.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgYK7_r8ScFbHwbMPLycQrPZK79eKQ5ffLQ3jCI_2EyN3YA4jXn0E-vzUqMCb6sGiMu1dOiAd3VrlH4sARB2i8-Ilwnz06RFArRgI0mncdrIUtUaRNZXWKbKCuHprz06zVhOFSqtGNPkT0/s1600/2012-04-14_134710.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Simple, no?&lt;br /&gt;
&lt;br /&gt;
Ahora podriamos probarlo con nuestro sistema, pero tenemos un problema, este script trae algunos agregados interesantes, que ocupan nuestras mismas teclas, para poder ocuparlo haremos unas cuantas modificaciones a nuestro sistema, quedando una cosa asi:&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Engine:&lt;/b&gt;&lt;br /&gt;
Tecla A = poner mina o detonarla&lt;br /&gt;
Tecla S = guardia arma a distancia o de fuego&lt;br /&gt;
Tecla S+D = ataque de arma cuerpo a cuerpo, a distancia y de fuego&lt;br /&gt;
Tecla S+A = recarga arma de fuego&lt;br /&gt;
Tecla D = desocupada&lt;br /&gt;
Tecla Q = llamar al menu(por el momento)&lt;br /&gt;
Tecla W = desocupada&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Script:&lt;/b&gt;&lt;br /&gt;
Tecla Z = modo siguilo&lt;br /&gt;
Tecla X = Correr&lt;br /&gt;
Tecla C = funciones por defecto en el maker&lt;br /&gt;
&lt;br /&gt;
Como ven tenemos un sistema bastante complejo, al cual aun le podemos agregar algunas cosas, pero eso lo veremos mas adelante, ahora solo realizaremos la modificacion de las teclas correspondientes:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhngJoYXAI8pdu6WeLOHCaMzLevxxCjcXirkdZBcIRaKTZ4rNSIjp6GLr8L4PxssD5ByEaEznMyXl3hoIQlTziGSH1D0HBlGiW5lbqmbewnp9w4qoNBPW01yLfkFsvIhNqIe_-qCoDY8b8/s1600/2012-04-14_155204.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhngJoYXAI8pdu6WeLOHCaMzLevxxCjcXirkdZBcIRaKTZ4rNSIjp6GLr8L4PxssD5ByEaEznMyXl3hoIQlTziGSH1D0HBlGiW5lbqmbewnp9w4qoNBPW01yLfkFsvIhNqIe_-qCoDY8b8/s1600/2012-04-14_155204.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;br /&gt;
Asi quedaria el evento del sistema, testeamos y con esto damos por terminada la primera clase de optimizaciones.&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://taller-maker.blogspot.com/feeds/4313989505301859701/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://taller-maker.blogspot.com/2012/04/tutorial-de-optimizaciones-1.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8551798844080929407/posts/default/4313989505301859701'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8551798844080929407/posts/default/4313989505301859701'/><link rel='alternate' type='text/html' href='http://taller-maker.blogspot.com/2012/04/tutorial-de-optimizaciones-1.html' title='Tutorial de optimizaciones 1'/><author><name>tenshi98</name><uri>http://www.blogger.com/profile/06461952114644591440</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgMYLI_10CchcS8kNq5rxFCb-2qgfYgYV8MlGNlr-L_ZsMxcoL6C9ytoDmsLM05VJC6-1jMPVIZtoNxo_fHPevstQM3dgJvyQ8gLq4Dr4bIAGs3R3aaBtaJPz8E1e1How/s220/Albert_Wesker___Resident_Evil_by_megakay.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhyvOhSJGm0L1pWGC70sw4eE23K5rCvz7q8GnFcrmDXCLi66ozHHLL9kjNcFYUSDZCiWk8iG1VtzqqScxNMDi_w_yl-cpk0V0E5ZdslbzMXBgjWzC-zN6f3X3tFyzmW2q9pn5Nzjh2SI0Y/s72-c/2012-04-14_121446.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8551798844080929407.post-1248522177182079638</id><published>2012-04-12T08:18:00.000-07:00</published><updated>2012-04-12T08:18:50.517-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Tutoriales"/><title type='text'>Advanced Windows</title><content type='html'>Este manual pertenece a &lt;a href=&quot;http://www.rpgrevolution.com/tutorial/advanced-windows_282.html&quot;&gt;esta&lt;/a&gt; pagina.&lt;br /&gt;
&lt;br /&gt;
Traducido por Tenshi98&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Advanced Windows&lt;/b&gt;:&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;I. Introducción&lt;/span&gt;&lt;br /&gt; &lt;span class=&quot;hps&quot;&gt;II&lt;/span&gt;. &lt;span class=&quot;hps&quot;&gt;Utilizando los&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;métodos de dibujo&lt;/span&gt;&lt;br /&gt; &lt;span class=&quot;hps&quot;&gt;III&lt;/span&gt;. &lt;span class=&quot;hps&quot;&gt;Mostrar&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;fotos&lt;/span&gt;&lt;br /&gt; &lt;span class=&quot;hps&quot;&gt;IV&lt;/span&gt;. &lt;span class=&quot;hps&quot;&gt;Opacidad de las ventanas&lt;/span&gt;&lt;span class=&quot;hps&quot;&gt;&lt;/span&gt;&lt;br /&gt; &lt;span class=&quot;hps&quot;&gt;V. Conclusión&lt;/span&gt;&lt;br /&gt; &lt;span class=&quot;hps&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;I. Introducción&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Bienvenidos a&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;la lección&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;de los Constructores&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;de script&lt;/span&gt;. &lt;span class=&quot;hps&quot;&gt;Hasta el momento&lt;/span&gt;, sabemos &lt;span class=&quot;hps&quot;&gt;cómo hacer que Windows&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Basic y Windows&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;seleccionables&lt;/span&gt;. &lt;span class=&quot;hps&quot;&gt;En este tutorial&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;vamos a&lt;/span&gt;&lt;span class=&quot;hps&quot;&gt; aprender&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;cómo mostrar información&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;útil, no&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;sólo texto.&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Además,&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;en este tutorial,&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;voy a&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;estar enseñando a&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;ustedes&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;de una manera&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;diferente.&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Habrá tres&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;clases de&lt;/span&gt; &lt;span class=&quot;hps atn&quot;&gt;mini-&lt;/span&gt;lecciones dentro &lt;span class=&quot;hps&quot;&gt;de esta lección&lt;/span&gt;, que son &lt;span class=&quot;hps&quot;&gt;el &#39;&lt;b&gt;Uso de&lt;/b&gt;&lt;/span&gt;&lt;b&gt; &lt;span class=&quot;hps&quot;&gt;los&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;métodos de dibujo&lt;/span&gt;&lt;/b&gt;&lt;span class=&quot;atn&quot;&gt;&#39;, &#39;&lt;/span&gt;&lt;b&gt;mostrar imágenes&lt;/b&gt;&lt;span class=&quot;atn&quot;&gt;&#39;, y &#39;&lt;/span&gt;&lt;b&gt;opacidad de la ventana&lt;/b&gt;&#39;. &lt;span class=&quot;hps&quot;&gt;¿Por qué estoy&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;haciendo&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;de esta manera?&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Por dos razones&lt;/span&gt;. &lt;span class=&quot;hps&quot;&gt;Uno&lt;/span&gt;, es &lt;span class=&quot;hps&quot;&gt;una forma más efectiva&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;para enseñar&lt;/span&gt;, no solo hare un script y le dire que significa, sino que voy a estar &lt;span class=&quot;hps&quot;&gt;mostrando&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;a ustedes&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;cómo manipular&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;cada parte&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;para que tenga&lt;/span&gt;n &lt;span class=&quot;hps&quot;&gt;una mejor comprensión de&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;todo.&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Y dos,&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;me sentiré mejor&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;cuando le de&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;una&lt;/span&gt;&lt;span class=&quot;hps&quot;&gt; tarea&lt;/span&gt;&lt;span class=&quot;hps&quot;&gt; voy a&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;saber que&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;no&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;sólo van a copiar&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;el script&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;que hice&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;al final y&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;sólo cambiar&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;alguno de los&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;valores, ya que&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;no habrá ninguno&lt;/span&gt;, sino &lt;span class=&quot;hps&quot;&gt;que en realidad&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;estaran&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;pensando en&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;cómo se puede&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;juntar las piezas&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;de los tres&lt;/span&gt; &lt;span class=&quot;hps atn&quot;&gt;mini-&lt;/span&gt;&lt;span class=&quot;&quot;&gt;lecciones&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;en un script.&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Sin más preámbulos&lt;/span&gt;, vamos a &lt;span class=&quot;hps&quot;&gt;comenzar el&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;tutorial :)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;II&lt;/span&gt;. &lt;span class=&quot;hps&quot;&gt;Utilizando los&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;métodos de dibujo&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;Los&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;métodos de dibujo&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;son herramientas muy útiles&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;al hacer&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;sus ventanas.&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Recuerden lo que enseñe&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;en el&lt;/span&gt;&lt;span class=&quot;hps&quot;&gt;&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;tutorial básico&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;de Windows&lt;/span&gt;, &lt;span class=&quot;hps&quot;&gt;que los métodos&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;son bloques de código&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;se puede reutilizar&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;a través de su&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;script.&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Ejemplos de estos&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;métodos de dibujo&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;incluyen:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;display: block; margin: 1px auto; width: 95%;&quot;&gt;
&lt;div style=&quot;color: grey; display: block; font-family: Verdana, arial, helvetica, sans-serif; font-size: 12px; font-weight: bold; padding: 1px;&quot;&gt;
Code:
&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 1px solid gray; color: #006600; display: block; font-family: Courier new, courier, mono; font-size: 12px; padding: 1px;&quot;&gt;
draw_actor_hp(actor, 0, 0)&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;display: block; margin: 1px auto; width: 95%;&quot;&gt;
&lt;div style=&quot;color: grey; display: block; font-family: Verdana, arial, helvetica, sans-serif; font-size: 12px; font-weight: bold; padding: 1px;&quot;&gt;
Code:
&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 1px solid gray; color: #006600; display: block; font-family: Courier new, courier, mono; font-size: 12px; padding: 1px;&quot;&gt;
draw_actor_state(actor, 0, 0)&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;Los códigos&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;anteriores&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;se utilizan&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;para dibujar los datos personales&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;de un actor&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;y su estado&lt;/span&gt;. &lt;span class=&quot;hps&quot;&gt;Los parámetros&lt;/span&gt;, &lt;span class=&quot;hps&quot;&gt;los valores&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;dentro del&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;paréntesis,&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;de&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;los dos métodos son&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;de izquierda a derecha&lt;/span&gt;: &lt;span class=&quot;hps&quot;&gt;el actor&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;que se pasa&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;a través del método&lt;/span&gt;, &lt;span class=&quot;hps&quot;&gt;la coordenada x&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;del texto&lt;/span&gt;, y &lt;span class=&quot;hps&quot;&gt;la coordenada y&lt;/span&gt;. &lt;span class=&quot;hps&quot;&gt;Usted puede encontrar&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;todos los&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;métodos de dibujo&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;de las líneas&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;102 a&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;321 de&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Window_Base&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt; &lt;span class=&quot;hps&quot;&gt;Ahora&lt;/span&gt;&lt;span class=&quot;&quot;&gt;, sin más preámbulos&lt;/span&gt;&lt;span class=&quot;&quot;&gt;, vamos a&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;utilizar estos&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;métodos de dibujo&lt;/span&gt;!&lt;br /&gt;&lt;br /&gt; &lt;span class=&quot;hps&quot;&gt;En primer lugar&lt;/span&gt;&lt;span class=&quot;&quot;&gt;, sacar ese&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;esquema&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;de base&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;de la&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;ventana&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Bloc de notas&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;y lo abrimos&lt;/span&gt;. &lt;span class=&quot;hps&quot;&gt;Copiar&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;en el editor de&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;script de&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;un proyecto&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;RMXP&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;nueva&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;y ponerla&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;justo encima de &lt;b&gt;Main&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;hps&quot;&gt;&lt;/span&gt;. &lt;span class=&quot;hps&quot;&gt;Nombraremos a este script como&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;&quot;&lt;/span&gt;&lt;/span&gt;Advanced Window&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;&lt;/span&gt;&lt;span class=&quot;hps&quot;&gt;&lt;/span&gt;&quot; &lt;span class=&quot;hps&quot;&gt;en el espacio provisto&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;a continuación&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;el script&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;principal&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt; &lt;span class=&quot;hps&quot;&gt;Ahora&lt;/span&gt;, &lt;span class=&quot;hps&quot;&gt;en la línea dos&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;del script,&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;escriba el nombre&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;de nuestra clase&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;después del&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;símbolo de comentario&lt;/span&gt;, que &lt;span class=&quot;hps&quot;&gt;va a ser&lt;/span&gt; &lt;span class=&quot;hps atn&quot;&gt;&#39;&lt;/span&gt;Window_Advanced&lt;span class=&quot;&quot;&gt;&#39;&lt;/span&gt;. &lt;span class=&quot;hps&quot;&gt;En la línea&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;cuatro de&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;la secuencia de comandos&lt;/span&gt;, &lt;span class=&quot;hps&quot;&gt;escriba una descripción&lt;/span&gt; &lt;span class=&quot;hps atn&quot;&gt;tan simple como &quot;&lt;/span&gt;Esta clase utiliza &lt;span class=&quot;hps&quot;&gt;los&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;métodos de dibujo&lt;/span&gt;&quot;. &lt;span class=&quot;hps&quot;&gt;Ahora&lt;/span&gt;, &lt;span class=&quot;hps&quot;&gt;en la línea&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;siete&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;del guión&lt;/span&gt;, que comienza con &lt;span class=&quot;hps&quot;&gt;&quot;class&quot;&lt;/span&gt;&lt;span class=&quot;&quot;&gt;, le indicaremos que estamos &lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;heredando de&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Window_Base&lt;/span&gt;:&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;display: block; margin: 1px auto; width: 95%;&quot;&gt;
&lt;div style=&quot;color: grey; display: block; font-family: Verdana, arial, helvetica, sans-serif; font-size: 12px; font-weight: bold; padding: 1px;&quot;&gt;
Code:
&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 1px solid gray; color: #006600; display: block; font-family: Courier new, courier, mono; font-size: 12px; padding: 1px;&quot;&gt;
class Window_Advanced &amp;lt; Window_Base&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;Ahora, antes de&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;continuar con nuestro&lt;/span&gt; script&lt;span class=&quot;hps&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;tenemos que&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;tener una idea clara&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;de lo que&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;se&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;va a hacer&lt;/span&gt;. &lt;span class=&quot;hps&quot;&gt;Puesto que&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;tenemos la intención de&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;mostrar&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;los valores de&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;actores&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;que utilizan nuestros&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;métodos de dibujo&lt;/span&gt;, &lt;span class=&quot;hps&quot;&gt;vamos a hacer una&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;base&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;de un&amp;nbsp; HUD&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;que muestra el&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Exp.&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;HP&lt;/span&gt;, SP, &lt;span class=&quot;hps&quot;&gt;y el nombre&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;del&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;primer carácter de&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;su grupo&lt;/span&gt; &lt;span class=&quot;hps atn&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;&quot;&gt;Vamos a llegar a&lt;/span&gt; un &lt;span class=&quot;hps&quot;&gt;HUD&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;que muestre&lt;/span&gt;&lt;span class=&quot;hps&quot;&gt; los cuatro&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;miembros del partido&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;en tutoriales&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;posteriores).&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Por lo tanto,&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;nuestra ventana&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;no debe ser&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;tan grande.&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Por lo que nuestra&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;coordenada X y&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;coordenada y&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;(los dos primeros&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;valores en el&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;paréntesis junto a la&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;palabra clave super&lt;/span&gt;) &lt;span class=&quot;hps&quot;&gt;vamos a&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;dejarlos&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;a 0&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;para que podamos&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;tener nuestra&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;ventana en la esquina&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;superior izquierda de la&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;pantalla.&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Nuestra&lt;/span&gt; &lt;span class=&quot;hps atn&quot;&gt;anchura (&lt;/span&gt;tercer valor) &lt;span class=&quot;hps&quot;&gt;debe ser de&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;200 y&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;nuestra altura&lt;/span&gt; &lt;span class=&quot;hps atn&quot;&gt;(&lt;/span&gt;último valor), &lt;span class=&quot;hps&quot;&gt;debe ser de 150&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt; &lt;span class=&quot;hps&quot;&gt;Ahora&lt;/span&gt;, &lt;span class=&quot;hps&quot;&gt;vamos a pasar&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;a nuestro&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;método de actualización&lt;/span&gt;. &lt;span class=&quot;hps&quot;&gt;Para empezar,&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;vamos a escribir&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;el nombre de&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;nuestro actor&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;en&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;la primera línea de&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;nuestra ventana.&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;El código para&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;dibujar el nombre&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;de un actor&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;es el siguiente:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;display: block; margin: 1px auto; width: 95%;&quot;&gt;
&lt;div style=&quot;color: grey; display: block; font-family: Verdana, arial, helvetica, sans-serif; font-size: 12px; font-weight: bold; padding: 1px;&quot;&gt;
Code:
&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 1px solid gray; color: #006600; display: block; font-family: Courier new, courier, mono; font-size: 12px; padding: 1px;&quot;&gt;
draw_actor_name(actor, x, y)&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;span class=&quot;short_text&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;Pone&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;esta línea de código&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;después de esta línea:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;display: block; margin: 1px auto; width: 95%;&quot;&gt;
&lt;div style=&quot;color: grey; display: block; font-family: Verdana, arial, helvetica, sans-serif; font-size: 12px; font-weight: bold; padding: 1px;&quot;&gt;
Code:
&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 1px solid gray; color: #006600; display: block; font-family: Courier new, courier, mono; font-size: 12px; padding: 1px;&quot;&gt;
self.contents.clear&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;Pero&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;espera&lt;/span&gt;, ¿qué &lt;span class=&quot;hps&quot;&gt;es&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;el &quot;actor&quot;&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;a la izquierda&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;como el primer valor&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;en el paréntesis&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;del método&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;draw_actor_name&lt;/span&gt;? &lt;span class=&quot;hps&quot;&gt;No&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;se ha asignado un&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;valor a la misma&lt;/span&gt;, &lt;span class=&quot;hps&quot;&gt;así que por que&lt;/span&gt; se &lt;span class=&quot;hps&quot;&gt;está haciendo&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;de esa manera?&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Bueno,&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;¿por qué no&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;asignar un valor a&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;&quot;actor&quot;&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;para que sepamos&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;a que&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;el actor&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;que&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;está dibujando&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;el nombre&lt;/span&gt;? &lt;span class=&quot;hps&quot;&gt;Antes de la línea&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;draw_actor_name&lt;/span&gt;&lt;span class=&quot;&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;pongan esta&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;línea de código&lt;/span&gt;:&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;display: block; margin: 1px auto; width: 95%;&quot;&gt;
&lt;div style=&quot;color: grey; display: block; font-family: Verdana, arial, helvetica, sans-serif; font-size: 12px; font-weight: bold; padding: 1px;&quot;&gt;
Code:
&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 1px solid gray; color: #006600; display: block; font-family: Courier new, courier, mono; font-size: 12px; padding: 1px;&quot;&gt;
actor = $game_party.actors[000]&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;Esta línea de código&lt;/span&gt;&amp;nbsp;&lt;span class=&quot;hps&quot;&gt; nos permite ir&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;a través de los&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;actores&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;en su&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;$&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;game_party&lt;/span&gt;&lt;span class=&quot;hps&quot;&gt;&lt;/span&gt;, hemos optado por &lt;span class=&quot;hps&quot;&gt;el primer actor&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;en la lista&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;de los actores en&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;la base de datos&lt;/span&gt;. &lt;span class=&quot;hps&quot;&gt;Si estas en&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;un nuevo proyecto de&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;RMXP&lt;/span&gt;, lo que significa &lt;span class=&quot;hps&quot;&gt;que sólo&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;eligió&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Aluxes&lt;/span&gt;&lt;span class=&quot;&quot;&gt;, lo que significa&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;que nuestro método&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;draw_actor_name&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;sacará&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;el nombre&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;de&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Aluxes&lt;/span&gt;, que es &lt;span class=&quot;hps&quot;&gt;Aluxes&lt;/span&gt;.&lt;br /&gt; &lt;span class=&quot;hps&quot;&gt;A continuación,&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;cambiar el&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;valor de x&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;en 0 y&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;el valor de y&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;en 0 en&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;los parámetros&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;de dibujo en &lt;/span&gt;&lt;span class=&quot;hps&quot;&gt;draw_actor_name&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;de modo que&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;nuestro texto&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;está en la esquina&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;superior izquierda de la&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;pantalla.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;Ahora&lt;/span&gt;, &lt;span class=&quot;hps&quot;&gt;todo lo que tenemos&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;que hacer es&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;darle un espacio&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;el resto a&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;nuestro texto&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;en alrededor de 30&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;píxeles.&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Así que, básicamente&lt;/span&gt;, &lt;span class=&quot;hps&quot;&gt;que&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;debemos&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;copiar&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;el resto de los&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;métodos de dibujo&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;que necesitamos&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;en&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;nuestro método&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;draw_actor_name&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;teniendo&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;básicamente&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;tres líneas&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;más de código&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;en&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;nuestro método&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;draw_actor_name&lt;/span&gt;. &lt;span class=&quot;hps&quot;&gt;Estas tres líneas&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;se verían así&lt;/span&gt;&lt;span class=&quot;&quot;&gt;:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;display: block; margin: 1px auto; width: 95%;&quot;&gt;
&lt;div style=&quot;color: grey; display: block; font-family: Verdana, arial, helvetica, sans-serif; font-size: 12px; font-weight: bold; padding: 1px;&quot;&gt;
Code:
&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 1px solid gray; color: #006600; display: block; font-family: Courier new, courier, mono; font-size: 12px; padding: 1px;&quot;&gt;
draw_actor_hp(actor, 0, 30)&lt;br /&gt;
draw_actor_sp(actor, 0, 60)&lt;br /&gt;
draw_actor_exp(actor, 0, 90)&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;Como usted puede notar&lt;/span&gt;, el único cambio &lt;span class=&quot;hps&quot;&gt;que hemos hecho&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;dentro de los parámetros&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;es&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;aumentar el valor&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;y&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;por 30 píxeles&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;por cada&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;línea de texto.&lt;/span&gt;&lt;span class=&quot;hps&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;Si es así,&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;pasaremos a&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;mostrar la ventana&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;con&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;eventos como&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;se explica en&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;los dos últimos&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;tutoriales&lt;/span&gt; &lt;span class=&quot;hps atn&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;&quot;&gt;por lo que no&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;debería tener que&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;explicar de nuevo&lt;/span&gt;)&lt;span class=&quot;&quot;&gt;.&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;El resultado&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;final&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;debería tener este aspecto&lt;/span&gt;&lt;span class=&quot;&quot;&gt;:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhrIBG0x3-G3mPXSiZijHlh9DMoM5F6TKVex3pKbYVhVM-VWFUpnv6h_FuuLZEl_l_wd93PK1rMpswoYFgGUaGdGdzlKzUXrwyMkobx2XvPEuNaZfiCjhsDRl4-DiMQsuxA2Z5sjzqOsJI/s1600/advancedwindows2.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;315&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhrIBG0x3-G3mPXSiZijHlh9DMoM5F6TKVex3pKbYVhVM-VWFUpnv6h_FuuLZEl_l_wd93PK1rMpswoYFgGUaGdGdzlKzUXrwyMkobx2XvPEuNaZfiCjhsDRl4-DiMQsuxA2Z5sjzqOsJI/s400/advancedwindows2.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;Si es así&lt;/span&gt;, enhorabuena, &lt;span class=&quot;hps&quot;&gt;estás a un paso&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;más cerca de hacer&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;ventanas &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;complejas&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;:)&lt;/span&gt;&amp;nbsp;&lt;span class=&quot;hps&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;III&lt;/span&gt;. &lt;span class=&quot;hps&quot;&gt;Mostrar&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;fotos&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;Este mini&lt;/span&gt;-tutorial &lt;span class=&quot;hps&quot;&gt;es bastante&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;difícil de entender&lt;/span&gt;, &lt;span class=&quot;hps&quot;&gt;pero es de esperar&lt;/span&gt;, que serán &lt;span class=&quot;hps&quot;&gt;capaces de seguir&lt;/span&gt;&lt;span class=&quot;hps&quot;&gt;&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;mis explicaciones&lt;/span&gt;.&lt;br /&gt; &lt;span class=&quot;hps&quot;&gt;En primer lugar&lt;/span&gt;, abra su &lt;span class=&quot;hps&quot;&gt;editor de&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;script en&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;un proyecto&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;RMXP&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;nuevo&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;e ir a&lt;/span&gt;l modulo &lt;span class=&quot;hps&quot;&gt;&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Window_Gold para ver su script&lt;/span&gt;. &lt;span class=&quot;hps&quot;&gt;Para poner una imagen&lt;/span&gt;&lt;span class=&quot;hps&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;es necesario definir&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;un método que&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;he aprendido&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;como método&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;draw_picture&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;(sí,&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;esto es técnicamente una&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;draw_method&lt;/span&gt;, así que &lt;span class=&quot;hps&quot;&gt;usted puede ponerlo&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;en el script&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Window_Base&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;si lo desea&lt;/span&gt;, para que&lt;span class=&quot;hps&quot;&gt; no tengan que&lt;/span&gt;&lt;span class=&quot;hps&quot;&gt;&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;definirlo&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;todo el tiempo)&lt;/span&gt;. &lt;span class=&quot;hps&quot;&gt;Después de&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;la línea 15&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;del script&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Window_Gold&lt;/span&gt;, &lt;span class=&quot;hps&quot;&gt;hagan un&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;espacio para poner&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;esta línea de código&lt;/span&gt;&lt;span class=&quot;hps&quot;&gt;:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;display: block; margin: 1px auto; width: 95%;&quot;&gt;
&lt;div style=&quot;color: grey; display: block; font-family: Verdana, arial, helvetica, sans-serif; font-size: 12px; font-weight: bold; padding: 1px;&quot;&gt;
Code:
&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 1px solid gray; color: #006600; display: block; font-family: Courier new, courier, mono; font-size: 12px; padding: 1px;&quot;&gt;
def draw_picture(x, y)&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;Como puedes ver&lt;/span&gt;, hemos &lt;span class=&quot;hps&quot;&gt;acabado de definir&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;un método llamado&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;draw_picture&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;y&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;ajustar sus parámetros&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;a x e y&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;que llegará a&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;utilizar más adelante en&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;nuestro código&lt;/span&gt;.&lt;br /&gt; &lt;span class=&quot;hps&quot;&gt;A continuación, agregue&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;esta línea&lt;/span&gt;&lt;span class=&quot;&quot;&gt;:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;display: block; margin: 1px auto; width: 95%;&quot;&gt;
&lt;div style=&quot;color: grey; display: block; font-family: Verdana, arial, helvetica, sans-serif; font-size: 12px; font-weight: bold; padding: 1px;&quot;&gt;
Code:
&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 1px solid gray; color: #006600; display: block; font-family: Courier new, courier, mono; font-size: 12px; padding: 1px;&quot;&gt;
bitmap = RPG::Cache.picture(&quot;&quot;)&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;Esta línea&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;asigna un valor a&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;la variable de&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;mapa de bits.&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;El valor&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;asignado es&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;una imagen uqe estara guardada en nuestra carpeta de recursos&lt;/span&gt;&lt;span class=&quot;hps&quot;&gt;.&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;La&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;forma en que el&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;sistema sabe&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;qué imagen&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;estamos hablando&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;es&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;colocando el&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;nombre de la imagen&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;dentro de las comillas&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;de&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;la línea.&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Asi que guardaremos una imagen al azar dentro de la carpeta Pictures de nuestra carpeta de recursos, a la cual llamaremos &quot;picture&quot;.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;Al llamar la imagen, lo haremos por su nombre, asi que tomaremos el script anterior, y pondremos entra las comillas el nombre de la imagen agregada anteriormente, quedando algo asi:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;display: block; margin: 1px auto; width: 95%;&quot;&gt;
&lt;div style=&quot;color: grey; display: block; font-family: Verdana, arial, helvetica, sans-serif; font-size: 12px; font-weight: bold; padding: 1px;&quot;&gt;
Code:
&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 1px solid gray; color: #006600; display: block; font-family: Courier new, courier, mono; font-size: 12px; padding: 1px;&quot;&gt;
bitmap = RPG::Cache.picture(&quot;picture&quot;)&lt;/div&gt;
&lt;/div&gt;
&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;Despues de esta linea, agregar esta otra:&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;br /&gt; &lt;span class=&quot;hps&quot;&gt;&lt;/span&gt;&lt;span class=&quot;hps&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;display: block; margin: 1px auto; width: 95%;&quot;&gt;
&lt;div style=&quot;color: grey; display: block; font-family: Verdana, arial, helvetica, sans-serif; font-size: 12px; font-weight: bold; padding: 1px;&quot;&gt;
Code:
&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 1px solid gray; color: #006600; display: block; font-family: Courier new, courier, mono; font-size: 12px; padding: 1px;&quot;&gt;
src_rect = Rect.new(0, 0, bitmap.width, bitmap.height)&lt;/div&gt;
&lt;/div&gt;
&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;br /&gt; &lt;span class=&quot;hps&quot;&gt;&lt;/span&gt;&lt;span class=&quot;hps&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;¿Qué hace esta linea&lt;/span&gt;&lt;span class=&quot;hps&quot;&gt;?&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Bueno, acabamos de&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;asignar&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;un nuevo&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;valor a&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;otra variable.&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Este&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;valor asignado es&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;un&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;rectángulo&lt;/span&gt;&lt;span class=&quot;hps&quot;&gt;.&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Cuando escribes&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Rect.new&lt;/span&gt;, &lt;span class=&quot;hps&quot;&gt;eso significa que estás&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;dibujando un rectángulo&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;que es donde&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;vamos a mostrar&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;nuestra imagen&lt;/span&gt;. &lt;span class=&quot;hps&quot;&gt;Cuando se hace&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;un nuevo objeto&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;de la clase Rectangle&lt;/span&gt;&lt;span class=&quot;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;hps&quot;&gt; tienes que definir&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;sus coordenadas X e&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Y&lt;/span&gt;, &lt;span class=&quot;hps&quot;&gt;su anchura y altura&lt;/span&gt;. &lt;span class=&quot;hps&quot;&gt;Bueno, para&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;el ancho y alto&lt;/span&gt;, &lt;span class=&quot;hps&quot;&gt;todo lo que tienes&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;que hacer es hacer&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;lo mismo&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;de la&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;anchura y la altura&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;de nuestra&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;imagen.&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Por lo tanto&lt;/span&gt;, sería &lt;span class=&quot;hps&quot;&gt;bitmap.width&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;y&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;bitamp.height&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;puesto que&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;asigna&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;nuestra&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;imagen&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;a&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;la variable de&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;mapa de bits.&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Acaba de salir de&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;sus&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;valores X e Y&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;igual a cero&lt;/span&gt;&lt;span class=&quot;&quot;&gt;, ya que son&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;los valores&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;simplemente&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;ficticias&lt;/span&gt;, &lt;span class=&quot;hps&quot;&gt;nuestros &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;valores&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;x&lt;/span&gt;-y &lt;span class=&quot;hps&quot;&gt;reales&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;se definirán más adelante&lt;/span&gt;&lt;span class=&quot;&quot;&gt;.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Esta es la ultima linea de nuestro metodo:&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;display: block; margin: 1px auto; width: 95%;&quot;&gt;
&lt;div style=&quot;color: grey; display: block; font-family: Verdana, arial, helvetica, sans-serif; font-size: 12px; font-weight: bold; padding: 1px;&quot;&gt;
Code:
&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 1px solid gray; color: #006600; display: block; font-family: Courier new, courier, mono; font-size: 12px; padding: 1px;&quot;&gt;
self.contents.blt(x, y, bitmap, src_rect)&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;Agreguen&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;esta línea después de&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;la&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;última línea que&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;acaba de agregar.&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Lo que&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;esta línea de código&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;que hace es&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;poner todo junto&lt;/span&gt;. &lt;span class=&quot;hps&quot;&gt;Esto hace que la&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;imagen establecida&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;en su&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;valores xey&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;(que&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;se definirá más adelante&lt;/span&gt;), &lt;span class=&quot;hps&quot;&gt;la imagen &lt;/span&gt;, &lt;span class=&quot;hps&quot;&gt;y el rectángulo sean&lt;/span&gt;&lt;span class=&quot;hps&quot;&gt; dibujadas.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt; &lt;span class=&quot;hps&quot;&gt;Después de&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;esa línea&lt;/span&gt;, poner &lt;span class=&quot;hps&quot;&gt;la palabra clave&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;&#39;end&#39;&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;para demostrar que&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;cerramos&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;nuestro método.&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Lo último&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;que tenemos que hacer&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;definir nuestros&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;valores X e Y&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;que se&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;suceden en nuestro&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;método de actualización&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;como cualquier&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;otra&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;draw_method&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt; &lt;span class=&quot;hps&quot;&gt;Añadir&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;un espacio&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;después de la línea&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;self.contents.clear&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;y poner&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;esta línea de código&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;en:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;display: block; margin: 1px auto; width: 95%;&quot;&gt;
&lt;div style=&quot;color: grey; display: block; font-family: Verdana, arial, helvetica, sans-serif; font-size: 12px; font-weight: bold; padding: 1px;&quot;&gt;
Code:
&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 1px solid gray; color: #006600; display: block; font-family: Courier new, courier, mono; font-size: 12px; padding: 1px;&quot;&gt;
draw_picture(x, y)&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;Cambia&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;los valores X e&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Y&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;por&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;los que quieras&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;(yo lo hice&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;algo sencillo y&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;puse&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;a ambos&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;en cero).&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Por lo tanto,&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;nuestro editor de&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;script&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;debe verse similar&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;a esto:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEij6c-Qpw0eUPC775zTwOHbNxNw8IAMl8KeDyRSFGtQkQGjByWXfF2_qZHOoKStikfQj46IpruNxsZMBz5GeALLUHfnT3pQInOzfYpDOeycj_VF6A4yo_E8t9dmpMntkUuuKRHDgnv-0L4/s1600/advancedwindows3.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;343&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEij6c-Qpw0eUPC775zTwOHbNxNw8IAMl8KeDyRSFGtQkQGjByWXfF2_qZHOoKStikfQj46IpruNxsZMBz5GeALLUHfnT3pQInOzfYpDOeycj_VF6A4yo_E8t9dmpMntkUuuKRHDgnv-0L4/s400/advancedwindows3.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;Ve al menú&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;para ver si&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;hay una&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;imagen en&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;la ventana del oro&lt;/span&gt;&lt;span&gt;.&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Si&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;la hay, entonces&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;felicidades&lt;/span&gt;&lt;span&gt;, ya sabes&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;cómo mostrar&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;imágenes&lt;/span&gt;.&lt;span class=&quot;hps&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;IV&lt;/span&gt;. &lt;span class=&quot;hps&quot;&gt;Opacidad de las ventanas&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;Este&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;mini tutorial&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;debe ser muy fácil&lt;/span&gt; de&lt;span class=&quot;hps&quot;&gt;&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;entender.&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;En primer lugar&lt;/span&gt;&lt;span&gt;, vaya&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;el editor de scripts&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;en un proyecto de&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;RMXP&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;e ir a&lt;/span&gt;l script de &lt;span class=&quot;hps&quot;&gt;&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Window_Item&lt;/span&gt;&lt;span&gt;.&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;En&lt;/span&gt; &lt;span class=&quot;hps atn&quot;&gt;este mini-&lt;/span&gt;&lt;span class=&quot;&quot;&gt;tutorial vamos a hablar&lt;/span&gt;&lt;span class=&quot;&quot;&gt; básicamente&lt;/span&gt;&lt;span class=&quot;hps&quot;&gt; acerca de cómo cambiar&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;la opacidad&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;de las ventanas&lt;/span&gt;&lt;span&gt;.&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Ve&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;a la línea 15&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;del script&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;y crea&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;una nueva línea&lt;/span&gt;, despues copia la linea que hay a continuacion dentro del script de esta ventana&lt;span class=&quot;hps&quot;&gt;:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;display: block; margin: 1px auto; width: 95%;&quot;&gt;

&lt;div style=&quot;color: grey; display: block; font-family: Verdana, arial, helvetica, sans-serif; font-size: 12px; font-weight: bold; padding: 1px;&quot;&gt;

 Code:
&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 1px solid gray; color: #006600; display: block; font-family: Courier new, courier, mono; font-size: 12px; padding: 1px;&quot;&gt;

self.back_opacity = 0&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;Esta linea lo que hace es volver transparente el fondo de la ventana, dejando los bordes y el contenido de la misma con opacidad normal, ahora haz algunas pruebas cambiando la opacidad de tus ventanas y testeandola en tu juego. &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;Ahora volvamos al editor de script en la ventana Window_Item para cambiar la linea anterior y poner esta nueva linea de script:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;display: block; margin: 1px auto; width: 95%;&quot;&gt;

&lt;div style=&quot;color: grey; display: block; font-family: Verdana, arial, helvetica, sans-serif; font-size: 12px; font-weight: bold; padding: 1px;&quot;&gt;

 Code:
&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 1px solid gray; color: #006600; display: block; font-family: Courier new, courier, mono; font-size: 12px; padding: 1px;&quot;&gt;

self.opacity = 0&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
Esta linea de script volvera transparente incluso el brode de la ventana, podran probar y verlo ustedes mismos si lo prueban en su juego, solo prueben un poco para ver que pasa.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;V. Conclusión&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;Espero que&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;hayan&amp;nbsp;&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;captado&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;todo lo que he&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;dicho,&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;y si no,&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;no te preocupes&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;en absoluto.&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Sólo&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;leer&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;el tutorial&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;es una tarea&lt;/span&gt;&lt;span class=&quot;hps&quot;&gt; muy&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;ardua y compleja.&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Si&lt;/span&gt;&lt;span class=&quot;hps&quot;&gt; tienes alguna pregunta&lt;/span&gt;&lt;span&gt;,&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;por favor, publicalo&lt;/span&gt;&lt;span&gt;.&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Ahora&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;un resumen de&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;lo que has aprendido&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span class=&quot;hps&quot;&gt;Los&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;métodos de dibujo&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;es una utilidad que se &lt;/span&gt;&lt;span class=&quot;hps&quot;&gt;&lt;/span&gt;&lt;span class=&quot;hps&quot;&gt; puede utilizar&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;para mostrar&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;un montón de&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;información sobre&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;la ventana&lt;/span&gt;&lt;span&gt;, como&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;HP&lt;/span&gt;&lt;span&gt;, SP,&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;exp&lt;/span&gt;&lt;span class=&quot;&quot;&gt;, etc&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span class=&quot;hps&quot;&gt;El metodo para mostrar&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;imágenes&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;utilizando el método de&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;draw_picture&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;y cambiar sus&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;valores X e Y&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;en&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;el método de actualización&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;de la ventana&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; El metodo para &lt;span class=&quot;hps&quot;&gt;&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;cambiar la opacidad de&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;las ventanas&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;de dos maneras distintas.&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Una forma es&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;utilizando el código&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;self.back_opacity&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;que afecta a&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;la opacidad de&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;una ventana&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;a excepción de&lt;/span&gt;l borde&lt;span class=&quot;hps&quot;&gt;&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;a su alrededor.&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;La otra forma es&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;el código&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;self.opacity&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;que cambia la&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;opacidad&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;de todo en&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;la ventana.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://taller-maker.blogspot.com/feeds/1248522177182079638/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://taller-maker.blogspot.com/2012/04/advanced-windows.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8551798844080929407/posts/default/1248522177182079638'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8551798844080929407/posts/default/1248522177182079638'/><link rel='alternate' type='text/html' href='http://taller-maker.blogspot.com/2012/04/advanced-windows.html' title='Advanced Windows'/><author><name>tenshi98</name><uri>http://www.blogger.com/profile/06461952114644591440</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgMYLI_10CchcS8kNq5rxFCb-2qgfYgYV8MlGNlr-L_ZsMxcoL6C9ytoDmsLM05VJC6-1jMPVIZtoNxo_fHPevstQM3dgJvyQ8gLq4Dr4bIAGs3R3aaBtaJPz8E1e1How/s220/Albert_Wesker___Resident_Evil_by_megakay.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhrIBG0x3-G3mPXSiZijHlh9DMoM5F6TKVex3pKbYVhVM-VWFUpnv6h_FuuLZEl_l_wd93PK1rMpswoYFgGUaGdGdzlKzUXrwyMkobx2XvPEuNaZfiCjhsDRl4-DiMQsuxA2Z5sjzqOsJI/s72-c/advancedwindows2.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8551798844080929407.post-3596776342644824912</id><published>2012-04-09T13:54:00.001-07:00</published><updated>2012-04-12T08:23:12.785-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Tutoriales"/><title type='text'>Basic Windows</title><content type='html'>Este tutorial fue traducido desde &lt;a href=&quot;http://www.rpgrevolution.com/tutorial/the-script-builders%27-tutorials-lesson-1:-basic-windows_265.html&quot;&gt;esta&lt;/a&gt; pagina.&lt;br /&gt;
Traducido por tenshi98&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Basic Windows&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;I. Introducción&lt;/span&gt;&lt;br /&gt; &lt;span class=&quot;hps&quot;&gt;II&lt;/span&gt;. &lt;span class=&quot;hps&quot;&gt;La&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;historia de la creación&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;de ventana&lt;/span&gt;&lt;br /&gt; &lt;span class=&quot;hps&quot;&gt;III&lt;/span&gt;. &lt;span class=&quot;hps&quot;&gt;Herencia&lt;/span&gt;&lt;br /&gt; &lt;span class=&quot;hps&quot;&gt;IV&lt;/span&gt;. &lt;span class=&quot;hps&quot;&gt;Set-Up&lt;/span&gt;&lt;br /&gt; &lt;span class=&quot;hps&quot;&gt;V.&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Hacer&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Nuestra&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;ventana&lt;/span&gt;&lt;br /&gt; &lt;span class=&quot;hps&quot;&gt;VI&lt;/span&gt;. &lt;span class=&quot;hps&quot;&gt;Mostrar&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Nuestra&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;ventana&lt;/span&gt;&lt;br /&gt; &lt;span class=&quot;hps&quot;&gt;VII&lt;/span&gt;&lt;span class=&quot;&quot;&gt;.&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Agregar contenido&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;a nuestra ventana&lt;/span&gt;&lt;br /&gt; &lt;span class=&quot;hps&quot;&gt;VIII&lt;/span&gt;. &lt;span class=&quot;hps&quot;&gt;Conclusión&lt;/span&gt;&lt;br /&gt; &lt;span class=&quot;hps&quot;&gt;&lt;/span&gt;&lt;span class=&quot;hps&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;I. Introducción&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;Hola a todos&lt;/span&gt;: D Este &lt;span class=&quot;hps&quot;&gt;es&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;el primer tutorial&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;de&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;los varios que&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;serán creados por&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;los constructores&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;de Script&lt;/span&gt;. &lt;span class=&quot;hps&quot;&gt;En este&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;tutorial, vamos a&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;estar ayudando a&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;que ustedes&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;se familiaricen&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;con las Ventanas&lt;/span&gt;&lt;span class=&quot;&quot;&gt;.&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Al final de&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;este tutorial,&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;deben de ser&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;capaz de crear sus&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;propias ventanas,&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;que pueden mostrar&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;texto y que se puede&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;recurrir a&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;una vez que&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;interactúan&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;con un evento.&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Voy a poner&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;mi mejor esfuerzo para&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;explicar el funcionamiento del script&lt;/span&gt;&lt;span class=&quot;hps&quot;&gt;&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;en este tutorial&lt;/span&gt;, pero &lt;span class=&quot;hps&quot;&gt;si no lo hago&lt;/span&gt;, por favor &lt;span class=&quot;hps&quot;&gt;tengan paciencia conmigo&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;:)&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;II&lt;/span&gt;. &lt;span class=&quot;hps&quot;&gt;La&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;historia de la creación&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;de ventana&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;&lt;b&gt; &lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;Puede que no lo&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;sepas, pero&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;las ventanas son&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;uno de los aspectos&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;más vitales de&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;RPG Maker&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;XP&lt;/span&gt;. &lt;span class=&quot;hps&quot;&gt;Sin&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;ventanas no existiria&lt;/span&gt;&lt;span class=&quot;hps&quot;&gt; un menú&lt;/span&gt;, &lt;span class=&quot;hps&quot;&gt;un sistema de mensajes&lt;/span&gt;, &lt;span class=&quot;hps&quot;&gt;HUD&lt;/span&gt;, &lt;span class=&quot;hps&quot;&gt;tiendas&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;y ect.&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Básicamente,&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;para explicar lo que&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;las ventanas son&lt;/span&gt;, en pocas palabras, son &lt;span class=&quot;hps&quot;&gt;las superficies que&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;se pueden dibujar&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;información sobre ellas&lt;/span&gt;. &lt;span class=&quot;hps&quot;&gt;En&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;RGSS&lt;/span&gt;&lt;span class=&quot;&quot;&gt;, hay dos&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;tipos de ventanas:&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Window_Base&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;y&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Window_Selectable&lt;/span&gt;. &lt;span class=&quot;hps&quot;&gt;Vamos a&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;pensar en ello&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;como esto:&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Había una vez&lt;/span&gt;, &lt;span class=&quot;hps&quot;&gt;un hombre llamado&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Ventana.&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Se estaba poniendo viejo&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;y deseaba&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;tener un hijo.&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Por lo tanto&lt;/span&gt;&lt;span class=&quot;&quot;&gt;, decidió&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;casarse con&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;una dama llamada&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Sintaxis&lt;/span&gt;&lt;span class=&quot;&quot;&gt;, y poco después&lt;/span&gt;, &lt;span class=&quot;hps&quot;&gt;tuvo un hijo&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;llamado&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Window_Base&lt;/span&gt;. &lt;span class=&quot;hps&quot;&gt;Window_Base&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;se planteó&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;adecuadamente&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;por sus&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;padres amorosos&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;y pronto&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;se casó y tuvo&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;varios hijos&lt;/span&gt;, como &lt;span class=&quot;hps&quot;&gt;Window_Gold&lt;/span&gt;, &lt;span class=&quot;hps&quot;&gt;Window_Menustatus&lt;/span&gt;, &lt;span class=&quot;hps&quot;&gt;y mucho más.&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Pero uno de&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;los niños&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;fue&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;...&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;raro.&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Su nombre era&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Window_Selectable&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;y llevaba&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;rasgos&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;adicionales&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;además de los&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;que su madre&lt;/span&gt;, su padre y &lt;span class=&quot;hps&quot;&gt;sus hermanos&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;llevaban.&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Él&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;fue capaz de crear&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;selecciones en&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;las ventanas que&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;él creó.&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Su familia le&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;repudio por sus&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;anomalías&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;y la&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Window_Selctable&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;triste&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;se fue y&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;se casó para&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;recuperar su&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;felicidad.&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Él&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;tuvo varios hijos&lt;/span&gt;, así &lt;span class=&quot;hps&quot;&gt;que llevó a&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;sus&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;características&lt;/span&gt;. &lt;span class=&quot;hps&quot;&gt;Sus hijos&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;incluidos&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Window_Command&lt;/span&gt;, &lt;span class=&quot;hps&quot;&gt;Window_ShopCommand&lt;/span&gt;, &lt;span class=&quot;hps&quot;&gt;y mucho más.&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Así que ...&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;¿cómo&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;lo sé?&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;¿A quién&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;creo que&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;soy yo para&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;decir a ustedes&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;quién es el padre&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Window_Selectable&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;es o&lt;/span&gt; no &lt;span class=&quot;hps&quot;&gt;de&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Window_Base&lt;/span&gt;? &lt;span class=&quot;hps&quot;&gt;Bueno, eso es&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;porque no tengo&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;pruebas&lt;/span&gt;&lt;span class=&quot;&quot;&gt;.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;III&lt;/span&gt;. &lt;span class=&quot;hps&quot;&gt;Herencia&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;Abra&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;un proyecto de&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;RMXP&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;vacío y&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;pulse&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;F11 para&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;abrir el&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;editor de script&lt;/span&gt;. &lt;span class=&quot;hps&quot;&gt;Desplácese hacia abajo para&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;en&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Window_Base&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;y haga clic en&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;él.&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;En la línea 7&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;se vera algo parecido&lt;/span&gt;&lt;span class=&quot;hps&quot;&gt; a esto&lt;/span&gt;:&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;display: block; margin: 1px auto; width: 95%;&quot;&gt;
&lt;div style=&quot;color: grey; display: block; font-family: Verdana, arial, helvetica, sans-serif; font-size: 12px; font-weight: bold; padding: 1px;&quot;&gt;
Code:
&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 1px solid gray; color: #006600; display: block; font-family: Courier new, courier, mono; font-size: 12px; padding: 1px;&quot;&gt;
class Window_Base &amp;lt; Window&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;Esta línea de código&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;nos dice que&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;Window_Base &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;es hijo de&lt;/span&gt;&amp;nbsp;&lt;span class=&quot;hps&quot;&gt;&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;Window&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;&lt;/span&gt;, o &lt;span class=&quot;hps&quot;&gt;Window_Base&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;es una subclase&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;de&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt; Window&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;&lt;/span&gt;. &lt;span class=&quot;hps&quot;&gt;Si nos fijamos en&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;el script de&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Window_Gold&lt;/span&gt;, verá &lt;span class=&quot;hps&quot;&gt;algo similar&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;en la línea 7&lt;/span&gt;:&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;display: block; margin: 1px auto; width: 95%;&quot;&gt;
&lt;div style=&quot;color: grey; display: block; font-family: Verdana, arial, helvetica, sans-serif; font-size: 12px; font-weight: bold; padding: 1px;&quot;&gt;
Code:
&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 1px solid gray; color: #006600; display: block; font-family: Courier new, courier, mono; font-size: 12px; padding: 1px;&quot;&gt;
class Window_Gold &amp;lt; Window_Base&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;Esto demuestra&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;que&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;la clase&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Window_Gold&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;es una subclase de&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Window_Base&lt;/span&gt;. &lt;span class=&quot;hps&quot;&gt;Cuando una clase&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;es una subclase&lt;/span&gt;, hereda&lt;span class=&quot;hps&quot;&gt; todos&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;los mismos métodos&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;de la clase&lt;/span&gt; Padre&lt;span class=&quot;hps&quot;&gt;.&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Básicamente,&lt;/span&gt;la subclase sera igual a la clase, más las &lt;span class=&quot;hps&quot;&gt;nuevas características&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;que usted mismo puede&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;definir&lt;/span&gt;&lt;span class=&quot;&quot;&gt;.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;IV&lt;/span&gt;. &lt;span class=&quot;hps&quot;&gt;Set-Up&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;Estoy bastante&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;seguro de que he&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;aburrido&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;bastante a&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;ustedes&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;que la&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;gran cantidad de&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;texto, pero&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;ahora&amp;nbsp;&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;finalmente vamos a&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;saber del código&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt; &lt;span class=&quot;hps&quot;&gt;Bien&lt;/span&gt;, en primer lugar&lt;span class=&quot;&quot;&gt;, tenemos que&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;hacer una&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;nueva página en blanco&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;en el editor de&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;script.&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Si&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;no lo ha hecho&lt;/span&gt;, &lt;span class=&quot;hps&quot;&gt;hacer un proyecto&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;RMXP&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;nuevo y pulse&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;F11 para abrir&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;el editor de script&lt;/span&gt;. &lt;span class=&quot;hps&quot;&gt;Desplácese&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;hasta el final&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;de&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;la lista de script, en el Main&lt;/span&gt;&lt;span class=&quot;hps&quot;&gt;.&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Haga clic en él&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;y pulsa&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Insertar.&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Ahora deberías ver&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;un espacio en blanco&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;por encima de&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;principal&lt;/span&gt;, &lt;span class=&quot;hps&quot;&gt;haga clic en él&lt;/span&gt;. &lt;span class=&quot;hps&quot;&gt;Ahora&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;mira hacia abajo&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;en&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;principal&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;y usted debería ver&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;un espacio en blanco&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;donde se puede escribir&lt;/span&gt;. &lt;span class=&quot;hps&quot;&gt;Allí&lt;/span&gt;, escriba &lt;span class=&quot;hps&quot;&gt;el título de nuestro&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;nuevo script&lt;/span&gt;: &lt;/span&gt;&lt;b&gt;Custom Text Window&lt;/b&gt;&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;&lt;/span&gt;. &lt;span class=&quot;hps&quot;&gt;Después de dar&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;el nombre a su&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;ventana,&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;a la derecha,&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;debe haber&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;una hoja&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;blanca de&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;gran&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;espacio para poder&lt;/span&gt;&lt;span class=&quot;hps&quot;&gt; comenzar a escribir&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;el scrpit&lt;/span&gt;. &lt;span class=&quot;hps&quot;&gt;Antes de empezar,&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;tenemos que saber&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;quién es el padre&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;o la&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;super clase&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;de nuestro script&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;va a ser&lt;/span&gt;. &lt;span class=&quot;hps&quot;&gt;Desde&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;esta ventana&lt;/span&gt; solo vamos a mostrar&lt;span class=&quot;hps&quot;&gt; información&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;y no&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;va&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;tener opciones&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;para que usted elija&lt;/span&gt;&lt;span class=&quot;&quot;&gt;, a continuación,&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;la superclase&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;de esta ventana&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;va a ser&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Window_Base&lt;/span&gt;. &lt;span class=&quot;hps&quot;&gt;Ahora&lt;/span&gt;&lt;span class=&quot;hps&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;es el momento para&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;que te dé&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;el esquema que&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;normalmente se utiliza&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;al realizar un script&lt;/span&gt;&lt;span class=&quot;hps&quot;&gt; de&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;ventana que&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;es&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;una subclase de&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Window_Base&lt;/span&gt;:&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;display: block; margin: 1px auto; width: 95%;&quot;&gt;
&lt;div style=&quot;color: grey; display: block; font-family: Verdana, arial, helvetica, sans-serif; font-size: 12px; font-weight: bold; padding: 1px;&quot;&gt;
Code:
&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 1px solid gray; color: #006600; display: block; font-family: Courier new, courier, mono; font-size: 12px; padding: 1px;&quot;&gt;
#==============================================================================&lt;br /&gt;
# ** &lt;br /&gt;
#------------------------------------------------------------------------------&lt;br /&gt;
#  &lt;br /&gt;
#==============================================================================&lt;br /&gt;
&lt;br /&gt;
class &lt;br /&gt;
#--------------------------------------------------------------------------&lt;br /&gt;
# * Object Initialization&lt;br /&gt;
#--------------------------------------------------------------------------&lt;br /&gt;
def initialize&lt;br /&gt;
super(x, y, width, height)&lt;br /&gt;
self.contents = Bitmap.new(width - 32, height - 32)&lt;br /&gt;
refresh&lt;br /&gt;
end&lt;br /&gt;
#--------------------------------------------------------------------------&lt;br /&gt;
# * Refresh&lt;br /&gt;
#--------------------------------------------------------------------------&lt;br /&gt;
def refresh&lt;br /&gt;
self.contents.clear&lt;br /&gt;
end&lt;br /&gt;
end&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;En primer lugar&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;copiar&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;este esquema&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;en un archivo de&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;bloc de notas&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;en blanco&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;y lo llaman&lt;/span&gt; Window Outline&lt;span class=&quot;hps&quot;&gt;&lt;/span&gt;. &lt;span class=&quot;hps&quot;&gt;Debe&lt;/span&gt;s &lt;span class=&quot;hps&quot;&gt;hacer esto para que&lt;/span&gt;&lt;span class=&quot;hps&quot;&gt; puedas&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;copiar este&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;esquema desde&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;el bloc de notas&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;cada vez que&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;lo necesites.&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Ahora&lt;/span&gt;, copia este &lt;span class=&quot;hps&quot;&gt;esquema en el interior de la clase recien creada (la que hablamos anteriormente) en la hoja en blanco de esta&lt;/span&gt;&lt;span class=&quot;hps&quot;&gt;.&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Si lo hiciste correctamente deberia quedar de la siguiente manera:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh0LsR_0GjvGiMXKcthH29ZHu1MslTyW_BG0EA4HJ5xl6NScSVKWkLqwajN8LOnUdavDMiTPzste6zQJP3gc_4lO46RtIQep_eq6QVIBqEp6MvTW_NXCrmmh2sw-lUSsTIV0ALV2KKgwNM/s1600/pic1ot.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;343&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh0LsR_0GjvGiMXKcthH29ZHu1MslTyW_BG0EA4HJ5xl6NScSVKWkLqwajN8LOnUdavDMiTPzste6zQJP3gc_4lO46RtIQep_eq6QVIBqEp6MvTW_NXCrmmh2sw-lUSsTIV0ALV2KKgwNM/s400/pic1ot.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;V.&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Hacer&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Nuestra&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;ventana&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;En primer lugar,&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;vamos a empezar&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;con las líneas 1&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;a 5&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;del script&lt;/span&gt;. &lt;span class=&quot;hps&quot;&gt;El símbolo&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;#&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;significa que el&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;resto de la línea&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;será&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;un&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;comentario&lt;/span&gt;. &lt;span class=&quot;hps&quot;&gt;Los comentarios no&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;cambiar el resultado de&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;un script&lt;/span&gt;, &lt;span class=&quot;hps&quot;&gt;su único propósito&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;es ayudar a&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;la gente a entender&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;mejor&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;lel script&lt;/span&gt;. &lt;span class=&quot;hps&quot;&gt;Hagan su mejor esfuerzo&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;para comentar&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;a menudo, pero&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;no todo el tiempo&lt;/span&gt;. &lt;span class=&quot;hps&quot;&gt;Pues bien,&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;vemos que&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;en la línea 2&lt;/span&gt;, &lt;span class=&quot;hps&quot;&gt;hay&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;un&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;símbolo de comentario&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;y&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;acompañado de dos asteriscos&lt;/span&gt;&lt;span class=&quot;hps&quot;&gt;&lt;/span&gt;. &lt;span class=&quot;hps&quot;&gt;Aquí va&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;el nombre de nuestra&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;clase de ventana&lt;/span&gt;&lt;span class=&quot;hps&quot;&gt;&lt;/span&gt;&lt;span class=&quot;hps&quot;&gt;&lt;/span&gt;. &lt;span class=&quot;hps&quot;&gt;La vamos a&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;llamar&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Window_Text&lt;/span&gt;. &lt;span class=&quot;hps&quot;&gt;Ahora&lt;/span&gt;, &lt;span class=&quot;hps&quot;&gt;en la línea 4&lt;/span&gt;, también &lt;span class=&quot;hps&quot;&gt;debe ser un&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;símbolo de comentario&lt;/span&gt;. &lt;span class=&quot;hps&quot;&gt;Aquí,&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;vamos a escribir&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;la descripción de&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;nuestra clase.&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Algo asi &lt;/span&gt;&lt;span class=&quot;hps atn&quot;&gt;como &quot;&lt;/span&gt;Este texto &lt;span class=&quot;hps&quot;&gt;aparece&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;en una&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;clase de&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;ventana&quot;&lt;/span&gt;. &lt;span class=&quot;hps&quot;&gt;Ahora bajamos a&lt;/span&gt;&lt;span class=&quot;hps&quot;&gt;&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;la línea que comienza&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;con la clase&lt;/span&gt;. &lt;b&gt;&lt;span class=&quot;hps&quot;&gt;Class&lt;/span&gt;&lt;/b&gt; &lt;span class=&quot;hps&quot;&gt;es una palabra clave&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;en Ruby&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;/&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;RGSS&lt;/span&gt;. &lt;span class=&quot;hps&quot;&gt;Es&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;la palabra clave&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;que se utiliza&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;cada vez que&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;se define una clase&lt;/span&gt;. &lt;span class=&quot;hps&quot;&gt;Dado que en&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;nuestros comentarios&lt;/span&gt;, &lt;span class=&quot;hps&quot;&gt;nos&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;dice que el&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;nombre de la clase&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;iba a ser&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Window_Text&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;y ya&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;dijimos que&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;esta ventana&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;va a&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;ser heredado de&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Window_Base&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;ya que sólo&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;muestra la información&lt;/span&gt;, esta línea &lt;span class=&quot;hps&quot;&gt;debería tener este aspecto&lt;/span&gt;&lt;span class=&quot;&quot;&gt;:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;display: block; margin: 1px auto; width: 95%;&quot;&gt;
&lt;div style=&quot;color: grey; display: block; font-family: Verdana, arial, helvetica, sans-serif; font-size: 12px; font-weight: bold; padding: 1px;&quot;&gt;
Code:
&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 1px solid gray; color: #006600; display: block; font-family: Courier new, courier, mono; font-size: 12px; padding: 1px;&quot;&gt;
Class Window_Text &amp;lt; Window_Base&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;Bueno, ahora&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;tenemos todo el script bajo esa clase&lt;/span&gt;&lt;span class=&quot;hps&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;vamos a pasar&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;a los métodos&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;del script&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;:)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt; &lt;span class=&quot;hps&quot;&gt;En primer lugar,&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;que&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;es un método&lt;/span&gt;? &lt;span class=&quot;hps&quot;&gt;Bueno, en&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Rubí /&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;RGSS&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;un método&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;es básicamente&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;un bloque de código&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;que se puede llamar&lt;/span&gt;&amp;nbsp;&lt;span class=&quot;hps&quot;&gt; fuera&lt;/span&gt; de &lt;span class=&quot;hps&quot;&gt;una clase.&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Un ejemplo&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;sería algo así como&lt;/span&gt;:&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;display: block; margin: 1px auto; width: 95%;&quot;&gt;
&lt;div style=&quot;color: grey; display: block; font-family: Verdana, arial, helvetica, sans-serif; font-size: 12px; font-weight: bold; padding: 1px;&quot;&gt;
Code:
&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 1px solid gray; color: #006600; display: block; font-family: Courier new, courier, mono; font-size: 12px; padding: 1px;&quot;&gt;
def stop_print&lt;br /&gt;
print “Hello” unless Input.tigger?(Input::A)&lt;br /&gt;
end&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;Lo que este&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;método simplemente&lt;/span&gt;&lt;span class=&quot;hps&quot;&gt; hace es&lt;/span&gt; &lt;span class=&quot;hps atn&quot;&gt;imprimir &quot;&lt;/span&gt;Hola&quot; siempre que &lt;span class=&quot;hps&quot;&gt;el botón A&lt;/span&gt;&lt;span class=&quot;hps&quot;&gt; se pulse&lt;/span&gt;. &lt;span class=&quot;hps&quot;&gt;La forma de&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;llamar a un método&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;en el script&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;es escribir&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;su nombre.&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Algo así como&lt;/span&gt;&lt;span class=&quot;&quot;&gt;:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;display: block; margin: 1px auto; width: 95%;&quot;&gt;
&lt;div style=&quot;color: grey; display: block; font-family: Verdana, arial, helvetica, sans-serif; font-size: 12px; font-weight: bold; padding: 1px;&quot;&gt;
Code:
&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 1px solid gray; color: #006600; display: block; font-family: Courier new, courier, mono; font-size: 12px; padding: 1px;&quot;&gt;
def print_things&lt;br /&gt;
print “Hey”&lt;br /&gt;
print “World”&lt;br /&gt;
stop_print&lt;br /&gt;
print “What”&lt;br /&gt;
end&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;Lo que sucede aquí&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;es que &lt;/span&gt;&lt;span class=&quot;hps&quot;&gt;imprimiremos&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;el texto&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;hasta llegar a&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;stop_print&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;que nos da la&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;opción de pulsar&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;A y no&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;imprimir esa&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;línea de texto.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt; &lt;span class=&quot;hps&quot;&gt;Ahora&lt;/span&gt;, &lt;span class=&quot;hps&quot;&gt;que tenemos&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;una comprensión básica&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;de los métodos&lt;/span&gt;, &lt;span class=&quot;hps&quot;&gt;volvamos&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;a nuestro código&lt;/span&gt;, &lt;span class=&quot;hps&quot;&gt;¿de acuerdo?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt; &lt;span class=&quot;hps&quot;&gt;El método initialize&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;es&lt;/span&gt;ta &lt;span class=&quot;hps&quot;&gt;en cada&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;clase de ventana.&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Basta con mirar los script de&lt;/span&gt;&lt;span class=&quot;hps&quot;&gt;&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Window_Gold&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Window_PlayTime&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;y te darás cuenta&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;de que el&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;método initialize&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;esta&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;en los dos&lt;/span&gt;&lt;span class=&quot;hps&quot;&gt;.&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;El método&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;de inicialización&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;define las propiedades de&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;la ventana.&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;La primera línea de&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;este bloque de código&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;dice lo siguiente:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;display: block; margin: 1px auto; width: 95%;&quot;&gt;
&lt;div style=&quot;color: grey; display: block; font-family: Verdana, arial, helvetica, sans-serif; font-size: 12px; font-weight: bold; padding: 1px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;color: grey; display: block; font-family: Verdana,arial,helvetica,sans-serif; font-size: 12px; font-weight: bold; padding: 1px;&quot;&gt;
Code:
&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 1px solid gray; color: #006600; display: block; font-family: Courier new, courier, mono; font-size: 12px; padding: 1px;&quot;&gt;
def initialize&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;Esto sólo&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;nos dice que&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;estamos haciendo&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;un método llamado&lt;/span&gt; initialize&lt;span class=&quot;hps&quot;&gt;&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt; &lt;span class=&quot;hps&quot;&gt;A continuación tenemos&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;la línea que comienza&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;con el super&lt;/span&gt;. &lt;span class=&quot;hps&quot;&gt;Super es&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;una palabra clave que&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;llama a un método&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;de la clase que&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;hereda de&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;esta clase(la clase padre)&lt;/span&gt;. &lt;span class=&quot;hps&quot;&gt;Así que, básicamente&lt;/span&gt;, en este caso, es &lt;span class=&quot;hps&quot;&gt;una llamada al método&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;initialize&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;de la clase&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Window_Base&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;para que podamos&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;definir la&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;coordenada x,&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;la coordenada&lt;/span&gt; y, &lt;span class=&quot;hps&quot;&gt;la anchura&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;y la altura de&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;nuestra ventana&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;nueva&lt;/span&gt;. &lt;span class=&quot;hps&quot;&gt;Puesto que esto&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;va a actuar como&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;una ventana de&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;texto normal&lt;/span&gt;, vamos a establecer la &lt;span class=&quot;hps&quot;&gt;coordenada x&lt;/span&gt; en 0, la &lt;span class=&quot;hps&quot;&gt;coordenada&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;y 320&lt;/span&gt;, el ancho de &lt;span class=&quot;hps&quot;&gt;640 y&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;la altura&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;160.&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Trata de&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;jugar con&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;estos valores&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;para que pueda&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;obtener una mejor comprensión&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;de la manipulación de&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;las propiedades&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;de la ventana.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt; &lt;span class=&quot;hps&quot;&gt;A continuación tenemos&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;una línea que&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;comienza con&lt;/span&gt; &lt;b&gt;&lt;span class=&quot;hps&quot;&gt;self.contents&lt;/span&gt;&lt;/b&gt;. &lt;span class=&quot;hps&quot;&gt;Esta línea&lt;/span&gt;&lt;span class=&quot;&quot;&gt;, básicamente, sólo&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;se inicializa&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;la ventana&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;de los valores&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;que acaba de&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;poner y&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;crea&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;un mapa de bits&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;fuera de él.&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Después de eso,&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;nuestro&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;método de actualización&lt;/span&gt; es&lt;span class=&quot;hps&quot;&gt; llamado&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;y&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;terminado con&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;la palabra clave&lt;/span&gt; &lt;b&gt;&lt;span class=&quot;hps&quot;&gt;end&lt;/span&gt;&lt;/b&gt;. &lt;span class=&quot;hps&quot;&gt;El script&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;debería tener este aspecto&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;a partir de ahora&lt;/span&gt;:&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgwy6duvrisfQSmkJsqQ2xZEUm2NtSy8_apbSvzdYZQrDmoMkHkCv9ZAYgKhCLrCBV8radGgIuHv78OLsN2D5bQ8s25mQ_f-gj6xGfv5_HGVXmb1gn9mREIN4xxV2bn1xr7SBuRLjGTmWc/s1600/pic2n.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;343&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgwy6duvrisfQSmkJsqQ2xZEUm2NtSy8_apbSvzdYZQrDmoMkHkCv9ZAYgKhCLrCBV8radGgIuHv78OLsN2D5bQ8s25mQ_f-gj6xGfv5_HGVXmb1gn9mREIN4xxV2bn1xr7SBuRLjGTmWc/s400/pic2n.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;VI&lt;/span&gt;. &lt;span class=&quot;hps&quot;&gt;Mostrar&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Nuestra&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;ventana&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;Bien, ahora&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;vamos a ver&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;lo que hemos hecho&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;hasta ahora.&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Pulse OK en&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;la ventana del&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;editor de script&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;para cerrarlo&lt;/span&gt;&lt;span class=&quot;hps&quot;&gt;.&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Ahora&lt;/span&gt;&lt;span class=&quot;&quot;&gt;, presione F8&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;para que su&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;capa de&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;eventos&lt;/span&gt; (mapa)&lt;span class=&quot;hps&quot;&gt;&lt;/span&gt;. &lt;span class=&quot;hps&quot;&gt;Haga doble clic en&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;una ficha&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;al azar&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;para abrir&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;la ventana&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;de eventos&lt;/span&gt;&lt;span class=&quot;hps&quot;&gt;&lt;/span&gt;. &lt;span class=&quot;hps&quot;&gt;Haga doble clic en&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;el cuadro bajo&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;que el&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;de abrir&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;la lista&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;de los&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;gráficos de los personajes&lt;/span&gt;. &lt;span class=&quot;hps&quot;&gt;Elija&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;la segunda&lt;/span&gt; opcion &lt;span class=&quot;hps&quot;&gt;llamada&lt;/span&gt; &lt;span class=&quot;hps atn&quot;&gt;002-&lt;/span&gt;Fighter02 &lt;span class=&quot;hps&quot;&gt;y aceptar&lt;/span&gt;&lt;span class=&quot;hps&quot;&gt;&lt;/span&gt;. &lt;span class=&quot;hps&quot;&gt;Ahora, ve a&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;la derecha de&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;la ventana del&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;evento, en la lista&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;de los comandos&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;del eventos&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;y haga doble&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;clic en cualquier&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;espacio al azar&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;para &lt;/span&gt;&lt;span class=&quot;hps&quot;&gt;abrir&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;la ventana de&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;comandos&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;de eventos&lt;/span&gt;. &lt;span class=&quot;hps&quot;&gt;Ir&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;a la página tres&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;y haga clic en&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;el último comando&lt;/span&gt; &lt;span class=&quot;hps atn&quot;&gt;que dice &quot;llamar &lt;/span&gt;&lt;span class=&quot;&quot;&gt;script&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;...&lt;/span&gt; &lt;span class=&quot;hps atn&quot;&gt;&#39;&lt;/span&gt;. &lt;span class=&quot;hps&quot;&gt;Ahora&lt;/span&gt; en &lt;span class=&quot;hps&quot;&gt;la ventana Script&lt;/span&gt;. &lt;span class=&quot;hps&quot;&gt;Copia este&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;trozo de&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;código en&lt;/span&gt;&lt;span class=&quot;&quot;&gt;:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;display: block; margin: 1px auto; width: 95%;&quot;&gt;
&lt;div style=&quot;color: grey; display: block; font-family: Verdana, arial, helvetica, sans-serif; font-size: 12px; font-weight: bold; padding: 1px;&quot;&gt;
Code:
&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 1px solid gray; color: #006600; display: block; font-family: Courier new, courier, mono; font-size: 12px; padding: 1px;&quot;&gt;
$window = Window_Text.new&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;Después de esto,&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;pulsa Aceptar y&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;a continuación&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;vuelve a ingresar otro evento, esta vez le pondremos un esperar 40 frames, le das aceptar y nuevamente te vas al ultimo comando que dice llamar script, alli le pones la siguiente linea de codigo:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;display: block; margin: 1px auto; width: 95%;&quot;&gt;
&lt;div style=&quot;color: grey; display: block; font-family: Verdana, arial, helvetica, sans-serif; font-size: 12px; font-weight: bold; padding: 1px;&quot;&gt;
Code:
&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 1px solid gray; color: #006600; display: block; font-family: Courier new, courier, mono; font-size: 12px; padding: 1px;&quot;&gt;
$window.dispose&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;A continuación, pulse&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Aceptar&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;y revise&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;para ver&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;si la ventana de su&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Case&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;se parece a esto&lt;/span&gt;&lt;span class=&quot;&quot;&gt;:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgtBo6MhlCmASPwrD9L80D9Jdcy-oAS_lgDbPgI7jdcEMSGwxfEYgIQ7C7EWJcoebJ2RwuQABhTq0R5yyuCflTlahTKy8KSTVPM_iTNwPkNrpVaGg9jbjbh_Iu5aZSKUcy3kEY4255guRo/s1600/pic3wf.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;376&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgtBo6MhlCmASPwrD9L80D9Jdcy-oAS_lgDbPgI7jdcEMSGwxfEYgIQ7C7EWJcoebJ2RwuQABhTq0R5yyuCflTlahTKy8KSTVPM_iTNwPkNrpVaGg9jbjbh_Iu5aZSKUcy3kEY4255guRo/s400/pic3wf.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;Ahora que&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;ha terminado&lt;/span&gt;, &lt;span class=&quot;hps&quot;&gt;pulse OK en&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;la ventana de su&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Case&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;para cerrar&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;fuera de él&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;y pulse&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;F12 para probar&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;ejecutar nuestro proyecto&lt;/span&gt;. &lt;span class=&quot;hps&quot;&gt;Asegúrese de guardar&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;si se&lt;/span&gt; le solicita&lt;span class=&quot;hps&quot;&gt;&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt; &lt;span class=&quot;hps&quot;&gt;Ir&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;hasta&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;el evento&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;que acaba de hacer&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;y pulse&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;el botón de acción&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;en él.&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Una ventana&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;debe aparecer&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;en la parte inferior&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;de la pantalla&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;y desaparecen después de&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;unos 2 segundos&lt;/span&gt;. &lt;span class=&quot;hps&quot;&gt;Si&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;ese es el caso&lt;/span&gt;, vamos a &lt;span class=&quot;hps&quot;&gt;continuar con&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;este tutorial&lt;/span&gt;&lt;span class=&quot;&quot;&gt;, si no&lt;/span&gt;&lt;span class=&quot;&quot;&gt;, trate de&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;volver a leer&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;el tutorial&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;de la parte&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;que empezamos a&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;crear nuestro&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;evento en&lt;/span&gt;&lt;span class=&quot;&quot;&gt;.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;VII&lt;/span&gt;&lt;span class=&quot;&quot;&gt;.&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Agregar contenido&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;a nuestra ventana&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;Ahora&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;es hora de&lt;/span&gt;&lt;span class=&quot;hps&quot;&gt;l último paso de&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;nuestro tutorial.&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Tenemos que&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;editar nuestro&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;método de actualización&lt;/span&gt;. &lt;span class=&quot;hps&quot;&gt;Abre&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;el editor de&lt;/span&gt; &lt;span class=&quot;hps atn&quot;&gt;script (&lt;/span&gt;F11) de nuevo &lt;span class=&quot;hps&quot;&gt;e ir&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;a la línea 19&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;de nuestro script&lt;/span&gt;. &lt;span class=&quot;hps&quot;&gt;Ya hemos hablado de&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;lo que&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;este tipo de&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;líneas&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;son, sino que&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;basta con utilizar&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;la palabra clave&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;def&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;para demostrar que&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;estamos definiendo&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;un método&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;y luego le da&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;el nombre&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;del método&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;que en este caso&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;es&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;&quot;Refresh&quot;&lt;/span&gt;. &lt;span class=&quot;hps&quot;&gt;En la siguiente línea&lt;/span&gt;, &lt;span class=&quot;hps&quot;&gt;tenemos algo que&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;se parece a esto&lt;/span&gt;:&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;display: block; margin: 1px auto; width: 95%;&quot;&gt;
&lt;div style=&quot;color: grey; display: block; font-family: Verdana, arial, helvetica, sans-serif; font-size: 12px; font-weight: bold; padding: 1px;&quot;&gt;
Code:
&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 1px solid gray; color: #006600; display: block; font-family: Courier new, courier, mono; font-size: 12px; padding: 1px;&quot;&gt;
self.contents.clear&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;Esta línea simplemente&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;borra&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;de nuestro&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;mapa de bits&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;/&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;ventana que&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;se ha hecho,&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;para que podamos&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;empezar a dibujar&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;un poco de texto&lt;/span&gt;. &lt;span class=&quot;hps&quot;&gt;Ahora,&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;añadimos una nueva línea&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;después de esta línea&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;pulsando enter&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;al final&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;de ella&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;y copiar&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;esta línea de código&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;en:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;display: block; margin: 1px auto; width: 95%;&quot;&gt;
&lt;div style=&quot;color: grey; display: block; font-family: Verdana, arial, helvetica, sans-serif; font-size: 12px; font-weight: bold; padding: 1px;&quot;&gt;
Code:
&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 1px solid gray; color: #006600; display: block; font-family: Courier new, courier, mono; font-size: 12px; padding: 1px;&quot;&gt;
self.contents.draw_text(0, 0, 100, 100, &quot;Hello World&quot;)&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;Esta línea&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;nos dice que&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;vamos a&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;dibujar el texto&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;en la&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;ventana.&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Los valores en&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;los paréntesis&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;que van de&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;izquierda a derecha,&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;la coordenada x&lt;/span&gt;, &lt;span class=&quot;hps&quot;&gt;la coordenada y&lt;/span&gt;, &lt;span class=&quot;hps&quot;&gt;la anchura,&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;la altura,&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;y, finalmente,&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;la cadena de texto&lt;/span&gt;&lt;span class=&quot;&quot;&gt;.&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Trate de&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;jugar con&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;estos valores&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;para acostumbrarse a lo que hace&lt;/span&gt;&lt;span class=&quot;hps&quot;&gt;.&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;A continuación, agregue&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;estas líneas de código&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;después de la que&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;acabamos de agregar&lt;/span&gt;&lt;span class=&quot;&quot;&gt;:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;display: block; margin: 1px auto; width: 95%;&quot;&gt;
&lt;div style=&quot;color: grey; display: block; font-family: Verdana, arial, helvetica, sans-serif; font-size: 12px; font-weight: bold; padding: 1px;&quot;&gt;
Code:
&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 1px solid gray; color: #006600; display: block; font-family: Courier new, courier, mono; font-size: 12px; padding: 1px;&quot;&gt;
self.contents.font.color = system_color&lt;br /&gt;
self.contents.draw_text(150, 0, 100, 100, &quot;Hello World&quot;)&lt;br /&gt;
self.contents.font.color = knockout_color&lt;br /&gt;
self.contents.draw_text(300, 0, 100, 100, &quot;Hello World&quot;)&lt;br /&gt;
self.contents.font.color = crisis_color&lt;br /&gt;
self.contents.draw_text(450, 0, 100, 100, &quot;Hello World&quot;)&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;En la primera línea&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;de este código&lt;/span&gt;, hemos cambiado &lt;span class=&quot;hps&quot;&gt;el color de nuestra&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;siguiente cadena de&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;texto a&lt;/span&gt; &lt;span class=&quot;hps atn&quot;&gt;&quot;&lt;/span&gt;&lt;/span&gt;system_color&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&quot;, que &lt;span class=&quot;hps&quot;&gt;es como un&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;color azulado.&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Después de eso,&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;se añade&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;otra cadena&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;de texto que&lt;/span&gt; &lt;span class=&quot;hps atn&quot;&gt;también dice: &quot;&lt;/span&gt;&lt;/span&gt;Hello World&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&quot;, pero &lt;span class=&quot;hps&quot;&gt;ahora en&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;una coordenada x&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;de 150.&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;La siguiente línea&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;después de esto,&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;podemos cambiar nuestro&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;color de fuente a&lt;/span&gt;&lt;span class=&quot;hps&quot;&gt; &quot;&lt;/span&gt;&lt;/span&gt;knockout_color&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;&lt;/span&gt;&lt;span class=&quot;hps&quot;&gt;&lt;/span&gt;&quot;, que es &lt;span class=&quot;hps&quot;&gt;un color rojo.&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Al igual que&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;antes,&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;se añade&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;otra cadena&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;de texto que&lt;/span&gt; &lt;span class=&quot;hps atn&quot;&gt;también dice: &quot;&lt;/span&gt;&lt;/span&gt;Hello World&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&quot;, pero &lt;span class=&quot;hps&quot;&gt;ahora está en&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;una coordenada x&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;de 300.&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Por último,&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;podemos cambiar nuestro&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;color de la fuente&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;a la &lt;/span&gt;&lt;/span&gt;crisis_color&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;&lt;/span&gt;&lt;span class=&quot;&quot;&gt; que es&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;un color amarillo.&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Después de&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;esto, nos basamos&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;nuestra&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;cadena final&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;de nuestro&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;&quot;&lt;/span&gt;&lt;/span&gt;Hello World&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;&quot;&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;en el&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;texto de&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;una coordenada x&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;de 450&lt;/span&gt;. &lt;span class=&quot;hps&quot;&gt;Además,&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;como nota al margen&lt;/span&gt;, para &lt;span class=&quot;hps&quot;&gt;saber qué tipo de&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;colores que&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;puede utilizar para su&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;tipo de letra,&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;basta con ir a&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;la secuencia de comandos&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Window_Base&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;y la mirada&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;en las líneas&lt;/span&gt; &lt;span class=&quot;hps atn&quot;&gt;61 a la &lt;/span&gt;&lt;span class=&quot;&quot;&gt;90&lt;/span&gt;.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;Su&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;ventana del editor de&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;script debería&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;tener este aspecto:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhbOgLdumN_Rie5y312bFJ0wDQ-sgyx8RrGbURKBno1uXvCepsZVD_6nQRziqwnJEDX0ohRqJl_KdJ5imcTlr8wQc6dfXOTC1IEDURTwhdEF9zCETv8SkCkwszGMarqJiC0cl4kJ_vLcy0/s1600/pic4f.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;343&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhbOgLdumN_Rie5y312bFJ0wDQ-sgyx8RrGbURKBno1uXvCepsZVD_6nQRziqwnJEDX0ohRqJl_KdJ5imcTlr8wQc6dfXOTC1IEDURTwhdEF9zCETv8SkCkwszGMarqJiC0cl4kJ_vLcy0/s400/pic4f.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;Ahora vamos a&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;guardar nuestro proyecto&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;y probar&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;ejecutar nuestro&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;juego&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;(F12)&lt;/span&gt;. &lt;span class=&quot;hps&quot;&gt;Activa&lt;/span&gt;&lt;span class=&quot;hps&quot;&gt; ese evento&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;que hemos creado&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;y pulse&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;el botón de acción&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;para revelar&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;la ventana&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;nos hemos basado en&lt;/span&gt;. &lt;span class=&quot;hps&quot;&gt;D&lt;/span&gt;&lt;span class=&quot;hps&quot;&gt;ebe tener este aspecto&lt;/span&gt;&lt;span class=&quot;&quot;&gt;:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhvCvnmeS5tOy3d69bnmaUqLSQt8jFcpBQLgYqRyPqtB3EeDSf_fMpV_ADRcWxLK1KO5HCje3IDy6J_ejB4d_-kpogRK9UGeRBTW9VJ9sE30fnldwxs04UyGaErcNH46GS2u0nsHBMmlXo/s1600/pic5s.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;312&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhvCvnmeS5tOy3d69bnmaUqLSQt8jFcpBQLgYqRyPqtB3EeDSf_fMpV_ADRcWxLK1KO5HCje3IDy6J_ejB4d_-kpogRK9UGeRBTW9VJ9sE30fnldwxs04UyGaErcNH46GS2u0nsHBMmlXo/s400/pic5s.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
Si puede ver esta ventana, entonces hemos realizado con exito nuestra primera ventana.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;VIII&lt;/span&gt;. &lt;span class=&quot;hps&quot;&gt;Conclusión&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;Con suerte,&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;yo he sido&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;lo suficientemente claro&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;en este tutorial&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;para que ustedes&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;puedan seguirlo con&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;facilidad&lt;/span&gt;, si no, me disculpo. &lt;span class=&quot;hps&quot;&gt;Esperemos que haya&lt;/span&gt;n &lt;span class=&quot;hps&quot;&gt;aprendido mucho&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;acerca de las ventanas&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;de este tutorial&lt;/span&gt;&lt;span class=&quot;hps&quot;&gt;&lt;/span&gt;&lt;span class=&quot;hps&quot;&gt;&lt;/span&gt;, &lt;span class=&quot;hps&quot;&gt;definitivamente habrá&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;más&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;tutoriales acerca de&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;las ventanas en&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;un futuro próximo&lt;/span&gt;, tales como &lt;span class=&quot;hps&quot;&gt;la adición de imágenes&lt;/span&gt;. &lt;span class=&quot;hps&quot;&gt;Gracias a todos&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;por su tiempo&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;en leer este&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;tutorial&lt;/span&gt;&lt;span class=&quot;hps&quot;&gt;.&lt;/span&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://taller-maker.blogspot.com/feeds/3596776342644824912/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://taller-maker.blogspot.com/2012/04/basic-windows.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8551798844080929407/posts/default/3596776342644824912'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8551798844080929407/posts/default/3596776342644824912'/><link rel='alternate' type='text/html' href='http://taller-maker.blogspot.com/2012/04/basic-windows.html' title='Basic Windows'/><author><name>tenshi98</name><uri>http://www.blogger.com/profile/06461952114644591440</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgMYLI_10CchcS8kNq5rxFCb-2qgfYgYV8MlGNlr-L_ZsMxcoL6C9ytoDmsLM05VJC6-1jMPVIZtoNxo_fHPevstQM3dgJvyQ8gLq4Dr4bIAGs3R3aaBtaJPz8E1e1How/s220/Albert_Wesker___Resident_Evil_by_megakay.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh0LsR_0GjvGiMXKcthH29ZHu1MslTyW_BG0EA4HJ5xl6NScSVKWkLqwajN8LOnUdavDMiTPzste6zQJP3gc_4lO46RtIQep_eq6QVIBqEp6MvTW_NXCrmmh2sw-lUSsTIV0ALV2KKgwNM/s72-c/pic1ot.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8551798844080929407.post-5439102834335842897</id><published>2012-04-07T18:42:00.001-07:00</published><updated>2012-04-16T04:59:28.863-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Crear un juego desde 0."/><title type='text'>Tutorial de minas</title><content type='html'>&lt;b&gt;Notas preliminares&lt;/b&gt; : tengan en cuenta que este engine esta integrado a &lt;a href=&quot;http://taller-maker.blogspot.com/2012/04/crear-un-action-rpg-y-no-morir-en-el_7185.html&quot;&gt;este sistema&lt;/a&gt;, asi que al descargar el ejemplo, de paso tambien se descargan el sistema.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;En esta clase enseñare como crear una mina y poder detonarla a distancia, comenzaremos creando un evento comun en donde crearemos 2 variables para guardar la posicion x-y del personaje, estas nos serviran para decirle al evento mina donde ubicarse, a estas variables las llamaremos &lt;b&gt;mina x&lt;/b&gt; y &lt;b&gt;mina y&lt;/b&gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjegCgOMfjA1ZrgrQyBsf6KmNm41knBh-ic5MKpmKxTC7Ejm82ncyR61qUHximpZl1Ur4QxObYGdlf526rpyvdbpvXuF68ZT8WtZhg9s8KG9W7Ur9Y4tm0p6kgf8AroJJWNICZzI-EU3Ag/s1600/2012-04-07_193410.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjegCgOMfjA1ZrgrQyBsf6KmNm41knBh-ic5MKpmKxTC7Ejm82ncyR61qUHximpZl1Ur4QxObYGdlf526rpyvdbpvXuF68ZT8WtZhg9s8KG9W7Ur9Y4tm0p6kgf8AroJJWNICZzI-EU3Ag/s1600/2012-04-07_193410.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
Despues le indicamos que espere 5 frames y que active un interruptor que crearemos con el nombre de &lt;b&gt;mina lanzada&lt;/b&gt;, nuestro evento quedaria asi por el momento:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiwKRfZCjGjrdpXcUWs4yDkQcecUZ4v4tPb4HR74kz-DYute4LzpgLqsMvczW021VRb7F1_z2rnwrUpjz0OLXlQc66uTDc4F8PJH98aLrqKyMyrjdjneEeJhShM621MywzqObCh4reWEm4/s1600/2012-04-07_194157.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiwKRfZCjGjrdpXcUWs4yDkQcecUZ4v4tPb4HR74kz-DYute4LzpgLqsMvczW021VRb7F1_z2rnwrUpjz0OLXlQc66uTDc4F8PJH98aLrqKyMyrjdjneEeJhShM621MywzqObCh4reWEm4/s1600/2012-04-07_194157.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
Ahora nos vamos al mapa a crear la mina, recuerden que este evento tendra que estar siempre presente en los mapas que hagan para que puedan ocuparlo&lt;br /&gt;
En la primera hoja en&lt;b&gt; condiciones de aparicion&lt;/b&gt; seleccionamos el interruptor &lt;b&gt;mina lanzada&lt;/b&gt;, en &lt;b&gt;detonante de inicio&lt;/b&gt; lo dejamos en &lt;b&gt;proceso paralelo&lt;/b&gt;, dentro del evento le ponemos un &lt;b&gt;elegir posicion de evento&lt;/b&gt; segun las variables &lt;b&gt;Mina x&lt;/b&gt; y &lt;b&gt;Mina y&lt;/b&gt;, despues le damos un esperar 5 frames y que active un interruptor que crearemos con el nombre de &lt;b&gt;Mina activa&lt;/b&gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhsWB77w0_v70M34TVWq-w8E0T8jbsm_DlIucSeOsIT9f4gvhfW4CzptrmfFJbkR72r8kLR1chnOnu4ihw4acQ-OYmO0FEe_YNXkUFH_8SPGvH6hXlqxHHCl7BhHXedbE-ry_xuHz7y_hg/s1600/2012-04-07_195136.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;343&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhsWB77w0_v70M34TVWq-w8E0T8jbsm_DlIucSeOsIT9f4gvhfW4CzptrmfFJbkR72r8kLR1chnOnu4ihw4acQ-OYmO0FEe_YNXkUFH_8SPGvH6hXlqxHHCl7BhHXedbE-ry_xuHz7y_hg/s400/2012-04-07_195136.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
En la segunda hoja de este mismo evento le ponemos en&lt;b&gt; condiciones de aparicion&lt;/b&gt; seleccionamos el interruptor &lt;b&gt;Mina activa&lt;/b&gt;, en &lt;b&gt;detonante de inicio&lt;/b&gt; lo dejamos en &lt;b&gt;proceso paralelo&lt;/b&gt;,marcamos la opcion de animacion parado y atravesable, tambien seleccionamos algun grafico de mina, dentro del evento le ponemos algun sonido acorde y le damos esperar x frames (ustedes deberan ajustar los frames de acuerdo a la animacion del grafico, aunque es solo opcional), esto hara que el sonido se repita constantemente.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjT2F8Sleko2yzojO6mcfzRjJtL7eQCVXzAGzoLNGOxcZhe7JYau6UCwjyzweK4WQWl-JD-YVVpT9hZVGdK4O9_xShk37JeIU4jomib9GWmGu4M7CCA_3zYSRUi6B1DQiU-KcdA9xk9eJ4/s1600/2012-04-07_195500.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;343&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjT2F8Sleko2yzojO6mcfzRjJtL7eQCVXzAGzoLNGOxcZhe7JYau6UCwjyzweK4WQWl-JD-YVVpT9hZVGdK4O9_xShk37JeIU4jomib9GWmGu4M7CCA_3zYSRUi6B1DQiU-KcdA9xk9eJ4/s400/2012-04-07_195500.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Ya con esto volvemos a los eventos comunes y ponemos un &lt;b&gt;condiciones y efectos&lt;/b&gt; revisando si el interruptor &lt;b&gt;Mina activa&lt;/b&gt; esta encendido, trasladamos lo que habiamos puesto anteriormente dentro de la &lt;b&gt;excepcion&lt;/b&gt; de esta condicion, en la &lt;b&gt;condicion true&lt;/b&gt; ponemos que queremos activar el interruptor que crearemos con el nombre de &lt;b&gt;mina explotando&lt;/b&gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh5feRKSfI42mfngb-Ry0mgxxZcEBu5cTj4u0kRFvRMgWjI8s69XkK0ollupwdAi9EPZMxNxMM1DAS0id1W-nyGJL1WLkvOjDDKDiBwPSo4ZTPUtCmjdhX65oePLnkbu8mCiQGRgha3vCw/s1600/2012-04-07_200225.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh5feRKSfI42mfngb-Ry0mgxxZcEBu5cTj4u0kRFvRMgWjI8s69XkK0ollupwdAi9EPZMxNxMM1DAS0id1W-nyGJL1WLkvOjDDKDiBwPSo4ZTPUtCmjdhX65oePLnkbu8mCiQGRgha3vCw/s1600/2012-04-07_200225.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Ya con esto listo tenemos que ir a &lt;b&gt;PP - Sistema&lt;/b&gt; para poder asignarle su tecla corresondiente (w) para su uso:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJkaPYUk4BkAHXg2g-CkzOzisTu8cgica4R1AmMymniVAJXdI1LiqWLo3ovXR8a26wchacs8FLdCkI2x4GMvxYCRZ0GzamGqB6jv7FX8nTIyAliopKVZUrCM0JtRIin8rD8qARVxfo9hc/s1600/2012-04-07_200443.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJkaPYUk4BkAHXg2g-CkzOzisTu8cgica4R1AmMymniVAJXdI1LiqWLo3ovXR8a26wchacs8FLdCkI2x4GMvxYCRZ0GzamGqB6jv7FX8nTIyAliopKVZUrCM0JtRIin8rD8qARVxfo9hc/s1600/2012-04-07_200443.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Vamos al mapa y entramos nuevamente al evento mina, le creamos una tercera hoja y le ponemos en&lt;b&gt; condiciones de aparicion&lt;/b&gt; seleccionamos el interruptor &lt;b&gt;Mina explotando&lt;/b&gt;, en &lt;b&gt;detonante de inicio&lt;/b&gt; lo dejamos en &lt;b&gt;proceso paralelo, de&lt;/b&gt;ntro del evento le ponemos algun sonido y algun tiempo de espera, tambien le ponemos que desactive todos los interruptores usados para la mina:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-OhXC2RgnG_rxRJKKhgqHXivi6HQdBRHObI194RI06KmjCZX-9lmhPjfBIU5vi0M4AsqufIcpMsYIVL5E9VY-AIbgnV0ci0bqOq-smumTEoTyTjfUZketDm0jjwv8L6utwvpY_bfh3lg/s1600/2012-04-07_200923.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;343&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-OhXC2RgnG_rxRJKKhgqHXivi6HQdBRHObI194RI06KmjCZX-9lmhPjfBIU5vi0M4AsqufIcpMsYIVL5E9VY-AIbgnV0ci0bqOq-smumTEoTyTjfUZketDm0jjwv8L6utwvpY_bfh3lg/s400/2012-04-07_200923.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Aceptamos y testeamos, al presionar w la primera vez aparece la mina, al presionarlo por segunda explota, pero no pasa nada, esto es porque aun no hemos definido que pasara al momento de la explosion: podemos hacer dos cosas, la primera seria hacer que el evento mina calcule todas las posiciones de los enemigos, determinando el area, viendo quienes estan dentro y hacerles daño, basicamente lo mas obvio pero no lo mas optimo, ya que si configuras el evento mina para 10 enemigos, y solo hay 3, la mina calculara las posiciones de los 10 enemigos; este calculo en un computador de ahora no se nota, pero en un pc mas o menos antiguo crea lag, lo mas optimo es ponerle el calculo del area al mismo evento enemigo, que sea este el que calcule que tan cerca esta del evento mina, esto permite que solo los eventos enemigos presentes en el mapa realicen el calculo, disminuyendo el posible lag.&lt;br /&gt;
&lt;br /&gt;
Despues de tanta explicacion, pasare a mostrarles como realizarlo, primero abren el evento enemigo, en la primera hoja copian todo, ahora crean una nueva hoja y le pegan todo, en &lt;b&gt;condiciones de aparicion&lt;/b&gt; le ponen el interruptor &lt;b&gt;mina explotando&lt;/b&gt; y en &lt;b&gt;detonante de inicio&lt;/b&gt; le ponen proceso paralelo, ahora en el interior del evento, en las comparaciones ubican las variables de la &lt;b&gt;posicion x-y del personaje&lt;/b&gt; y se la cambian por la&lt;b&gt; x-y de la mina&lt;/b&gt;, en el interior de todas las condiciones le suman la cantidad que quieran a la variable vida del enemigo (tambien puede ser una cantidad variable) y una animacion acorde:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiDfLB8B4GbcNhZpma8tjCD24QkbK6gNhRDZaVZnPyuGRW7QZZUXTanLYddCBMjQ7oSVu1B3OVjtxViMhG4Adnf0mhrsQ4z8UnOOO-5p9_f9wqP73Zp1-7_gwUnl015bTgXQsQC7wxLZVM/s1600/2012-04-07_202556.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;345&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiDfLB8B4GbcNhZpma8tjCD24QkbK6gNhRDZaVZnPyuGRW7QZZUXTanLYddCBMjQ7oSVu1B3OVjtxViMhG4Adnf0mhrsQ4z8UnOOO-5p9_f9wqP73Zp1-7_gwUnl015bTgXQsQC7wxLZVM/s400/2012-04-07_202556.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Ahora testeamos y vemos que funciona perfecto, lo que nos queda por hacer ahora es que verifique si tenemos minas en el inventario, que reste 1 al usarlas y que le haga daño a nuestro personaje, comenzaremos con lo primero:&lt;br /&gt;
&lt;br /&gt;
Primero creamos el item mina si no lo tenemos creado, luego mediante algun evento le das minas (si, bastante basico de hacer) ahora en el evento comun &lt;b&gt;Actualizar balas&lt;/b&gt;, sobre todas las condiciones agregas una variable que guarde la cantidad de minas que tengas:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0ATli9V6pB9xXlSmgNtcLy0RQcczB85vuOf3WOvuj-qN18BFgUODssIZhtdVRqBwqh0wilW0VXcEhqN4eAT3Vh7f_QgKclxpL31NvABY-wsn4D9Gmm6s3k3gpOozUpZRcUtIukT9CvLA/s1600/2012-04-07_203349.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0ATli9V6pB9xXlSmgNtcLy0RQcczB85vuOf3WOvuj-qN18BFgUODssIZhtdVRqBwqh0wilW0VXcEhqN4eAT3Vh7f_QgKclxpL31NvABY-wsn4D9Gmm6s3k3gpOozUpZRcUtIukT9CvLA/s1600/2012-04-07_203349.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Con esto listo nos vamos al evento comun &lt;b&gt;mina&lt;/b&gt; y dentro de la excepcion le ponemos la condicion de que revise si la variable &lt;b&gt;cantidad de minas&lt;/b&gt; es superior a 0, dentro le pegamos lo que estaba anteriormente en la excepcion y le agregamos &lt;b&gt;cambiar objetos&lt;/b&gt; para que le reste una mina, despues le agregamos un &lt;b&gt;llamar evento comun Actualizar balas&lt;/b&gt; para que actualice la nueva cantidad de minas.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjGoqBPDBDJoNFVW07bt1-CQKaso9oaSSDMwkyOgj-EXBKdf4hM4slejHkEMwpaf6lo_ScjZLHZo6YsZgFtnTbmhJQWLu0deViVpctHiIVqbH3yYeUqBBjXGU3MLJx-KI3zX1HBHvd8Z7E/s1600/2012-04-07_204427.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjGoqBPDBDJoNFVW07bt1-CQKaso9oaSSDMwkyOgj-EXBKdf4hM4slejHkEMwpaf6lo_ScjZLHZo6YsZgFtnTbmhJQWLu0deViVpctHiIVqbH3yYeUqBBjXGU3MLJx-KI3zX1HBHvd8Z7E/s1600/2012-04-07_204427.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Ahora pasaremos a&amp;nbsp; calcular el daño al personaje al estar cerca de la mina, para esto necesitaremos crear 2 variables nuevas para guardar la posicion x-y de la mina, ya que si reutilizamos las que guardan la posicion x-y de la mina intervendremos con el funcionamiento del resto del engine, lo unico que debemos hacer es calcular el area de la mina y verificar si el personaje esta dentro de ella, luego traspasarle el daño al personaje y asignarle una animacion&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiwOkkx2N2x-E63yWOwdYpdWI53LPS2O3hFZvJju9pmIKqSM-O_PaoE_yTv88b7JN-XkmGdIPUJZP-nIilgDQtx6E_CMK6f456JaonlZdh56qFPYoDN4A-17LyKDfHIWv9gwm64o0Clh_Q/s1600/2012-04-07_215949.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiwOkkx2N2x-E63yWOwdYpdWI53LPS2O3hFZvJju9pmIKqSM-O_PaoE_yTv88b7JN-XkmGdIPUJZP-nIilgDQtx6E_CMK6f456JaonlZdh56qFPYoDN4A-17LyKDfHIWv9gwm64o0Clh_Q/s1600/2012-04-07_215949.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
Ya con todo esto tenemos el engine de mina listo.&lt;br /&gt;
&lt;br /&gt;
Descarga del &lt;a href=&quot;http://adf.ly/7BK49&quot;&gt;ejemplo&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://taller-maker.blogspot.com/feeds/5439102834335842897/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://taller-maker.blogspot.com/2012/04/tutorial-de-minas.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8551798844080929407/posts/default/5439102834335842897'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8551798844080929407/posts/default/5439102834335842897'/><link rel='alternate' type='text/html' href='http://taller-maker.blogspot.com/2012/04/tutorial-de-minas.html' title='Tutorial de minas'/><author><name>tenshi98</name><uri>http://www.blogger.com/profile/06461952114644591440</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgMYLI_10CchcS8kNq5rxFCb-2qgfYgYV8MlGNlr-L_ZsMxcoL6C9ytoDmsLM05VJC6-1jMPVIZtoNxo_fHPevstQM3dgJvyQ8gLq4Dr4bIAGs3R3aaBtaJPz8E1e1How/s220/Albert_Wesker___Resident_Evil_by_megakay.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjegCgOMfjA1ZrgrQyBsf6KmNm41knBh-ic5MKpmKxTC7Ejm82ncyR61qUHximpZl1Ur4QxObYGdlf526rpyvdbpvXuF68ZT8WtZhg9s8KG9W7Ur9Y4tm0p6kgf8AroJJWNICZzI-EU3Ag/s72-c/2012-04-07_193410.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8551798844080929407.post-7945439147996321802</id><published>2012-04-07T12:58:00.002-07:00</published><updated>2012-04-16T04:59:44.448-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Crear un juego desde 0."/><title type='text'>Engine de Ascensor</title><content type='html'>&lt;b&gt;Notas preliminares&lt;/b&gt; : tengan en cuenta que este engine esta integrado a &lt;a href=&quot;http://taller-maker.blogspot.com/2012/04/crear-un-action-rpg-y-no-morir-en-el_7185.html&quot;&gt;este sistema&lt;/a&gt;, asi que al descargar el ejemplo, de paso tambien se descargan el sistema. &lt;br /&gt;
&lt;br /&gt;
Hoy comenzaremos con el engine de ascensor, el cual es un poco complicado de hacer, asi que tratare de explicar todo el proceso de creacion:&lt;br /&gt;
&lt;br /&gt;
Primero comenzamos creando un mapa de acuerdo a l que necesitamos:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjBZT-BWCol5mza_Y0l8n1ulZodhDlj3GZHOtaDM9N4lwcb-6MNSMHoMr51NhDvqO92sKY2WroCb8ANO8S4n6iXjCv4T6nahJDLmFdqS8EhxN07AQLK-vG6-kTU0rj2He_aAQkTKc6FYMk/s1600/2012-04-07_125611.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjBZT-BWCol5mza_Y0l8n1ulZodhDlj3GZHOtaDM9N4lwcb-6MNSMHoMr51NhDvqO92sKY2WroCb8ANO8S4n6iXjCv4T6nahJDLmFdqS8EhxN07AQLK-vG6-kTU0rj2He_aAQkTKc6FYMk/s400/2012-04-07_125611.png&quot; width=&quot;368&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Despues creamos un evento en el lugar de la puerta, yo ocupe este:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjG1HGylQvyZM_i0i1PAgHqFmOlB9ggkjLd7RPoxh69YVqnfBo3b68MNTChJb9xK5bI77PXs97eX6uAg3YBOhYIL7U3-ga4MqojqK9eWMcE4Bji1izSgWw-Pd0EG7WKrfeAvMJkc3DrnGk/s1600/2012-04-07_125717.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjG1HGylQvyZM_i0i1PAgHqFmOlB9ggkjLd7RPoxh69YVqnfBo3b68MNTChJb9xK5bI77PXs97eX6uAg3YBOhYIL7U3-ga4MqojqK9eWMcE4Bji1izSgWw-Pd0EG7WKrfeAvMJkc3DrnGk/s320/2012-04-07_125717.png&quot; width=&quot;308&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Ya con esto tenemos &quot;el ascensor&quot;, ahora hay que poner la animacion del cierre de la puerta (y algun sonido para que quede realista) en un evento aparte, yo puse este evento al lado ya que lo reutilizare despues, este evento quedaria asi:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhTUmAScu5kqxGglpTPHNMQv2LU-WTaKHVR7cWwH8_WUK6dbXLFL7aRyYWrdeiVEsYRK6KQ76J6bVT7VOBuepcNx4_CFCENKl8r31CRjdrW5l_9sE564uTKleO41N0x6e10TvFh4v5e9bI/s1600/2012-04-07_125924.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;235&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhTUmAScu5kqxGglpTPHNMQv2LU-WTaKHVR7cWwH8_WUK6dbXLFL7aRyYWrdeiVEsYRK6KQ76J6bVT7VOBuepcNx4_CFCENKl8r31CRjdrW5l_9sE564uTKleO41N0x6e10TvFh4v5e9bI/s400/2012-04-07_125924.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Al final le puse que activara el interruptor A de ese evento, esto es para activar su segunda hoja, en la cual llamare a las imagenes para conformar el menu de los botones del ascensor, el detonante de inicio sera aceptar, ya que quiero que este se active solo cuando yo lo seleccione, el evento quedaria asi:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhU6AoL7V3faaQiiFF4ET9yFKBNzn2MKSFfn_78p5Un0SrhY0ZIe0qmowBO6P1BaWJ2xTfFUK0XelzDRNhzq1kOUnMM7dC9GILkfa-V6E65PiInGIVrqixBJRsOJ4UvRbz3Ku1FsjWBtgw/s1600/2012-04-07_130223.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;341&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhU6AoL7V3faaQiiFF4ET9yFKBNzn2MKSFfn_78p5Un0SrhY0ZIe0qmowBO6P1BaWJ2xTfFUK0XelzDRNhzq1kOUnMM7dC9GILkfa-V6E65PiInGIVrqixBJRsOJ4UvRbz3Ku1FsjWBtgw/s400/2012-04-07_130223.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Ahora, una cosa que me he dado cuenta, a mayor el numero de imagen, mayor es su prioridad de vista, esto quiere decir que la imagen 3 siempre se va a ver sobre la 2, la 2 sobre la 1, por lo tanto asegurense que la imagen base sea siempre la numero 1, y que los botones sean el resto, al final agrego un activar &lt;b&gt;interruptor local b&lt;/b&gt; para pasar a su tercera hoja, que es en donde programaremos la funcion del ascensor:&lt;br /&gt;
&lt;br /&gt;
Comenzamos con la construccion del engine en si:&lt;br /&gt;
&lt;br /&gt;
En la tercera hoja comenzamos seleccionando como &lt;b&gt;detonante de inicio&lt;/b&gt; el proceso paralelo, despes en el interior ponemos un &lt;b&gt;asignar teclas&lt;/b&gt;, para que guarde el valor de las teclas presionadas dentro de una variable:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEis-zwmOSYNV3sJ1bJTww3dVEZuEl-4sgGtfrvyuM-ar7_zFWv_UU1Dny0xzkLdHWgd0bHfF2IeqfQmBbP77Hl-e64TdcM8T8dvdZp8vwzIZFPqo_oaqoMYltBFXdTsoi3Oed1QstKIPGc/s1600/2012-04-07_131253.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEis-zwmOSYNV3sJ1bJTww3dVEZuEl-4sgGtfrvyuM-ar7_zFWv_UU1Dny0xzkLdHWgd0bHfF2IeqfQmBbP77Hl-e64TdcM8T8dvdZp8vwzIZFPqo_oaqoMYltBFXdTsoi3Oed1QstKIPGc/s1600/2012-04-07_131253.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi8XkLUpv_B34JO4ZZdC3VTv2wqVFEF5LpjVUa1IyVkzBMyuzY553FK8j1JyIK9YAgbwI2q7Qmg41_ogrc_e7Zcx3IGCt5Z59eqWklKAA2BuksTvpxUQP3YgYc3P_Xj35JfBaoyGxc-xQw/s1600/2012-04-07_131448.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi8XkLUpv_B34JO4ZZdC3VTv2wqVFEF5LpjVUa1IyVkzBMyuzY553FK8j1JyIK9YAgbwI2q7Qmg41_ogrc_e7Zcx3IGCt5Z59eqWklKAA2BuksTvpxUQP3YgYc3P_Xj35JfBaoyGxc-xQw/s1600/2012-04-07_131448.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Ahora pasaremos a poner las condiciones si presionas hacia arriba o hacia abajo al seleccionar el piso al que quieres ir:&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;La primera condicion seria si la variable &lt;b&gt;teclas ascensor&lt;/b&gt; es igual a 8, o sea, si estas presionando hacia arriba&lt;/li&gt;
&lt;li&gt;La segunda condicion tendra que ir en la excepcion de la primera condicion, y verificara si la variable teclas ascensor es igual a 2, osea si estas presionando hacia arriba&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
Con estas dos condiciones solo tienes dos opciones, presionar hacia arriba o hacia abajo, ahora viene lo complicado de explicar, hacer que otra variable guarde la opcion del piso que estas eligiendo, y que esta reconozca que, por ejemplo, si llegaste al boton 3, pase al 1 automaticamente (en el caso de que tengas solo 3 pisos).&lt;br /&gt;
&lt;br /&gt;
Lo explicare lo mas simple posible:&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;Al boton 1 del ascensor le asignaremos el valor 0 de la variable&lt;/li&gt;
&lt;li&gt;Al boton 2 del ascensor le asignaremos el valor 1 de la variable&lt;/li&gt;
&lt;li&gt;Al boton 3 del ascensor le asignaremos el valor 2 de la variable&lt;/li&gt;
&lt;/ul&gt;
La&amp;nbsp; condicion que pondremos dentro de las condiciones anteriores sera que si la variable (que llamaremos &lt;b&gt;piso - opciones&lt;/b&gt;) es igual a 0, le cambie el valor a 2, en pocas palabras si tienes selecionado el boton 1 y presionas hacia arriba, pase a seleccionar el boton 3, en la excepcion de esta condicion le pondremos que le reste 1 a la variable &lt;b&gt;piso - opciones, y&lt;/b&gt;a que por ejemplo, podemos tener seleccionado el boton 2, y al presionar el boton hacia arriba el valor de la variable no sera 0, sino que sera 1, y como queremos ir al boton 1, necesitamos restarle valores, no reemplazarlo; se que me he complicado un poco, asi que mejor les pongo una captura:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj43GnXlJwf6g179gyEISfjBBMutyuBKJfpg6wIMpk0e7neD9HmofiSmikDywXEu1dN9mV2RLR7AyNc0cgrDMjt9Vj5lTEvlCK7GwQ1oZ36Uprut9nepIJLECcxBEUTWPLVrqBM8HUMVjc/s1600/2012-04-07_133512.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj43GnXlJwf6g179gyEISfjBBMutyuBKJfpg6wIMpk0e7neD9HmofiSmikDywXEu1dN9mV2RLR7AyNc0cgrDMjt9Vj5lTEvlCK7GwQ1oZ36Uprut9nepIJLECcxBEUTWPLVrqBM8HUMVjc/s1600/2012-04-07_133512.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
Si lo probamos ahora, no va a pasar nada, ya que el engine no hace nada en relacion a las imagenes, asi que agregaremos la opcion de que nos muestre el piso que estamos seleccionando, para esto con ayuda de la variable &lt;b&gt;piso - opciones &lt;/b&gt;y algunas condiciones modificaremos la opacidad de los botones (tambien se puede llamar a una nueva imagen que haga de cursor, a la cual le podemos modificar la posicion x-y)&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgiHIqKr38NpRg0O7falHdOGuehikiNcYPBEOpZO28Ggy-4zGIrsaIif_YdcD5pe-sxyzlb_G14x8s-8anBneuDveV1TmL2BcOlloyERMwZDTsFIsCKI8_CCE_yiA3nlBui5VH7re2QVYc/s1600/2012-04-07_135525.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgiHIqKr38NpRg0O7falHdOGuehikiNcYPBEOpZO28Ggy-4zGIrsaIif_YdcD5pe-sxyzlb_G14x8s-8anBneuDveV1TmL2BcOlloyERMwZDTsFIsCKI8_CCE_yiA3nlBui5VH7re2QVYc/s1600/2012-04-07_135525.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Ahora testeamos y vemos que los botones reaccionan a nuestra seleccion, si nos fijamos, el personaje se mueve mientras seleccionamos, debemos crear un evento que lo deje quieto, para eso creamos un nuevo evento en el mapa(seria el tercero), con &lt;b&gt;detonante de inicio&lt;/b&gt; proceso paralelo y que lo active un interruptor que vamos a crear y llamar &lt;b&gt;personaje inmovil&lt;/b&gt;, dentro del evento le pondremos un mover evento(personaje) y que espere 20 frames, esto hara que al estar este interruptor activo, esperara 20 frames repetidas veces.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhvv6pIWd4H2yKufiSimi9P6uVjeZV1JMaetPcFwgHh_BybPi0JV3Ga1CVw689ium7Dg7PD-HSLVO6Zd0Y7nY6A_-ZI1j9pOSaFQE0uSv5U6eyo39DwdKnpHEVB2kQZUzitW1RsnGLM6K0/s1600/2012-04-07_140757.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;345&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhvv6pIWd4H2yKufiSimi9P6uVjeZV1JMaetPcFwgHh_BybPi0JV3Ga1CVw689ium7Dg7PD-HSLVO6Zd0Y7nY6A_-ZI1j9pOSaFQE0uSv5U6eyo39DwdKnpHEVB2kQZUzitW1RsnGLM6K0/s400/2012-04-07_140757.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Ahora debemos activar este interruptor, lo haremos en el evento que tenemos al lado de la puerta(debi haberle puesto nombres para identificarlos), en su segunda hoja, la que llama a las imagenes, quedaria algo asi:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhQSY06hvHTaW40hNJbgDmTmUtk8WrvXRsbwj_142ltnVLefPwUfXcuDGEY9YCX-dAqUoMmECcI2MpSD6kzlb9lSW4Pr46-1hQgoZD4rWxclRDvgWMGV2yZCWfhVcaLDEfvYoylX1ununw/s1600/2012-04-07_145936.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhQSY06hvHTaW40hNJbgDmTmUtk8WrvXRsbwj_142ltnVLefPwUfXcuDGEY9YCX-dAqUoMmECcI2MpSD6kzlb9lSW4Pr46-1hQgoZD4rWxclRDvgWMGV2yZCWfhVcaLDEfvYoylX1ununw/s1600/2012-04-07_145936.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Ahora tenemos que hacer la parte del engine en donde al presionar aceptar nos lleve al piso seleccionado, para esto tendremos que tener en cuenta lo siguiente:&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;Saber en que piso te encuentras&lt;/li&gt;
&lt;li&gt;Saber a que piso vas&lt;/li&gt;
&lt;li&gt;Saber la diferencia de pisos entre el que estas y el que deseas ir&lt;/li&gt;
&lt;li&gt;Borrar las imagenes del engine&lt;/li&gt;
&lt;li&gt;Desactivar el interruptor personaje inmovil&lt;/li&gt;
&lt;li&gt;Desactivar el interruptor local B&lt;/li&gt;
&lt;/ul&gt;
Tambien hay que darle valores a cada piso, para que se sepa hacia donde vamos&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;Piso 1 valor 0 &lt;/li&gt;
&lt;li&gt;Piso 2 valor 1&lt;/li&gt;
&lt;li&gt;Piso 3 valor 2&lt;/li&gt;
&lt;/ul&gt;
Teniendo esto claro comenzamos:&lt;br /&gt;
Primero comenzamos poniendo una comparacion de la variable tecla, si esta es igual a 13 (tecla C)&lt;br /&gt;
dentro borramos todas las imagenes del engine, de la 1 a la 4 y un esperar de unos 20 frames, quedando algo asi:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEglKmgrDCBSWNG7TenQdlM3rClDbxgosqYGwq1cooAVMvqw2fAtZa89aF0bcTOXXVzokpsHPaL3iIJ3zc-iLm7FrE6ezPvdahGMOpT839HoeBGViJ30ZmSO7NcJioKotlkAdebukzhi3_g/s1600/2012-04-07_151846.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEglKmgrDCBSWNG7TenQdlM3rClDbxgosqYGwq1cooAVMvqw2fAtZa89aF0bcTOXXVzokpsHPaL3iIJ3zc-iLm7FrE6ezPvdahGMOpT839HoeBGViJ30ZmSO7NcJioKotlkAdebukzhi3_g/s1600/2012-04-07_151846.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
A continuacion creamos una variable que contenga el &lt;b&gt;piso actual&lt;/b&gt;, esta variable debe ser actualizada en la entrada de cada puerta de ascensor, para que ya contenga el piso en que estamos, luego hacemos condicion que compare los valores de las variables del piso, con los valores del piso que elegimos, por ejemplo, si entramos desde el piso 1, el valor de la variable piso actual seria 0, y si seleccionamos que queremos ir al piso 1, el valor de la variable tambien seria de 0, entonces podemos hacer lo siguiente:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhfy7DLBQLy03anY-QqVar0rs5SNO2qDtykulS1rvOscpHQXHWgVUc3z_faGvGQkOMWb7Wl3iwgrIEuIgDhGcptucFwr1q79VMut6Qyw4V3VtBWWwhyphenhyphenJDRvzpZNYYp6j0GI6H7J_vJVxHY/s1600/2012-04-07_152526.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhfy7DLBQLy03anY-QqVar0rs5SNO2qDtykulS1rvOscpHQXHWgVUc3z_faGvGQkOMWb7Wl3iwgrIEuIgDhGcptucFwr1q79VMut6Qyw4V3VtBWWwhyphenhyphenJDRvzpZNYYp6j0GI6H7J_vJVxHY/s1600/2012-04-07_152526.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Aqui verificamos si estamos en el mismo piso, si no estamos en el mismo piso se ejecutara lo que queramos, si tomamos el ejemplo anterior la verificacion seria que &lt;b&gt;si&lt;/b&gt; estamos en el mismo piso, entonces tenemos que simplemente poner la animacion de la apertura de las puertas:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhH0Soh0-0p-ncIa-b3xdCe4adPPUgw26fdMwoICxw0MRsJcodXOlGwBAyzKspal4edgj4O2guwB6rRtUOg8L-qFr8eUDQ5CWq300tIpoWC4meKJRtfxF_6-eBeijg9ur0KUdld52D_1uk/s1600/2012-04-07_152929.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhH0Soh0-0p-ncIa-b3xdCe4adPPUgw26fdMwoICxw0MRsJcodXOlGwBAyzKspal4edgj4O2guwB6rRtUOg8L-qFr8eUDQ5CWq300tIpoWC4meKJRtfxF_6-eBeijg9ur0KUdld52D_1uk/s1600/2012-04-07_152929.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Si fuera el caso contrario , tenemos que hacer que reconozca la cantidad de pisos a recorrer, esto lo haremos con una operacion en donde calcularemos la cantidad de pisos de diferencia, las variables que usaremos seran la del &lt;b&gt;piso actual&lt;/b&gt; y la de &lt;b&gt;piso-opciones&lt;/b&gt;, revisando cual de las dos es mayor, luego a la variable de mayor cantidad le traspasaremos su valor a una variable temporal y haremos una resta con la variable de menor valor, con esto tendremos la cantidad de pisos a recorer (si, es complicado de entender):&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjjixtbn88Rc_Bw7NYP0cujttSRxmGqPk3zlmTI6jT9qXapQyDZE1HYL3RUAjyoGM7Uz3X6DUxkgZxoED7oIX5uESolueFY6vsf-htINrvgERtS1N2q8IyW9km7KfHiaIQ8QrfxqJs4Wpw/s1600/2012-04-07_153846.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjjixtbn88Rc_Bw7NYP0cujttSRxmGqPk3zlmTI6jT9qXapQyDZE1HYL3RUAjyoGM7Uz3X6DUxkgZxoED7oIX5uESolueFY6vsf-htINrvgERtS1N2q8IyW9km7KfHiaIQ8QrfxqJs4Wpw/s1600/2012-04-07_153846.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;br /&gt;
Ahora tenemos que hacer que el ascensor se mueva de piso a piso, y que cuando llegue al piso seleccionado abra las puertas, esto lo haremos co un ciclo y una condicion;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjz9JkBQRxk3ihqaZxslA5XLc-NhvSkXS0dxTRRZroTjzlsEhSf0ZUuliCAN_DDQ360cFg_AyfWAfGEAQRKvlEY5Pik0lEqVQhcOg3rd9rensLr4FK3z9C1Bt8bJ35NGimpaXYCd46lWmo/s1600/2012-04-07_154420.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjz9JkBQRxk3ihqaZxslA5XLc-NhvSkXS0dxTRRZroTjzlsEhSf0ZUuliCAN_DDQ360cFg_AyfWAfGEAQRKvlEY5Pik0lEqVQhcOg3rd9rensLr4FK3z9C1Bt8bJ35NGimpaXYCd46lWmo/s1600/2012-04-07_154420.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Basicamente lo que hicimos aqui fue preguntar si la variable &lt;b&gt;piso temp&lt;/b&gt; era superior a 0, mientras el resultado fuera verdadero, sacudiria la pantalla y le restaria 1 (es por esto que el resultado de la resta debe ser positivo), cuando llegara a 0 la comprobacion seria falsa, entonces abriria la&amp;nbsp; puerta, ahora solo nos queda desactivar el interruptor &lt;b&gt;personaje inmovil&lt;/b&gt;, darle una indicacion al maker de que puede abrir la puerta y desactivar el &lt;b&gt;interruptor local B&lt;/b&gt;:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgudkcZh_OyweEWjOPG2iUfpRX0lmwpWo6W9V3Bcni6CIcWXNyZNfJ1FcJjM6gy1IPwN03PWgh_DASEJEseh3w3JWAcsrDJkqUzdV7w6-207CrZEinFiWNJvXtuGNlLkYden8nK9e138mI/s1600/2012-04-07_154951.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgudkcZh_OyweEWjOPG2iUfpRX0lmwpWo6W9V3Bcni6CIcWXNyZNfJ1FcJjM6gy1IPwN03PWgh_DASEJEseh3w3JWAcsrDJkqUzdV7w6-207CrZEinFiWNJvXtuGNlLkYden8nK9e138mI/s1600/2012-04-07_154951.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Como ven cree el interruptor&amp;nbsp; &lt;b&gt;Ascensor ok&lt;/b&gt; para indicarle al maker mi seleccion del piso, ahora vamos al evento donde tenemos la puerta y le creamos una segunda hoja, en &lt;b&gt;condiciones de aparicion&lt;/b&gt; le indicamos que usaremos el interrupor &lt;b&gt;Ascensor ok&lt;/b&gt;  y en detonante de inicio le ponemos colisionar, seleccionamos el grafico de la puerta abierta y en el interior del evento le ponemos las condiciones que revisen el valor de la variable &lt;b&gt;piso - opciones&lt;/b&gt;, y dependiendo de este, que te transporte al mapa deseado:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjypo5miK40tbQhIcimQP7HGpBbQfjz37AksX8OAlwQRiSOnvza0ZlXlH65hf9pTEXoJiOu9Qm6qmY1PI2ntajUgGpC2U_LTqiC_8eGYTa7OwEHxkgCdsmJgPuKcieJ3v8iar-syDr-rJY/s1600/2012-04-07_155600.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;343&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjypo5miK40tbQhIcimQP7HGpBbQfjz37AksX8OAlwQRiSOnvza0ZlXlH65hf9pTEXoJiOu9Qm6qmY1PI2ntajUgGpC2U_LTqiC_8eGYTa7OwEHxkgCdsmJgPuKcieJ3v8iar-syDr-rJY/s400/2012-04-07_155600.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Con esto ya tenemos listo el engine, testamos y comprobamos que todo vaya bien.&lt;br /&gt;
&lt;br /&gt;
Notas finales: hay un leve retraso entre cuando seleccionamos el piso y cuando podemos mover el pesonaje, eso se arregla modificando los tiempos de espera.&lt;br /&gt;
&lt;br /&gt;
Alternativamente podemos agregar al engine la posibilidad de que se cierren las puertas despues de un tiempo, basta con crear un evento en el mapa con lo siguiente:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiUf66sAjgbiuZfx-Lhe6J9L_U5cwz2OqAetBVgFBxw0BgE1hSjDqi7sb4OK8HQJjp6WQ59dBM41yfRkOazIrkgYpyRB7gFTwCYvLx3EgsW588zX5omG4gJZn3w5cOT1r6ID7rOs90LPiE/s1600/2012-04-07_161743.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;345&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiUf66sAjgbiuZfx-Lhe6J9L_U5cwz2OqAetBVgFBxw0BgE1hSjDqi7sb4OK8HQJjp6WQ59dBM41yfRkOazIrkgYpyRB7gFTwCYvLx3EgsW588zX5omG4gJZn3w5cOT1r6ID7rOs90LPiE/s400/2012-04-07_161743.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
Correcciones:hice unas pruebas y encontre 2 pequeños bug:&lt;br /&gt;
La puerta solo se cierra la primera vez que entro al ascensor: la solucion es desactivar el inerruptor local A del evento que esta al lado de la puerta, lo desactivas junto con los otros interruptores al presionar la tecla C, en la tercera hoja, esto haria que funcione de nuevo, y pones una condicion en la primera hoja, verificando si el interruptor &lt;b&gt;Ascensor ok&lt;/b&gt; esta desactivado:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjEQ5SgONn754UwC-JCSweCXTJe1DJZzw6OlX7v8Ju6-e-n3gzKVC71LlIaxb6U7jpzdEjesyf08Nosiw9c1xhEAzgW93ggPMxFPhymj2-1qGDoJF06zIx1eTXk7N39mcg7vkovl6we0LI/s1600/2012-04-07_163925.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjEQ5SgONn754UwC-JCSweCXTJe1DJZzw6OlX7v8Ju6-e-n3gzKVC71LlIaxb6U7jpzdEjesyf08Nosiw9c1xhEAzgW93ggPMxFPhymj2-1qGDoJF06zIx1eTXk7N39mcg7vkovl6we0LI/s1600/2012-04-07_163925.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg3IclLOpju9SHIvWFhaQpg8dLw01RCAyaEciy_kGRMRDv3FqGpUA81NTXRSaTIceDIVC_hEzXJZAFVU3R74apGhEwKx5cpJ0NqzjxDMcCTa7SWFl9afjLxzPlbhvBM9YQhreC4N_kNEIM/s1600/2012-04-07_163936.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg3IclLOpju9SHIvWFhaQpg8dLw01RCAyaEciy_kGRMRDv3FqGpUA81NTXRSaTIceDIVC_hEzXJZAFVU3R74apGhEwKx5cpJ0NqzjxDMcCTa7SWFl9afjLxzPlbhvBM9YQhreC4N_kNEIM/s1600/2012-04-07_163936.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
El otro bug que encontre es relacionado con el piso seleccionado, este se queda con el valor del piso que seleccionamos la ultima vez, para resetearlo a 0 nos vamos a la segunda hoja del mismo evento y le asignamos el valor 0&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhxYiQgORe_8wO92wq9wxnxve0cOe1av7DqnPk2uq_wXlHUSDE8QR_R42VQZ5vCMQzjDViG3cedpdENR6PxOS9uVUqex1rLPy7H8P8EbyRVry7K85zdnOW5xZskIcrvlz61AZOk7lKobaA/s1600/2012-04-07_164202.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhxYiQgORe_8wO92wq9wxnxve0cOe1av7DqnPk2uq_wXlHUSDE8QR_R42VQZ5vCMQzjDViG3cedpdENR6PxOS9uVUqex1rLPy7H8P8EbyRVry7K85zdnOW5xZskIcrvlz61AZOk7lKobaA/s1600/2012-04-07_164202.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&amp;nbsp;Con esto funciona perfecto&lt;br /&gt;
&lt;br /&gt;
Descargar el &lt;a href=&quot;http://adf.ly/7AuGn&quot;&gt;ejemplo&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://taller-maker.blogspot.com/feeds/7945439147996321802/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://taller-maker.blogspot.com/2012/04/engine-de-ascensor.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8551798844080929407/posts/default/7945439147996321802'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8551798844080929407/posts/default/7945439147996321802'/><link rel='alternate' type='text/html' href='http://taller-maker.blogspot.com/2012/04/engine-de-ascensor.html' title='Engine de Ascensor'/><author><name>tenshi98</name><uri>http://www.blogger.com/profile/06461952114644591440</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgMYLI_10CchcS8kNq5rxFCb-2qgfYgYV8MlGNlr-L_ZsMxcoL6C9ytoDmsLM05VJC6-1jMPVIZtoNxo_fHPevstQM3dgJvyQ8gLq4Dr4bIAGs3R3aaBtaJPz8E1e1How/s220/Albert_Wesker___Resident_Evil_by_megakay.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjBZT-BWCol5mza_Y0l8n1ulZodhDlj3GZHOtaDM9N4lwcb-6MNSMHoMr51NhDvqO92sKY2WroCb8ANO8S4n6iXjCv4T6nahJDLmFdqS8EhxN07AQLK-vG6-kTU0rj2He_aAQkTKc6FYMk/s72-c/2012-04-07_125611.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8551798844080929407.post-5792936477094542323</id><published>2012-04-06T22:48:00.000-07:00</published><updated>2012-04-16T05:00:07.005-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Crear un juego desde 0."/><title type='text'>Crear un action rpg y no morir en el intento 8</title><content type='html'>Hoy comenzamos con la clase para crear armas de fuego, comenzaremos creando las diferentes tipos de municiones a usar:&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;Municion Pistola&lt;/li&gt;
&lt;li&gt;Municion Escopeta&lt;/li&gt;
&lt;li&gt;Municion Rifle francotirador&lt;/li&gt;
&lt;li&gt;Municion Rifle de asalto&lt;/li&gt;
&lt;li&gt;Municion Metralleta&lt;/li&gt;
&lt;/ul&gt;
Las pueden poner en la id que quieran, ahora crearemos un evento comun que se encargara de traspasar las cantidades de las Balas a una variable temporal, para hacer algunas comprobaciones con estas , a este evento lo llamaremos &lt;b&gt;Actualizar balas&lt;/b&gt;:&lt;br /&gt;
&lt;br /&gt;
La agrupacion quedara asi:&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;Arma de fuego 1 y 2 : Municion Pistola&lt;/li&gt;
&lt;li&gt;Arma de fuego 3 y 4 : Municion Escopeta&lt;/li&gt;
&lt;li&gt;Arma de fuego 5 y 6 : Municion Rifle francotirador&lt;/li&gt;
&lt;li&gt;Arma de fuego 7 y 8 : Municion Rifle de asalto&lt;/li&gt;
&lt;li&gt;Arma de fuego 9 y 10 : Municion Metralleta&lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiKanqw3bIsMROhyphenhyphenkN0Mb4IkARy4lReWIAJpO8KIzXwAKzMbBt1DEiBm5cG5LtAOVXJDX7_kcdJk21yBvtfNefsDSiG8VXMGlbsYhYgYHIDl8rwExJc4yjOor4wgz4sk4G7jdJycK2r0fI/s1600/2012-04-07_002604.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiKanqw3bIsMROhyphenhyphenkN0Mb4IkARy4lReWIAJpO8KIzXwAKzMbBt1DEiBm5cG5LtAOVXJDX7_kcdJk21yBvtfNefsDSiG8VXMGlbsYhYgYHIDl8rwExJc4yjOor4wgz4sk4G7jdJycK2r0fI/s400/2012-04-07_002604.png&quot; width=&quot;385&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
Ahora tenemos que crear 10 variables que nos serviran como cartuchos:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjaZbT1Wh3hgCQOXs5LF0PC3ga05aAJm-Lm_gJkgOWyJYA51IjE4EXNAI1g6A4dxeAqAr1u-LWWvn-oPH1AagUZ9quFBMmX3mp9ouMnk5S8FoXrUK9GhCmTSgsPk42_l41lotl84g5JeK0/s1600/2012-04-07_002752.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjaZbT1Wh3hgCQOXs5LF0PC3ga05aAJm-Lm_gJkgOWyJYA51IjE4EXNAI1g6A4dxeAqAr1u-LWWvn-oPH1AagUZ9quFBMmX3mp9ouMnk5S8FoXrUK9GhCmTSgsPk42_l41lotl84g5JeK0/s400/2012-04-07_002752.png&quot; width=&quot;260&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Despues le podran cambiar el nombre a las variables, dandole el nombre correspondiente al arma, ahora volvemos al evento &lt;b&gt;Actualizar balas&lt;/b&gt; y agregamos las variables recien creadas, tambien traspasandola a una variable temporal, ustedes se preguntan el porque de esto, es para el hud que haremos mas adelante, ya que solo tendremos que solicitar los valores a las variables temporales en vez de hacer una busqueda arma por arma, el evento quedaria asi:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9z8Pvyf3Mg9I9UiWU4FjUl_To_JOzp2ej9ezrM9sAwG1XOK3Cq2_EOi77ttG8Y4VBW3U0RN2DEnmVEoQFuCywhLWbSgeN0RGw0zz-KxYB1lPzS89mW3Pwy3fjsNCJHnMxjyfHBqJ2xA8/s1600/2012-04-07_003421.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9z8Pvyf3Mg9I9UiWU4FjUl_To_JOzp2ej9ezrM9sAwG1XOK3Cq2_EOi77ttG8Y4VBW3U0RN2DEnmVEoQFuCywhLWbSgeN0RGw0zz-KxYB1lPzS89mW3Pwy3fjsNCJHnMxjyfHBqJ2xA8/s400/2012-04-07_003421.png&quot; width=&quot;385&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Ahora tendremos que ir a los eventos &lt;b&gt;Direccion Fija&lt;/b&gt; y &lt;b&gt;Guardia&lt;/b&gt; y agregamos las armas de fuego (en la clase anterior vimos para que servia cada evento), tambien en el evento que activa el sistema agregamos las armas y los items recien creados, para poder hacer las pruebas.&lt;br /&gt;
&lt;br /&gt;
Ahora lo siguiente es importante, por cada arma hay que crear un evento de disparo y otro de recarga del arma, comenzaremos detallando el de recarga:&lt;br /&gt;
&lt;br /&gt;
Primero dependiendo de la direccion en que mire, le ponemos la animacion, esta en el ultimo mover evento, tiene que volver a la posicion guardia del arma correspondiente, por ejemplo, si le pones una pistola, al estar en guardia, sera en guardia-pistola; si recarga sera en recarga-pistola, y el ultimo mover evento (cambio de grafico) sera guardia-pistola, no otro, sino quedara mal.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiR1HD9XD_04x4Do8MGVe5WanoDSziiBUwpsbAin1iYDPwwU6whyphenhyphenyAexCLISdbUecRgrZfzeu7gYkxyPOUx7X9i9CtRPIXHYz4xoeWq8Txi0eRHVB5uKgsYO7Dz2DOQl4kIF-GaNcP9Cyc/s1600/2012-04-07_005825.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;150&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiR1HD9XD_04x4Do8MGVe5WanoDSziiBUwpsbAin1iYDPwwU6whyphenhyphenyAexCLISdbUecRgrZfzeu7gYkxyPOUx7X9i9CtRPIXHYz4xoeWq8Txi0eRHVB5uKgsYO7Dz2DOQl4kIF-GaNcP9Cyc/s400/2012-04-07_005825.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Despues en el mismo evento le ponemos un esperar de 16 frames (los esperar entre cada cambio de grafico), despues le ponemos las siguientes condiciones:&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;poner una etiqueta (cualquier valor)&lt;/li&gt;
&lt;li&gt;Comprobar que la municion del cartucho sea inferior al maximo que puede llevar&lt;/li&gt;
&lt;li&gt;Comprobar que los item guardados sean superior a 0&lt;/li&gt;
&lt;li&gt;sumarle 1 a la variable del cartucho&lt;/li&gt;
&lt;li&gt;restar 1 a los items del arma correspondiente&lt;/li&gt;
&lt;li&gt;llamar al evento comun &lt;b&gt;Actualizar balas&lt;/b&gt; &lt;/li&gt;
&lt;li&gt;poner un ir a etiqueta para crear ciclo&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgeoV4HB4CizpI0EkJga9k1QgizNulNN5HYhoZAUHu1NXlvcW36bvl2qwQ6OOBgaau0WHE_2KOc2tASNqZN7rol-je-arsbE7hVIVOq533-hSRFCoQs7q5HSkqlhsC4M_UieqKuPPphe-s/s1600/2012-04-07_011007.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;161&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgeoV4HB4CizpI0EkJga9k1QgizNulNN5HYhoZAUHu1NXlvcW36bvl2qwQ6OOBgaau0WHE_2KOc2tASNqZN7rol-je-arsbE7hVIVOq533-hSRFCoQs7q5HSkqlhsC4M_UieqKuPPphe-s/s400/2012-04-07_011007.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Esto basicamente muestra la animacion de recarga y luego repite el ciclo hasta que el cartucho este lleno, como veran, el cartucho tiene una capacidad de 15 balas.Alternativamente podemos ponerle algunos sonidos de cambio y recarga.&lt;br /&gt;
&lt;br /&gt;
Despues pasamos a hacer el evento comun del disparo revisando lo siguiente:&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;Comprobar que la municion del cartucho sea superior a 0(mediante la variable temporal)&lt;/li&gt;
&lt;li&gt;activar interruptor de ataque_cuerpo (en serio, hay que cambiarle el nombre)&lt;/li&gt;
&lt;li&gt;llamar al evento comun de la bala, para que haga el recorrido&lt;/li&gt;
&lt;li&gt;restarle 1 al cartucho del arma&lt;/li&gt;
&lt;li&gt;actualizar la variable temporal con el valor actual del cartucho&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
Alternativamente se puede agregar una excepcion que llame automaticamente al evento recargar en caso de que el cartucho llegue a 0.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjUKA4yIfNw3ALsazY0JOVj-XVC_4WZIPFSgG7Oa4Csth4qkKaULv461zHpCcwftnfIpqRqvAPJqKaMBRrcT2_BvTGyVNyCUbBgYEW14IgoFlqHzXkM_X4qokP_IAYD4cHkuyqM4_Mw2vM/s1600/2012-04-07_014518.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;275&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjUKA4yIfNw3ALsazY0JOVj-XVC_4WZIPFSgG7Oa4Csth4qkKaULv461zHpCcwftnfIpqRqvAPJqKaMBRrcT2_BvTGyVNyCUbBgYEW14IgoFlqHzXkM_X4qokP_IAYD4cHkuyqM4_Mw2vM/s400/2012-04-07_014518.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Ahora, solo tenemos que agregarlo al evento comun &lt;b&gt;Seleccion arma&lt;/b&gt; para que pueda disparar, quedaria algo asi:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEitswxvvYUJyzvZqAot51PudBT_xLGtYKglCBWWnZbAF4ekw-l5856kIpvzJtunga8wnz3Ppql52Y6q16ZfzXPFxlVjoFL4MKSc-F-Ga5Ap9LgNG7PRN6SAf1Y4w4owTk3DYX_HVUl15TU/s1600/2012-04-07_020020.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;396&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEitswxvvYUJyzvZqAot51PudBT_xLGtYKglCBWWnZbAF4ekw-l5856kIpvzJtunga8wnz3Ppql52Y6q16ZfzXPFxlVjoFL4MKSc-F-Ga5Ap9LgNG7PRN6SAf1Y4w4owTk3DYX_HVUl15TU/s400/2012-04-07_020020.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Ahora tenemos que crear un evento comun para la recarga del arma, sera igual que siempre, dependiendo del arma equipada:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiARUSPWtZH0C5u5LLsNgnC_MVPPXdUhCg1rg23hQC-VcnhyQeMQwm0UdrtVAe6t2j8qKckq83aHK6qjlI8UvPgkqIi-n13vMvgpO3N0ffCkRuAY4fNqDMWE1JC09IIz4xWgtow3vGPqTw/s1600/2012-04-07_020632.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;391&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiARUSPWtZH0C5u5LLsNgnC_MVPPXdUhCg1rg23hQC-VcnhyQeMQwm0UdrtVAe6t2j8qKckq83aHK6qjlI8UvPgkqIi-n13vMvgpO3N0ffCkRuAY4fNqDMWE1JC09IIz4xWgtow3vGPqTw/s400/2012-04-07_020632.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Una vez listo hay que agregarlo a la combinacion de teclas, quedando algo asi:&lt;br /&gt;
&lt;br /&gt;
Armas de fuego&lt;br /&gt;
Z-Guardia&lt;br /&gt;
Z+X-Recarga&lt;br /&gt;
Z+C-Disparo&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg3cvu-7frjrBqsisWNtO7uW20756tBB0QocPqT2tQCiFlrFank_rDo2Xq9HPxVaInxE7a_sVtK14VPSfB0juDbSvbdmy1ZShmeUle6jXiGeIrFgsfb3IoAyeN_4ypPblZGtAghYXIVONM/s1600/2012-04-07_020907.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg3cvu-7frjrBqsisWNtO7uW20756tBB0QocPqT2tQCiFlrFank_rDo2Xq9HPxVaInxE7a_sVtK14VPSfB0juDbSvbdmy1ZShmeUle6jXiGeIrFgsfb3IoAyeN_4ypPblZGtAghYXIVONM/s400/2012-04-07_020907.png&quot; width=&quot;392&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Ahora testeamos el proyecto.&lt;br /&gt;
&lt;br /&gt;
Con eso ya terminamos la clase, podemos ocupar el engine de disparo del enemigo que mostre en el capitulo anterior para aplicarlo a esto.&lt;br /&gt;
&lt;br /&gt;
Despues de testear encontramos el error de que cuando el personaje recarga municion, los enemigos se quedan quietos, esto pasa porque el interruptor ataque_cuerpo se queda activado, solucion, desactivarlo en la excepcion del disparo, antes del sonido &quot;sin municion&quot; de todos los eventos comunes de disparo.&lt;br /&gt;
&lt;br /&gt;
Descarga del &lt;a href=&quot;http://adf.ly/79cNR&quot;&gt;ejemplo&lt;/a&gt;.</content><link rel='replies' type='application/atom+xml' href='http://taller-maker.blogspot.com/feeds/5792936477094542323/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://taller-maker.blogspot.com/2012/04/crear-un-action-rpg-y-no-morir-en-el_7185.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8551798844080929407/posts/default/5792936477094542323'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8551798844080929407/posts/default/5792936477094542323'/><link rel='alternate' type='text/html' href='http://taller-maker.blogspot.com/2012/04/crear-un-action-rpg-y-no-morir-en-el_7185.html' title='Crear un action rpg y no morir en el intento 8'/><author><name>tenshi98</name><uri>http://www.blogger.com/profile/06461952114644591440</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgMYLI_10CchcS8kNq5rxFCb-2qgfYgYV8MlGNlr-L_ZsMxcoL6C9ytoDmsLM05VJC6-1jMPVIZtoNxo_fHPevstQM3dgJvyQ8gLq4Dr4bIAGs3R3aaBtaJPz8E1e1How/s220/Albert_Wesker___Resident_Evil_by_megakay.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiKanqw3bIsMROhyphenhyphenkN0Mb4IkARy4lReWIAJpO8KIzXwAKzMbBt1DEiBm5cG5LtAOVXJDX7_kcdJk21yBvtfNefsDSiG8VXMGlbsYhYgYHIDl8rwExJc4yjOor4wgz4sk4G7jdJycK2r0fI/s72-c/2012-04-07_002604.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8551798844080929407.post-8980573946600474866</id><published>2012-04-06T19:10:00.001-07:00</published><updated>2012-04-16T05:00:39.874-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Crear un juego desde 0."/><title type='text'>Crear un action rpg y no morir en el intento 7</title><content type='html'>Comenzaremos primero con el cambio de gráfico de la flecha, porque asumo que se dieron cuenta que al usar un arma cuerpo a cuerpo, la flecha igual aparecía, ahora condicionaremos su aparición de acuerdo al arma que tenga equipada el personaje:&lt;br /&gt;
&lt;br /&gt;
Primero creamos un nuevo evento común con el nombre &lt;b&gt;Gráfico Flecha&lt;/b&gt; , luego le ponemos condiciones y efectos de las armas equipadas que queremos que cambie el grafico, estas condiciones deben estar anidadas, quedaría algo así:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjWthwHCQCwimBo1NT8i_K_4fAhTUVvKtsy7E7Fi6K-yFUaxEop3Bsf5oWuN9wD2qjwGLtC2nmxSw-Dou5TrJjA5dz65EWYGepovg73ncB6CDF2FpbIiubov9TivmsvHHhZ4p-keecV_4U/s1600/2012-04-06_174718.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;326&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjWthwHCQCwimBo1NT8i_K_4fAhTUVvKtsy7E7Fi6K-yFUaxEop3Bsf5oWuN9wD2qjwGLtC2nmxSw-Dou5TrJjA5dz65EWYGepovg73ncB6CDF2FpbIiubov9TivmsvHHhZ4p-keecV_4U/s400/2012-04-06_174718.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Ahora tenemos que poner que cambie el gráfico dependiendo de donde mire el personaje dentro de cada condición, exactamente como lo hicimos con el evento de la flecha que tenemos en el mapa, ustedes se preguntaran para que hacer esto, pues de esta manera podemos asignarle distintos tráficos a la flecha en el caso de que se quiera usar mas de un tipo de flecha. esto quedaría así:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhKb8xG5z_JaDTdbRfYJ9zhdPDPRQIGUMJOyddku30a4vQNP9b4-NbbVHEA2UZe6UcvGrX58n8BxIC75YEEBDu4J1QeqLP4Ei3HK1NH2rrTqqo7N0plSev1xPZXhMuKQ8PjJseXLg0XKik/s1600/2012-04-06_175227.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;328&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhKb8xG5z_JaDTdbRfYJ9zhdPDPRQIGUMJOyddku30a4vQNP9b4-NbbVHEA2UZe6UcvGrX58n8BxIC75YEEBDu4J1QeqLP4Ei3HK1NH2rrTqqo7N0plSev1xPZXhMuKQ8PjJseXLg0XKik/s400/2012-04-06_175227.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Bien, con esto podríamos decir que ya esta listo, pero podemos anidar las condiciones, de esta manera nos ahorramos una condición, descargando un poco el trabajo del maker, esto quedaría así:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhT9gpE3USWmT4IzVDOdP8v4CwqRrhEytlJd1BIUXkCcToWAopBaqkadlxOEqSLUxq_M0-BMiqXDvMlFK-NTDX6KZVtUjA8TsDH1WzJu-lqLyLOuu3sRa0ZJYIlWpYYMNV3SgzdQdORuHo/s1600/2012-04-06_175440.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;328&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhT9gpE3USWmT4IzVDOdP8v4CwqRrhEytlJd1BIUXkCcToWAopBaqkadlxOEqSLUxq_M0-BMiqXDvMlFK-NTDX6KZVtUjA8TsDH1WzJu-lqLyLOuu3sRa0ZJYIlWpYYMNV3SgzdQdORuHo/s400/2012-04-06_175440.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Ustedes se preguntan que acabo de hacer, les explico de manera simple:&lt;br /&gt;
&lt;br /&gt;
Si el personaje mira hacia abajo : xxxx&lt;br /&gt;
Si el personaje mira hacia la izquierda : xxxx&lt;br /&gt;
Si el personaje mira hacia la derecha : xxxx&lt;br /&gt;
Si el personaje no mira en ninguna de las direcciones anteriores : xxxx&lt;br /&gt;
&lt;br /&gt;
Simple, verdad, ahora hay que editar el evento flecha, agregandole un llamar evento común haciendo referencia al evento recién creado, y quitar el grafico que tiene puesto, ya que este cambiaria automaticamente al llamar al evento común, esto quedaría así:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_UCfCf-5-Tb71TrD8Xkj5Hb2QuJvbrrn6dScAFwriFi6m896XG7ia7Atn6CletYIHnwJJrUUwE2VJShZMTAq-cIDZ_z_kSOeBgqnTUjYyAglL7pqtE_A-qm8Jm6ySXcVvpQa2Tm4vtSI/s1600/2012-04-06_180013.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;342&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_UCfCf-5-Tb71TrD8Xkj5Hb2QuJvbrrn6dScAFwriFi6m896XG7ia7Atn6CletYIHnwJJrUUwE2VJShZMTAq-cIDZ_z_kSOeBgqnTUjYyAglL7pqtE_A-qm8Jm6ySXcVvpQa2Tm4vtSI/s400/2012-04-06_180013.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Bien, con esto estamos listos, el engine lo testeamos y probamos que no tenga ningún bug.&lt;br /&gt;
&lt;br /&gt;
Ahora seguimos con la opción de que el enemigo también nos pueda disparar, primero seleccionamos el evento enemigo, vamos en la segunda pestaña y luego presionamos nueva hoja, para que nos cree una nueva en la posición 3 (no es necesario, solo es para mantener el orden), dentro de esta seleccionamos el gráfico y en detonante de inicio le ponemos proceso paralelo.&lt;br /&gt;
&lt;br /&gt;
Bien con esto listo ahora debemos hacer la IA para que el enemigo:&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;Siga al personaje.&lt;/li&gt;
&lt;li&gt;Una vez dentro del área de tiro se mueva hacia los lados para centrar el objetivo.&lt;/li&gt;
&lt;li&gt;Disparar una vez que el personaje este dentro del rango de disparo.&lt;/li&gt;
&lt;/ul&gt;
Primero vamos a movimiento autónomo, y le ponemos ruta, en crear ruta le ponemos unas 8 o 9 veces que siga al personaje, ya con esto ya logramos que siga al personaje, después creamos una condición, la cual revisara si el interruptor local B esta apagado, después vamos a la primera pestaña y copiamos las variables que calcula que el personaje esta dentro del área, ya que esta vez le vamos a dar una utilidad distinta, y la pegamos en la excepción de la condición que pusimos en la hoja 3, luego modificamos el &lt;b&gt;interruptor local A On&lt;/b&gt; a &lt;b&gt;Interruptor Local B On&lt;/b&gt;, después antes de activar el interruptor insertamos un mover evento, en donde especificamos que este evento (el enemigo) debe esperar 20 frames. Ustedes se preguntan que hemos hecho con con esto, simple, el evento te seguirá siempre, pero cuando entres a su rango siempre se detendrá, si lo hiciste correctamente te quedaría algo así:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjizNfCzM0Pjkl9akiRmN1R9vQbJqB_6zlVT1j8UGdMxRPDci_v0enas8hRc8IH8n_1kGuk3HNf1i3ZND7WBdJ8qJQHO5mOvMykwYUIihFd0fxmZNrUTTvle0-hQgbYjM0bTSVz3Hz8vBA/s1600/2012-04-06_220943.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;232&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjizNfCzM0Pjkl9akiRmN1R9vQbJqB_6zlVT1j8UGdMxRPDci_v0enas8hRc8IH8n_1kGuk3HNf1i3ZND7WBdJ8qJQHO5mOvMykwYUIihFd0fxmZNrUTTvle0-hQgbYjM0bTSVz3Hz8vBA/s400/2012-04-06_220943.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEilC8VPMSdrwEqmaYrLg0kWK3IOObHEMAYLE0Ofpqpjwxz2B7genHaD6sHomRfoQbC9cPhWAaOQMYXwBsJs32YvTdDb7EeRqNoY0Q_jsI4CqwMm_s8591ZKKivOradJV6RwZaMWB_LnQ_A/s1600/2012-04-06_183435.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;br /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;br /&gt;
Ahora testeamos que el evento nos siga y se detenga a la distancia&amp;nbsp; de 6 cuadros.&lt;br /&gt;
Ya con esto continuamos, ahora tenemos que hacer que el enemigo ubique al personaje y se mueva de acuerdo a la posición que tenga, para esto, en la excepción de &lt;b&gt;condiciones y efectos : interruptor local B = off, &lt;/b&gt;luego ponemos un &lt;b&gt;condiciones y efectos : este evento mirando dirección &lt;/b&gt;y creamos una variable en donde guardaremos la posición en que el evento esta mirando&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;Abajo=1&lt;/li&gt;
&lt;li&gt;Izquierda=2&lt;/li&gt;
&lt;li&gt;Derecha=3&lt;/li&gt;
&lt;li&gt;Arriba=4 &lt;/li&gt;
&lt;/ul&gt;
Luego volvemos a guardar la posición x-y del enemigo para asegurarnos que tenemos los datos correctos al hacer los cálculos.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh9HBGCuIJc6jY416PUTvma2CjZcGrbWWtYqRP82E1_xEOg4gyY7KsBtqqePVWRLVvRwzxHBvEuTwCM0aVhy6SghXuFwkiEDwPRL-AtwnWq-Gulk3MCk_1E2YHqkapf13sjmJQLNdSjvUA/s1600/2012-04-06_223257.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;20&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh9HBGCuIJc6jY416PUTvma2CjZcGrbWWtYqRP82E1_xEOg4gyY7KsBtqqePVWRLVvRwzxHBvEuTwCM0aVhy6SghXuFwkiEDwPRL-AtwnWq-Gulk3MCk_1E2YHqkapf13sjmJQLNdSjvUA/s400/2012-04-06_223257.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
después hacemos una comparacion de las posiciones, por ejemplo si mira hacia abajo, hacemos una comparacion solo del eje x(para que se mueva a los lados, para centrar el objetivo), hacemos el calculo si el valor es mayor o menor, dependiendo de eso es si se mueve a la derecha o a la izquierda:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgTVl8OAZ0MmjV5aIlH0QvAt0ZAkA3FXPUpx3HBihstVeMTOpD3-iVJufXeFQImh9hU3tAvMxUDhlx0vApThrRRr25gvKWl9FTUUBA24We3zYow0jyJHTDJCz4ixE3CJalYj7-GSCgYQjI/s1600/2012-04-06_223348.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;112&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgTVl8OAZ0MmjV5aIlH0QvAt0ZAkA3FXPUpx3HBihstVeMTOpD3-iVJufXeFQImh9hU3tAvMxUDhlx0vApThrRRr25gvKWl9FTUUBA24We3zYow0jyJHTDJCz4ixE3CJalYj7-GSCgYQjI/s400/2012-04-06_223348.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&amp;nbsp;Luego en la excepción de ambas comparaciones,creamos dos variables y traspasamos la posición x-y del enemigo a la bala:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh7NBY6BxSMELbME-m6xu744iauNiwnDG-uPTtGPBFfY6nqCYRm79DgIVNGJ2jRoaxND3fA-iLUfJ4kRx5BTEEdzjo4BbY-grDZnPxuIVF6e4h9JR47X6gzLEtOzy4MCVoH_zA1GOfCLCQ/s1600/2012-04-06_223435.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;30&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh7NBY6BxSMELbME-m6xu744iauNiwnDG-uPTtGPBFfY6nqCYRm79DgIVNGJ2jRoaxND3fA-iLUfJ4kRx5BTEEdzjo4BbY-grDZnPxuIVF6e4h9JR47X6gzLEtOzy4MCVoH_zA1GOfCLCQ/s400/2012-04-06_223435.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
Luego creamos y activamos el interruptor del enemigo disparando:&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgLboiv1TGEQjvylq9PcFpWQ8_m41OlHjNplpJMc1mZu3qezGcfXAUYHL8PSryqP4zi00TcQWrqMkZCylVGwJOAGJdDFQByxexJTEe8OSBGovnEdetTT-VsDSqp0l9m8JTdzacS6Ujfhks/s1600/2012-04-06_223801.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;21&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgLboiv1TGEQjvylq9PcFpWQ8_m41OlHjNplpJMc1mZu3qezGcfXAUYHL8PSryqP4zi00TcQWrqMkZCylVGwJOAGJdDFQByxexJTEe8OSBGovnEdetTT-VsDSqp0l9m8JTdzacS6Ujfhks/s400/2012-04-06_223801.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
Después vamos a los eventos comunes y creamos el evento &lt;b&gt;Bala enemigo 1&lt;/b&gt;,y dentro hacemos la comparacion de dependiendo de hacia donde mire el enemigo (la variable de dirección), le sumamos y restamos valores, con 1 frame de tiempo de espera (como con la bala del héroe)dependiendo de hacia donde mire, y desactivamos el interruptor en_atack:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh2UFy9vahw09dDSBcaxkYi-7eLDKHLDZALwJCf7xQBUJfQBEwO_mlwLqLyGjuTqnh4idB_LXlM3HI_dKaoyhetNHLQtLX8STcIcU_s3B8KObSLeL5hMjOgtaVRWMwDoghmvUcK4wzpyDA/s1600/2012-04-06_224213.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh2UFy9vahw09dDSBcaxkYi-7eLDKHLDZALwJCf7xQBUJfQBEwO_mlwLqLyGjuTqnh4idB_LXlM3HI_dKaoyhetNHLQtLX8STcIcU_s3B8KObSLeL5hMjOgtaVRWMwDoghmvUcK4wzpyDA/s400/2012-04-06_224213.png&quot; width=&quot;267&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Luego volvemos al evento enemigo y después de activar el interruptor &lt;b&gt;en atack&lt;/b&gt; ponemos un &lt;b&gt;llamar evento común:&lt;/b&gt;&lt;b&gt;Bala enemigo 1&lt;/b&gt;,luego un esperar 10 frame (no queremos que nos acribillen) y desactivamos el interruptor local B.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgac0Sm0qNJmNd2IjZVMMouD6GBFAkqL36i2C-qELCMcRYccXJADevspO9Gk85isrwjX4y2dtCGpEHxWu65NoVFzS_O_ZHtEAq0P311MWgqf-i73_OdOq7J0BfwygZIZcHls_2_2x2lAxg/s1600/2012-04-06_224657.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;58&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgac0Sm0qNJmNd2IjZVMMouD6GBFAkqL36i2C-qELCMcRYccXJADevspO9Gk85isrwjX4y2dtCGpEHxWu65NoVFzS_O_ZHtEAq0P311MWgqf-i73_OdOq7J0BfwygZIZcHls_2_2x2lAxg/s400/2012-04-06_224657.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
El evento completo debería quedar así:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh_Ah9-x_6bUOzyj4CqPto12Snuj6t6g1nIgEs3W28NJ_yOBJjrTUa6kaH9OgJv87ATIDuXWHUlzn4YPFbuw9YoBQqL5za0-1eWriKgUi1fDEhjmwuf99EbHmqQyc3I9yOWobIkuOLVnFc/s1600/2012-04-06_224841.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;291&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh_Ah9-x_6bUOzyj4CqPto12Snuj6t6g1nIgEs3W28NJ_yOBJjrTUa6kaH9OgJv87ATIDuXWHUlzn4YPFbuw9YoBQqL5za0-1eWriKgUi1fDEhjmwuf99EbHmqQyc3I9yOWobIkuOLVnFc/s400/2012-04-06_224841.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Ahora creamos otro evento común, que se active con el interruptor &lt;b&gt;En_atack&lt;/b&gt;, en proceso en paralelo, que revise si las variables x-y del personaje son iguales a las x-y de la bala del enemigo, se le asigna la animación , el daño al personaje y se desactiva el interruptor &lt;b&gt;En_atack&lt;/b&gt;:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgH29LElCBGZm9GWKJQaHN5uB6Exd4ZNby5v8e09xhRTLLv1hwJa_jpLjGpxCbBoVjqoUCPpRaVJOzWxPQkRr5cYlRnoY_edqUfLoRlYMhw5AxF17eksynxXYGLeJMeAmJ1nlAJQ5KWQYI/s1600/2012-04-06_225207.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;195&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgH29LElCBGZm9GWKJQaHN5uB6Exd4ZNby5v8e09xhRTLLv1hwJa_jpLjGpxCbBoVjqoUCPpRaVJOzWxPQkRr5cYlRnoY_edqUfLoRlYMhw5AxF17eksynxXYGLeJMeAmJ1nlAJQ5KWQYI/s400/2012-04-06_225207.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Ya con esto, debería funcionar, alternativamente se le puede poner el gráfico de una bala, como lo hicimos con el personaje, les dejo las imagenes del evento que hice:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg2FLtZMAFcymrz5U0BZTsbjCnxOIJbvb6B-lqYeRfpibJrNqssG21EKaburuyd2PXG-JAk1lqzDcUu7IWGCfFD43mDpfBR-LtuSplQLkmvX5ChVt1EFrzLU_vYqfJ5_Dycn4JK0N7yy1A/s1600/2012-04-06_225426.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;341&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg2FLtZMAFcymrz5U0BZTsbjCnxOIJbvb6B-lqYeRfpibJrNqssG21EKaburuyd2PXG-JAk1lqzDcUu7IWGCfFD43mDpfBR-LtuSplQLkmvX5ChVt1EFrzLU_vYqfJ5_Dycn4JK0N7yy1A/s400/2012-04-06_225426.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhkOSXNZrPU73sTXdoamAUF1wNRYvOYeN4qS9FA-ssdC57eC6AebK_la-X0DdO92pdiZBbDDG9AEau6cKUeCVVLAID9htS-5bOqYtyp32mYs3qIJaKhoKOdn5w0iQd7bAxg7N3LFJjvTEY/s1600/2012-04-06_225436.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;338&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhkOSXNZrPU73sTXdoamAUF1wNRYvOYeN4qS9FA-ssdC57eC6AebK_la-X0DdO92pdiZBbDDG9AEau6cKUeCVVLAID9htS-5bOqYtyp32mYs3qIJaKhoKOdn5w0iQd7bAxg7N3LFJjvTEY/s400/2012-04-06_225436.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Con esto doy por terminada la unidad, ya saben, cualquier bug o mejora me la pueden decir.&lt;br /&gt;
&lt;br /&gt;
Descarga del &lt;a href=&quot;http://adf.ly/79Gjj&quot;&gt;ejemplo&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://taller-maker.blogspot.com/feeds/8980573946600474866/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://taller-maker.blogspot.com/2012/04/crear-un-action-rpg-y-no-morir-en-el_7045.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8551798844080929407/posts/default/8980573946600474866'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8551798844080929407/posts/default/8980573946600474866'/><link rel='alternate' type='text/html' href='http://taller-maker.blogspot.com/2012/04/crear-un-action-rpg-y-no-morir-en-el_7045.html' title='Crear un action rpg y no morir en el intento 7'/><author><name>tenshi98</name><uri>http://www.blogger.com/profile/06461952114644591440</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgMYLI_10CchcS8kNq5rxFCb-2qgfYgYV8MlGNlr-L_ZsMxcoL6C9ytoDmsLM05VJC6-1jMPVIZtoNxo_fHPevstQM3dgJvyQ8gLq4Dr4bIAGs3R3aaBtaJPz8E1e1How/s220/Albert_Wesker___Resident_Evil_by_megakay.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjWthwHCQCwimBo1NT8i_K_4fAhTUVvKtsy7E7Fi6K-yFUaxEop3Bsf5oWuN9wD2qjwGLtC2nmxSw-Dou5TrJjA5dz65EWYGepovg73ncB6CDF2FpbIiubov9TivmsvHHhZ4p-keecV_4U/s72-c/2012-04-06_174718.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8551798844080929407.post-5768853479314147476</id><published>2012-04-06T13:19:00.000-07:00</published><updated>2012-04-16T05:00:58.208-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Crear un juego desde 0."/><title type='text'>Crear un action rpg y no morir en el intento 6</title><content type='html'>Ahora crearemos el sistema de armas a distancia:&lt;br /&gt;
&lt;br /&gt;
Primero comenzaremos cambiando la utilizacion de las teclas, de ahora en adelante usaremos combinaciones, quedando algo asi&lt;br /&gt;
&lt;br /&gt;
Espada:&lt;br /&gt;
Z+C - ataque &lt;br /&gt;
&lt;br /&gt;
Armas a distancia:&lt;br /&gt;
Z+C - ataque&lt;br /&gt;
&lt;br /&gt;
Quedando algo asi:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjWGfGI_UdrVqvIq1aWk5JamBDUST7-NSk6babz7Nf7Y7LODsCMyYgk3xjb1lWUbdUhhw3K2r8d5s6ZN1rgmGpQn-q-AYvx2L9z7vXPDJ5QdUMCQOG0wp3N3C1MfArrkYhtsbhabQ4Wsjo/s1600/2012-04-06_144951.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;331&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjWGfGI_UdrVqvIq1aWk5JamBDUST7-NSk6babz7Nf7Y7LODsCMyYgk3xjb1lWUbdUhhw3K2r8d5s6ZN1rgmGpQn-q-AYvx2L9z7vXPDJ5QdUMCQOG0wp3N3C1MfArrkYhtsbhabQ4Wsjo/s400/2012-04-06_144951.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Ahora, alternativamente podemos crear un evento comun que bloquee la direccion en que mira el personaje, esto es para tener mas comodidad al disparar, este evento quedaria asi:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgAwL021S97sbNWhpgGZtTLhwkLNGb8h2xwdWqRJtNkmyp2QOWtK1X3a-GMjbUw7DIVUEhw89bDbcpJqR9iSErswQwKgo4RWddRuQhgmA4HUJMBcch4ginkxKz8gGknQPNMLm0uW8u7Fu8/s1600/2012-04-06_150821.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;328&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgAwL021S97sbNWhpgGZtTLhwkLNGb8h2xwdWqRJtNkmyp2QOWtK1X3a-GMjbUw7DIVUEhw89bDbcpJqR9iSErswQwKgo4RWddRuQhgmA4HUJMBcch4ginkxKz8gGknQPNMLm0uW8u7Fu8/s400/2012-04-06_150821.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
Tambien alternativamente, pueden poner un evento que cambie el grafico del personaje, al presionar la tecla Z, para que muestre que se pone en guardia con el arma o algo asi, el evento quedaria de esta manera:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEib2O43KPuUX-on4d54lZlKQMrAXVh7i4ZU6pce3EgTBwbpR9jdGCMmJbka_Kuy8BuIEfBqA_eH62GfnnZusOiQMuJGj2tqMNi7rGDP5MK8eh3bxkUkNs32IZHdw5h9Xqc1kPWUEvKPUXY/s1600/2012-04-06_151607.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;331&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEib2O43KPuUX-on4d54lZlKQMrAXVh7i4ZU6pce3EgTBwbpR9jdGCMmJbka_Kuy8BuIEfBqA_eH62GfnnZusOiQMuJGj2tqMNi7rGDP5MK8eh3bxkUkNs32IZHdw5h9Xqc1kPWUEvKPUXY/s400/2012-04-06_151607.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Ahora tenemos que agregar estos dos eventos en &lt;b&gt;Sistem&lt;/b&gt;a para que funcionen. ambos eventos deben ir en el interior de la &lt;b&gt;condicion y efectos : pulsar tecla Z &lt;/b&gt;para que funcionen correctamente, quedando algo asi:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg3-UopCyi9Xo_Z8Le0xfKaraXptHBXQGpW9G__Yxcstp5m9FTZM1qcCoRii6h1QT7NWbpRvYnmymqTZb5DxhGqlULC5teJWYjzit4Cz2A6ZZY_26mVzW2vv_R9nNnBRD2CzmPw5q3P83Q/s1600/2012-04-06_152108.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;328&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg3-UopCyi9Xo_Z8Le0xfKaraXptHBXQGpW9G__Yxcstp5m9FTZM1qcCoRii6h1QT7NWbpRvYnmymqTZb5DxhGqlULC5teJWYjzit4Cz2A6ZZY_26mVzW2vv_R9nNnBRD2CzmPw5q3P83Q/s400/2012-04-06_152108.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Ahora testeamos, primero con las armas cuerpo a cuerpo, veremos que no pasa nada, pero al equipar las armas a distancia, cambia el grafico al presionar la tecla Z, y aparte se queda mirando en una direccion, pero al dejar de presionarlo, tenemos el problema que se queda mirando solo en una direccion y con el grafico cambiado sin volver a la normalidad, esto pasa porque no hemos agregado la excepcion de presionar la tecla Z, alli pondremos que vuelva a la normalidad:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjeMfNsUB0c5IS_6E9pl-CWu3s3oGVb3noGwlEljrJ8g1dcEIrgPQK0ZO45DDURJCyZ12tBFv5Y3rMtRTka7U6rBZ5Rj1wqmdhd9d8WoQizQ7sc_3wgb15d34ZG3c67s6DO7LAlU-nnCbk/s1600/2012-04-06_152722.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjeMfNsUB0c5IS_6E9pl-CWu3s3oGVb3noGwlEljrJ8g1dcEIrgPQK0ZO45DDURJCyZ12tBFv5Y3rMtRTka7U6rBZ5Rj1wqmdhd9d8WoQizQ7sc_3wgb15d34ZG3c67s6DO7LAlU-nnCbk/s400/2012-04-06_152722.png&quot; width=&quot;392&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Testeamos y comprobamos que el engine funciona correctamente, ahora, una recomendacion mia, si van a ocupar ambas opciones, fucionenlas en un solo evento comun, ya que ambas hacen la misma comprobacion del arma equipada, si lo hacen solo tendrian que llamar a un solo evento comun, sin sobrecargar al maker, quedaria algo asi:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiOY5NKi-ddwjgDMtJJqXZ-ZBgy_4OQBtuCxrP8nUaKRM0cx7jMLEc6zB7vCAFyw2pP67qJiHLaIB2VgLCUp6SPkNjSSJTEkhoyW3mJxks-H-kb6YXQ7xJKn-ZsxrR6wp6eDCa4v0neKVM/s1600/2012-04-06_153143.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;108&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiOY5NKi-ddwjgDMtJJqXZ-ZBgy_4OQBtuCxrP8nUaKRM0cx7jMLEc6zB7vCAFyw2pP67qJiHLaIB2VgLCUp6SPkNjSSJTEkhoyW3mJxks-H-kb6YXQ7xJKn-ZsxrR6wp6eDCa4v0neKVM/s400/2012-04-06_153143.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Ya tenemos el cambio de grafico, ahora tenemos que crear el evento bala, para esto reocuparemos algunas cosas que ya teniamos hechas, tambien hay que tener en cuenta la distancia de ataque de cada arma a distancia, para saber cuantos eventos bala hay que crear, para esto tomaremos el evento&lt;b&gt; Calculo area de ataque&lt;/b&gt; (evento comun 4) y lo copiaremos 4 veces, ocupando los espacios 8 al 11 de los eventos comunes, ahora asignaremos la funcionalidad de cada uno:&lt;br /&gt;
&lt;br /&gt;
Evento 8 : servira para el ataque cuerpo a cuerpo, lo dejaremos tal cual como esta&lt;br /&gt;
Evento 9 : servira para las armas cuerpo a cuerpo con un rango mas amplio de ataque, por ejemplo la lanza, o alguna otra cosa que ustedes hayan creado, este tendra un rango de 2, por lo tanto, hay que sumarle 1 dos veces a las variables de ataque.&lt;br /&gt;
Evento 10 : le pondremos 5 cuadros de rango&lt;br /&gt;
Evento 11 : le pondremos 8 cuadros de rango&lt;br /&gt;
&lt;br /&gt;
Cambiaremos la distancia del rango de ataque de la siguiente manera:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhi14xLx8kRyDPt6DxW251oNE6v2pH6NNzBFsoKXazAE2RIg6X5k3E-Yb6328Oxn6oY-Y1UHDqvelNKnC96qndXa7RTKF6yKkup20-Xsn5Lce8uoSlikkqmCaseGsROnrAjWMKcRA0BEA4/s1600/2012-04-06_154337.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;370&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhi14xLx8kRyDPt6DxW251oNE6v2pH6NNzBFsoKXazAE2RIg6X5k3E-Yb6328Oxn6oY-Y1UHDqvelNKnC96qndXa7RTKF6yKkup20-Xsn5Lce8uoSlikkqmCaseGsROnrAjWMKcRA0BEA4/s400/2012-04-06_154337.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Si se dan cuenta de lo que hice, le sume de uno en uno los valores del avance, con un lapso de 1 frame entre cada operacion para que el maker no lo sume los valores de golpe, esto se hace por cada direccion que este mirando el personaje, ahora, si quieren le pueden cambiar los nmbres a los eventos para poder identificarlos, yo los deje de la siguiente manera:&lt;br /&gt;
&lt;br /&gt;
Evento 8 : Bala x 1&lt;br /&gt;
Evento 9 : Bala x 2&lt;br /&gt;
Evento 10 : Bala x 5&lt;br /&gt;
Evento 11 : Bala x 8 &lt;br /&gt;
&lt;br /&gt;
Ahora tenemos que ir nuevamente a &lt;b&gt;Sistema&lt;/b&gt; y eliminar la llamada al evento &lt;b&gt;Calculo area ataque&lt;/b&gt;, ya que cada arma tendra su propio rango de ataque, tambien eliminaremos el evento  &lt;b&gt;Calculo area ataque&lt;/b&gt;, debido a que no lo ocuparemos mas.Despues de eliminarlo tenemos que ir al evento &lt;b&gt;Seleccion arma&lt;/b&gt; para agregar los eventos bala a cada arma de acuerdo a su rango de ataque.&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;Para la espada quedaria algo asi:&lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhED8PQWrZWZhpt54JGcbC4Ew6V-al_LmFvCKDvU8cYTm-hZrsv8E4bDkxkaYHqgETlIX756CxQzY27KU42KolovbPSRUWyL56YfdczWiboKpBnG6BC8fPD2BLGDbn6tkeQ2wAJzEN5sNU/s1600/2012-04-06_155610.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;71&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhED8PQWrZWZhpt54JGcbC4Ew6V-al_LmFvCKDvU8cYTm-hZrsv8E4bDkxkaYHqgETlIX756CxQzY27KU42KolovbPSRUWyL56YfdczWiboKpBnG6BC8fPD2BLGDbn6tkeQ2wAJzEN5sNU/s400/2012-04-06_155610.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;Para la lanza quedaria algo asi:&lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEisumPt-f0aGqiDmwTij_IGr8XjdMMn3n1hpCG7iyR9mH4TyrUJ89MOvkKcHvLz5IhBaCnEj_2j4p8AGyHL7kdaC9qwSxG_XBkMpbh1fnx-3kUtTFtQlZw0vnHwmKp-fGowEtUY8aOdwtc/s1600/2012-04-06_155715.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;75&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEisumPt-f0aGqiDmwTij_IGr8XjdMMn3n1hpCG7iyR9mH4TyrUJ89MOvkKcHvLz5IhBaCnEj_2j4p8AGyHL7kdaC9qwSxG_XBkMpbh1fnx-3kUtTFtQlZw0vnHwmKp-fGowEtUY8aOdwtc/s400/2012-04-06_155715.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;Y para las armas a distancia quedaria algo asi (seleccionando si el rango es de 5 u 8)&lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjWqsOdf8g8zDcv88h076AmG7-_88iRCYKHNzPYXSzs0ZTF0HLvL_B4m5smz4rnl1VkWT4kmGhhbzrM30yd5ZgvdBs_kpb4HtPi9x-wOEj5WacUMl7VQ0LtV57rtigVpMnsUOKimqiMztU/s1600/2012-04-06_155839.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;50&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjWqsOdf8g8zDcv88h076AmG7-_88iRCYKHNzPYXSzs0ZTF0HLvL_B4m5smz4rnl1VkWT4kmGhhbzrM30yd5ZgvdBs_kpb4HtPi9x-wOEj5WacUMl7VQ0LtV57rtigVpMnsUOKimqiMztU/s400/2012-04-06_155839.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Ahora, al testear vemos que no funciona, que algo anda mal, lo que pasa es que el evento enemigo esta desactivando automaticamente el interruptor &lt;b&gt;ataque cuerpo&lt;/b&gt;, lo que tenemos que hacer (aparte de cambiarle el nombre...) es quitarlo del evento enemigo, una captura para que se den cuenta de lo que digo:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEimN2C9mQbDwL4-FShzsFCOBx-6YzcfPdD83p_t-pHby1pixG2JZL00IfB1dnJ4qWEF2iMDK8n2muqfnYnIxPcXgBlpANmTMxtOJ3hdh6_RPjVAYrXKYzQkURp-rnpGIXwYvabI6FcKkK8/s1600/2012-04-06_160339.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;343&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEimN2C9mQbDwL4-FShzsFCOBx-6YzcfPdD83p_t-pHby1pixG2JZL00IfB1dnJ4qWEF2iMDK8n2muqfnYnIxPcXgBlpANmTMxtOJ3hdh6_RPjVAYrXKYzQkURp-rnpGIXwYvabI6FcKkK8/s400/2012-04-06_160339.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Lo que esta seleccionado es lo que tenemos que eliminar el evento enemigo, esta desactivacion tenemos que ponerla en el interior de los eventos bala, para que estas, al terminar su recorrido, se desactiven solas, quedaria algo asi:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi3uJiUPfFS8alxI5jvWPMTWFEWpIgXya1mnFpXO7wnuAn-bVxKW3Zwj-JjHbDFFWkIHKgUcTgEKHjmgyW59TfS4lvyemZkfH96uy-l1cwun98-QaWT2bO-3mZwUaJXzYzoU0hy8-skguk/s1600/2012-04-06_160626.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;331&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi3uJiUPfFS8alxI5jvWPMTWFEWpIgXya1mnFpXO7wnuAn-bVxKW3Zwj-JjHbDFFWkIHKgUcTgEKHjmgyW59TfS4lvyemZkfH96uy-l1cwun98-QaWT2bO-3mZwUaJXzYzoU0hy8-skguk/s400/2012-04-06_160626.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Ahora volvemos a testear y vemos que el engine funciona perfectamente, ahora veremos como poner el grafico de la flecha en el mapa. &lt;br /&gt;
&lt;br /&gt;
Primero crean un evento en el mapa, que tenga 2 hojas, en la primera hoja en detonante inicio ponen proceso paralelo, y dentro ponen &lt;b&gt;elegir posicion de evento&lt;/b&gt; : este evento(variable que guarda posicion x-y del personaje), quedando algo asi:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi2F9ES1Qr__3B40BgM9wnskElrjv_33BgE_bZMRr1CzmwieA3aCtYW9134FXpurOekfqIgiydUO5R2TCmF966klhu4TJ4aIrQSIA97oFMxrqmSyx7CB7X8XlqaAVMbh0tELRZfpIqJBSI/s1600/2012-04-06_165743.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;343&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi2F9ES1Qr__3B40BgM9wnskElrjv_33BgE_bZMRr1CzmwieA3aCtYW9134FXpurOekfqIgiydUO5R2TCmF966klhu4TJ4aIrQSIA97oFMxrqmSyx7CB7X8XlqaAVMbh0tELRZfpIqJBSI/s400/2012-04-06_165743.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
En la segunda en condiciones de aparacion, seleccionan el interruptor &lt;b&gt;ataque_cuerpo&lt;/b&gt;, en el grafico seleccionan la flecha, y en detonante inicio ponen proceso paralelo, luego dentro ponen &lt;b&gt;elegir posicion de evento&lt;/b&gt; : este evento(variable que guarda posicion x-y la bala) y tambien que dependiendo hacia donde mire el personaje, cambie el grafico de la flecha (hacia donde mira la flecha), quedando algo asi :&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhqR_g4NIOrj2IMImfpdZ_slpmz_WXYxRE1QOjO5MVZLtdvSGyOnS3ZLZCd5XP419YfBxXLpygAlygf06qtjX3m65NA596QMccPwCPVysHgLKQ49bhfmoX2YBWBntkQyIISIddQAEB2syI/s1600/2012-04-06_170020.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;342&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhqR_g4NIOrj2IMImfpdZ_slpmz_WXYxRE1QOjO5MVZLtdvSGyOnS3ZLZCd5XP419YfBxXLpygAlygf06qtjX3m65NA596QMccPwCPVysHgLKQ49bhfmoX2YBWBntkQyIISIddQAEB2syI/s400/2012-04-06_170020.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Ya con esto tienen su flecha lista.&lt;br /&gt;
&lt;br /&gt;
Como ven, durante el curso abarcamos:&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;crear sistema&lt;/li&gt;
&lt;li&gt;implementar mas de un arma&lt;/li&gt;
&lt;li&gt;establecer la distancia de ataque por separado para cada arma&lt;/li&gt;
&lt;/ul&gt;
Proximo curso:&lt;br /&gt;
&lt;br /&gt;
Los enemigos tambien disparan con armas a distancia.&lt;br /&gt;
Hacer que el grafico de la flecha cambie de acuerdo al arma equipada.&lt;br /&gt;
&lt;br /&gt;
Descarga del &lt;a href=&quot;http://adf.ly/78myA&quot;&gt;ejemplo&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://taller-maker.blogspot.com/feeds/5768853479314147476/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://taller-maker.blogspot.com/2012/04/crear-un-action-rpg-y-no-morir-en-el_06.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8551798844080929407/posts/default/5768853479314147476'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8551798844080929407/posts/default/5768853479314147476'/><link rel='alternate' type='text/html' href='http://taller-maker.blogspot.com/2012/04/crear-un-action-rpg-y-no-morir-en-el_06.html' title='Crear un action rpg y no morir en el intento 6'/><author><name>tenshi98</name><uri>http://www.blogger.com/profile/06461952114644591440</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgMYLI_10CchcS8kNq5rxFCb-2qgfYgYV8MlGNlr-L_ZsMxcoL6C9ytoDmsLM05VJC6-1jMPVIZtoNxo_fHPevstQM3dgJvyQ8gLq4Dr4bIAGs3R3aaBtaJPz8E1e1How/s220/Albert_Wesker___Resident_Evil_by_megakay.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjWGfGI_UdrVqvIq1aWk5JamBDUST7-NSk6babz7Nf7Y7LODsCMyYgk3xjb1lWUbdUhhw3K2r8d5s6ZN1rgmGpQn-q-AYvx2L9z7vXPDJ5QdUMCQOG0wp3N3C1MfArrkYhtsbhabQ4Wsjo/s72-c/2012-04-06_144951.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8551798844080929407.post-2598587277083424442</id><published>2012-04-05T16:28:00.001-07:00</published><updated>2012-04-16T05:01:13.731-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Crear un juego desde 0."/><title type='text'>Crear un action rpg y no morir en el intento - intermedio</title><content type='html'>Bueno, hago esto por varias cosas que me quedaron fuera en los tutoriales anteriores:&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;color: blue;&quot;&gt;
&lt;b&gt;1.-Anidar condiciones:&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;
-Primero:elimine todas las armas que venian por defecto, hice nuevas y las agrupe de la siguiente manera:&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;10 armas cuerpo a cuerpo&lt;/li&gt;
&lt;li&gt;10 armas a distancia&lt;/li&gt;
&lt;li&gt;10 armas de fuego&lt;/li&gt;
&lt;/ul&gt;
las cuales las subdividi en el tipo de elemento (no es obligatorio, ustedes pueden poner lo que quieran) y el rango de ataque (que es lo que veremos en la proxima unidad); ahora, voy a enseñar un concepto que se llama anidar condiciones, y es para optimizar el tiempo de respuesta del engine, ya que con 30 armas va a producir algo de lag, ahora pasare a explicarle lo que significa anidar:&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
condicion 1&lt;br /&gt;
&amp;nbsp;&amp;nbsp; respuesta 1&lt;br /&gt;
fin condicion 1 &lt;br /&gt;
&lt;br /&gt;
condicion 2&lt;br /&gt;
&amp;nbsp;&amp;nbsp; respuesta 2&lt;br /&gt;
fin condicion 2 &lt;br /&gt;
&lt;br /&gt;
condicion 3&lt;br /&gt;
&amp;nbsp;&amp;nbsp; respuesta 3&lt;br /&gt;
fin condicion 3 &lt;br /&gt;
&lt;br /&gt;
condicion 4&lt;br /&gt;
&amp;nbsp;&amp;nbsp; respuesta 4&lt;br /&gt;
fin condicion 4 &lt;br /&gt;
imaginen que hacen un proceso, y que necesitan poner la condicion necesaria para obtener un resultado, el maker por defecto leera desde arriba hacia abajo todas las condiciones, no importando si encontro el resultado al principio o al final, osea, si necesitaban el resultado 1, se va a demorar lo mismo que si necesitaban el resultado 4, ahora les mostrare el ejercicio anterior pero anidado:&lt;br /&gt;
&lt;br /&gt;
condicion 1&lt;br /&gt;
&amp;nbsp;&amp;nbsp; respuesta 1&lt;br /&gt;
&amp;nbsp; &amp;nbsp; excepcion &lt;br /&gt;
condicion 2&lt;br /&gt;
&amp;nbsp;&amp;nbsp; respuesta 2&lt;br /&gt;
&amp;nbsp; &amp;nbsp; excepcion&amp;nbsp; &lt;br /&gt;
condicion 3&lt;br /&gt;
&amp;nbsp;&amp;nbsp; respuesta 3&lt;br /&gt;
&amp;nbsp; &amp;nbsp; excepcion&amp;nbsp; &lt;br /&gt;
condicion 4&lt;br /&gt;
&amp;nbsp;&amp;nbsp; respuesta 4&lt;br /&gt;
&amp;nbsp; &amp;nbsp; excepcion&amp;nbsp; &lt;br /&gt;
etc&lt;br /&gt;
&lt;br /&gt;
fin condicion 4 
&lt;br /&gt;
fin condicion 3 &lt;br /&gt;
&lt;br /&gt;
fin condicion 2 &lt;br /&gt;
fin condicion 1 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Ahora al correr de nuevo el proceso, al encontrar el resultado que queremos, saldra de las condiciones automaticamente, esto quiere decir que correra el proceso solo hasta obtener el resultado.&lt;br /&gt;
&lt;br /&gt;
ahora hay que modificar el eneto comun &lt;b&gt;Animacion ataque&lt;/b&gt; y en &lt;b&gt;Seleccion arma&lt;/b&gt; con este nuevo metodo (en el ejemplo ya esta listo)&lt;br /&gt;
&lt;br /&gt;
Ejemplo:&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiExEft_tq4xhiodlR8C8TeZbjNe9BZPtBmMTMUvYSeQH8-XSTKqz7YuPiMvYTAMUo76el9fARBlpjHFKYJcp5eto9fGORvVii88ydbN-qUD2TnR19dlq7DePsv2NoRas_eyV9M8l9IyIQ/s1600/2012-04-04_223702.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiExEft_tq4xhiodlR8C8TeZbjNe9BZPtBmMTMUvYSeQH8-XSTKqz7YuPiMvYTAMUo76el9fARBlpjHFKYJcp5eto9fGORvVii88ydbN-qUD2TnR19dlq7DePsv2NoRas_eyV9M8l9IyIQ/s400/2012-04-04_223702.png&quot; width=&quot;348&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;color: blue;&quot;&gt;
&lt;b&gt;2.-Explicacion de rango:&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;
En el capitulo 5 casi no explique lo que se estaba haciendo, solo los mas avanzados en el maker lo entendieron, ahora les explicare de manera simple lo que estaba haciendo:&lt;br /&gt;
&lt;br /&gt;
Anteriormente vieron &lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjziLLtot_-6Q8I-zftLf6LaZPwND0kCh1V98v1isUhJ7xjqHkUMiE9DvpN4q5qmPRcOriSA1_udewGyx-MyzCHVB1LRfZEgk6jW_yx5rIHgRlpRYwOT8dqEQimN0TseA9wI8-l9iARVfk/s1600/a1.png&quot;&gt;esta imagen&lt;/a&gt;, pero esto no significa nada para ustedes, lo que hice fue crear 4 variables, las llamaremos variables 1,2,3 y 4, estas guardan inicialmente la posicion x-y del personaje, luego se le suman y restan valores respectivamente para crear un area alrededor del evento, supongamos:&lt;br /&gt;
1 y 2 son para guardar posicion x&lt;br /&gt;
3 y 4 son para guardar posicion y&lt;br /&gt;
A 1 y 3 le sumo 2 &lt;br /&gt;
A 2 y 4 le resto 2&lt;br /&gt;
y las 4 parten desde la posicion del evento quedaria un area asi:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiHv8wnAv48cKrY9kBmiH3kCSXA4dADCjAoZQAzl5F3JFLM84i_vsTP2LMb60mtHonrbpnpNIfdubf2nRaRhBUqU_zJ6W0ZfRKSv9t4Oe06x5bcAdLD6uu5oTOJnB4CTITzJMAEHrzXgM8/s1600/2012-04-04_222232.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiHv8wnAv48cKrY9kBmiH3kCSXA4dADCjAoZQAzl5F3JFLM84i_vsTP2LMb60mtHonrbpnpNIfdubf2nRaRhBUqU_zJ6W0ZfRKSv9t4Oe06x5bcAdLD6uu5oTOJnB4CTITzJMAEHrzXgM8/s1600/2012-04-04_222232.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;Ahora, despues de unos comentarios de Wecoc y Lampard, tuve la idea de en vez de ocupar 4 variables nuevas, ocupar las variables x-y propias del evento enemigo para hacer el calculo del area, quedando el evento asi:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhxmzdvW59ltto5_gMJ5Fzj4_x_lYllufvk9Jh2ttxzDK3R028c6KpGxEWzWgGW61N5jvhzjv9XhTm0AnIUoDKtZs2FSsZDKdm5QQl4Y4nC6x7F-4mwkRkMbkrU-11PDnhx25vyanW9mFo/s1600/2012-04-04_224154.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhxmzdvW59ltto5_gMJ5Fzj4_x_lYllufvk9Jh2ttxzDK3R028c6KpGxEWzWgGW61N5jvhzjv9XhTm0AnIUoDKtZs2FSsZDKdm5QQl4Y4nC6x7F-4mwkRkMbkrU-11PDnhx25vyanW9mFo/s400/2012-04-04_224154.png&quot; width=&quot;336&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
Hace exactamente lo mismo que el evento anterior (el de las 4 variables) y reutilizo 2 variables ya utilizadas, ya con esto me ahorro 100 variables que tendria que haber ocupado para los 25 enemigos por mapa que tengo planeado para el juego..&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;color: blue;&quot;&gt;
&lt;b&gt;3.-Cambio de variables donde se guardan los parametros del enemigo&lt;/b&gt;&lt;b&gt;:&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;
Con el fin de poder poner 25 enemigos por mapa, cambiare la posicion de las variables, originalmente los datos de los enemigos se guadaban hacia abajo, ahora se guardaran hacia al lado, si no me entienden les dejo unas capturas:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiPlW4rirv4XuImA51obp204Jq8QIXAUYtPBjAHX1N_k7J3o7LBdzGycF3uFZIM-kkqPL1eY-YYa-Dhg6SdygALv-RqxIuFV9iwOHcu4b26mvKosuPJ-ev_J11BCdZe9T-vB_QJJo6beVc/s1600/2012-04-04_224702.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;316&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiPlW4rirv4XuImA51obp204Jq8QIXAUYtPBjAHX1N_k7J3o7LBdzGycF3uFZIM-kkqPL1eY-YYa-Dhg6SdygALv-RqxIuFV9iwOHcu4b26mvKosuPJ-ev_J11BCdZe9T-vB_QJJo6beVc/s400/2012-04-04_224702.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;Y esas son todas las cosas que al parecer me quedaron fuera, cualquier cosa, la afinaremos durante la proxima unidad.&lt;br /&gt;
&lt;br /&gt;
Descarga del &lt;a href=&quot;http://adf.ly/76Sbu&quot;&gt;ejemplo&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://taller-maker.blogspot.com/feeds/2598587277083424442/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://taller-maker.blogspot.com/2012/04/crear-un-action-rpg-y-no-morir-en-el.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8551798844080929407/posts/default/2598587277083424442'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8551798844080929407/posts/default/2598587277083424442'/><link rel='alternate' type='text/html' href='http://taller-maker.blogspot.com/2012/04/crear-un-action-rpg-y-no-morir-en-el.html' title='Crear un action rpg y no morir en el intento - intermedio'/><author><name>tenshi98</name><uri>http://www.blogger.com/profile/06461952114644591440</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgMYLI_10CchcS8kNq5rxFCb-2qgfYgYV8MlGNlr-L_ZsMxcoL6C9ytoDmsLM05VJC6-1jMPVIZtoNxo_fHPevstQM3dgJvyQ8gLq4Dr4bIAGs3R3aaBtaJPz8E1e1How/s220/Albert_Wesker___Resident_Evil_by_megakay.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiExEft_tq4xhiodlR8C8TeZbjNe9BZPtBmMTMUvYSeQH8-XSTKqz7YuPiMvYTAMUo76el9fARBlpjHFKYJcp5eto9fGORvVii88ydbN-qUD2TnR19dlq7DePsv2NoRas_eyV9M8l9IyIQ/s72-c/2012-04-04_223702.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8551798844080929407.post-1564959046519465325</id><published>2012-04-05T05:38:00.000-07:00</published><updated>2012-04-05T05:38:17.554-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Tutoriales"/><title type='text'>Tutorial de salto</title><content type='html'>En este tutorial voy a explicar como hacer un engine de Salto, es algo muy sencillo, sin embargo hay personas que no saben hacerlo o porque apenas están empezando con el maker, o porque no lo han intentado, solo se necesita un poco de conocimiento básico, manejo de “condiciones y efectos” y manejo de eventos comunes…&lt;br /&gt;&lt;br /&gt;Bueno, empezando con el tutorial, primero debes ir a la base de datos, y abrir la pestaña “eventos comunes”, crear allí un evento llamado “salto”, aunque puedes llamarlo como quieras, pero yo en este tutorial lo llamaré “Salto”, luego, en la opción que dice “iniciador”, poner “proceso paralelo“&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhGI_jXFT46iSolVz_jABxThQKhRre2rwUzDlvZbADyiqRk-IRsFqz2_EHOGFHklU1tRPvprqLtvzr73I65_JdkOufaLm5b0ov-x-YjPWUcOnZR7ZseXEecyQ5ntUmVX6fCJNsgqrC3kb4/s1600/2012-04-05_092036.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;135&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhGI_jXFT46iSolVz_jABxThQKhRre2rwUzDlvZbADyiqRk-IRsFqz2_EHOGFHklU1tRPvprqLtvzr73I65_JdkOufaLm5b0ov-x-YjPWUcOnZR7ZseXEecyQ5ntUmVX6fCJNsgqrC3kb4/s400/2012-04-05_092036.png&quot; width=&quot;400&quot; /&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&amp;nbsp;Una vez hecho esto, poner un interruptor de condición llamado “saltar”, aunque igual puedes llamarlo como quieras:&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh59wSjlcn1to9j2C3CHxr_6D4gIA-4P_bSqKIjnmTadRXYwOX42CIapydnbJ30INB6Mgdul_1FBrFT7amD_9OJpCYp5Szqgg6MmQPIPMOU0ff5Yhf_J_fhPXHXRTuf_V28viC9eHbo1oo/s1600/2012-04-05_092212.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;86&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh59wSjlcn1to9j2C3CHxr_6D4gIA-4P_bSqKIjnmTadRXYwOX42CIapydnbJ30INB6Mgdul_1FBrFT7amD_9OJpCYp5Szqgg6MmQPIPMOU0ff5Yhf_J_fhPXHXRTuf_V28viC9eHbo1oo/s400/2012-04-05_092212.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&amp;nbsp;Ahora comencemos con el evento, no es nada del otro mundo, de hecho, es un evento muy sencillo, primero creas operación de “condiciones y efectos”, con la excepción activada, ir a la pestaña 4, activar la opción “tecla” y elegir la tecla “D”:&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjqaJ9XJjKH49HgVXJNsYNtS2Di_MJqCwI_-ENSaRxYLm_pdFwztVg0sp0XADdjIXgrBAcbK0FbYyHTwWUJ0pbeTyaTYYPujETAdqvFGnjbz-EnnpoJoNUVqOfrMFPA3BN3X7F3k9V61zk/s1600/2012-04-05_092313.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;371&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjqaJ9XJjKH49HgVXJNsYNtS2Di_MJqCwI_-ENSaRxYLm_pdFwztVg0sp0XADdjIXgrBAcbK0FbYyHTwWUJ0pbeTyaTYYPujETAdqvFGnjbz-EnnpoJoNUVqOfrMFPA3BN3X7F3k9V61zk/s400/2012-04-05_092313.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&amp;nbsp;Esto crea una condición que dice que cuando está presionada la tecla “D”, pasará algo, y la excepción está para que no pase nada cuando la tecla “D” no está presionada:&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgdtXyV1zLYalhnVdsj9b96bf-sfT_yHeBM1Z2AvtSf3yPZ06vwuT8d9GHN_E9nmOC4-TtcRPpv7HVhT7EfMvUGm7VSwbrMQAgYWt5oFZFnoob6dCpq828zRt-ev6sEA-_eQ7KQqbKiTps/s1600/2012-04-05_092414.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;133&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgdtXyV1zLYalhnVdsj9b96bf-sfT_yHeBM1Z2AvtSf3yPZ06vwuT8d9GHN_E9nmOC4-TtcRPpv7HVhT7EfMvUGm7VSwbrMQAgYWt5oFZFnoob6dCpq828zRt-ev6sEA-_eQ7KQqbKiTps/s400/2012-04-05_092414.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Ahora debes crear otra condición dentro de ésta con la excepción activada, ir de nuevo a la pestaña 4, activar otra vez la opción “tecla”, pero esta vez elegir la tecla “abajo”, dentro de ésta última condición crear un comando “mover evento”, que afecte al “personaje” elegir la acción “saltar”, y aumentar 3 veces la coordenada Y, y debes elegir la opción “ignorar si no se puede”:&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjYJleU6qKG5F0iMhFMaGRoAsgEY5saqoBqc7fNEab57y7WmO57p5mnuuYKhak2y1surLC_OPv4ZWsXgOhbDHTqRVCGZMmhJ5-mbRF6mOZYIWl7gAANjPv3C_oq0zHdCbsJM6WANiY3Z6o/s1600/2012-04-05_092527.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;283&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjYJleU6qKG5F0iMhFMaGRoAsgEY5saqoBqc7fNEab57y7WmO57p5mnuuYKhak2y1surLC_OPv4ZWsXgOhbDHTqRVCGZMmhJ5-mbRF6mOZYIWl7gAANjPv3C_oq0zHdCbsJM6WANiY3Z6o/s400/2012-04-05_092527.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Por el momento el evento tiene que ir quedando así:&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjqA4EXuBRYKohsBtgLLHXmUbM6amrYKXG9POeAXffpy8pFC4z_Q0dBBTG-SXiro-azFcONBFuf3OiT5I78rNnE-bdbiQdfzv8qeyHxtPypAPyz2-ZHEqBhiUyVinOhXy7xp7veuB-5akk/s1600/2012-04-05_092630.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;163&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjqA4EXuBRYKohsBtgLLHXmUbM6amrYKXG9POeAXffpy8pFC4z_Q0dBBTG-SXiro-azFcONBFuf3OiT5I78rNnE-bdbiQdfzv8qeyHxtPypAPyz2-ZHEqBhiUyVinOhXy7xp7veuB-5akk/s400/2012-04-05_092630.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&amp;nbsp;Ahora hay que crear otra condición dentro de la EXCEPCIÓN de la última condición, ir a la pestaña 4, activar la opción “tecla” y elegir la tecla “Arriba”(no olvides dejar todas las condiciones con la excepción activada), dentro de ésta condición crear otro comando “mover evento” igual que el anterior, que afecte al personaje, eligiendo la acción “saltar”, pero esta vez restando 3 en la coordenada Y(no olvides activar “ignorar si no se puede” en estos comandos de “mover evento”), ahora el evento va quedando así:&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZ7rBGumqoAoUnlnDg7yDAr3I9LMe_5lhlFn3C07A7VgwlrGTiEAFpz5DJzt-Xn1MUR9EkNYqoGAtBPgyfaQnIjTv0hGDepaMDEifYXazY02fJzpEqAaJ3-sYzPaQV47Q9GYnG3Ed2g_8/s1600/2012-04-05_092728.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;217&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZ7rBGumqoAoUnlnDg7yDAr3I9LMe_5lhlFn3C07A7VgwlrGTiEAFpz5DJzt-Xn1MUR9EkNYqoGAtBPgyfaQnIjTv0hGDepaMDEifYXazY02fJzpEqAaJ3-sYzPaQV47Q9GYnG3Ed2g_8/s400/2012-04-05_092728.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&amp;nbsp;Tranquilo, ya falta poco, solo hay que terminar todas las direcciones….ahora crea otra condición dentro de la EXCEPCIÓN de la última condición, ve a la pestaña 4, activa la opción “tecla” y elige la tecla “Derecha”, ahora dentro de esta condición crea otro comando “mover evento”, igual que los anteriores, pero esta vez sumando 3 en la coordenada X, y el evento debe verse algo así:&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgY2jCErALKU1aVf0PALfq5k1qNMYJy27C37ubAibwN3CveZxHc5-ZQokbYZDOyDX-reyOSIgBqhDUdwHvNrXfbfmSTYYibwWhY23vTAiJSb3kMhzx0izbVOSUNxZdEjDyPGMQYXCqHKSM/s1600/2012-04-05_092825.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;268&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgY2jCErALKU1aVf0PALfq5k1qNMYJy27C37ubAibwN3CveZxHc5-ZQokbYZDOyDX-reyOSIgBqhDUdwHvNrXfbfmSTYYibwWhY23vTAiJSb3kMhzx0izbVOSUNxZdEjDyPGMQYXCqHKSM/s400/2012-04-05_092825.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&amp;nbsp;Solo falta la última dirección, crea otra condición dentro de la EXCEPCIÓN de la última condición, ve a la pestaña 4, activa la opción “tecla” y elige la tecla “Izquierda”(siempre con la excepción activada), ahora otro comando “mover evento” dentro de ésta condición, igual que los anteriores, pero esta vez restando 3 en la coordenada X, y ahora, dentro de la EXCEPCIÓN de la última condición, crear otro comando “mover evento”, igual que los anteriores, pero esta vez, dejando las dos coordenadas en “0”, y ahora el evento debe quedar así:&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj48p9cAmSWZCREfI646mBTNd-auUlGhPPtShsuUfnuVaECCAJfvaK_o5wwBAOF7x-3YkcRuuG9LaNVrfXaKE3BlQbeuNCtxVQJDQPH-6jYQ1LO8S2tXSgBjpeHiGSC8DRM_e_YOBcG1i8/s1600/2012-04-05_092921.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;327&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj48p9cAmSWZCREfI646mBTNd-auUlGhPPtShsuUfnuVaECCAJfvaK_o5wwBAOF7x-3YkcRuuG9LaNVrfXaKE3BlQbeuNCtxVQJDQPH-6jYQ1LO8S2tXSgBjpeHiGSC8DRM_e_YOBcG1i8/s400/2012-04-05_092921.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&amp;nbsp;Sólo falta el toque final, crea un comando “esperar” y coloca 10 “frames” dentro de la condición de la tecla “D”, fuera de todas las condiciones de las teclas direccionales, así:&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjII1H07Mok5u1tTx7wvVGD_oOi7Wa-I935Txb93loa0in-AO58H_uMPoxkhDPXyh3GCS99dXGijFZu5pPTcCKIvTY0TR5aXRBl9g2LeCVfcOevHgj3MNhKQSfifVKVi_5cCZyqNVcXLzM/s1600/2012-04-05_093013.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;327&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjII1H07Mok5u1tTx7wvVGD_oOi7Wa-I935Txb93loa0in-AO58H_uMPoxkhDPXyh3GCS99dXGijFZu5pPTcCKIvTY0TR5aXRBl9g2LeCVfcOevHgj3MNhKQSfifVKVi_5cCZyqNVcXLzM/s400/2012-04-05_093013.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Esto evita que cuando presiones la tecla “D”, el personaje no salte 2 veces&lt;br /&gt;&lt;br /&gt;Este es todo el evento, ya tienes creado el engine de salto, solo debes activar el interruptor “Saltar” en el juego para poder saltar cuando presiones la tecla “D”, y cuando desees que el personaje no pueda saltar en algún momento del juego, ya sea porque está hablando o por alguna otra razón, sólo debes desactivar el interruptor “saltar” y volver a activarlo cuando desees que el personaje pueda saltar de nuevo .&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&amp;nbsp;&lt;/div&gt;
&lt;br /&gt;
&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;w:WordDocument&gt;
  &lt;w:View&gt;Normal&lt;/w:View&gt;
  &lt;w:Zoom&gt;0&lt;/w:Zoom&gt;
  &lt;w:HyphenationZone&gt;21&lt;/w:HyphenationZone&gt;
  &lt;w:PunctuationKerning/&gt;
  &lt;w:ValidateAgainstSchemas/&gt;
  &lt;w:SaveIfXMLInvalid&gt;false&lt;/w:SaveIfXMLInvalid&gt;
  &lt;w:IgnoreMixedContent&gt;false&lt;/w:IgnoreMixedContent&gt;
  &lt;w:AlwaysShowPlaceholderText&gt;false&lt;/w:AlwaysShowPlaceholderText&gt;
  &lt;w:Compatibility&gt;
   &lt;w:BreakWrappedTables/&gt;
   &lt;w:SnapToGridInCell/&gt;
   &lt;w:WrapTextWithPunct/&gt;
   &lt;w:UseAsianBreakRules/&gt;
   &lt;w:DontGrowAutofit/&gt;
  &lt;/w:Compatibility&gt;
  &lt;w:BrowserLevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&gt;
 &lt;/w:WordDocument&gt;
&lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;w:LatentStyles DefLockedState=&quot;false&quot; LatentStyleCount=&quot;156&quot;&gt;
 &lt;/w:LatentStyles&gt;
&lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 10]&gt;
&lt;style&gt;
 /* Style Definitions */
 table.MsoNormalTable
 {mso-style-name:&quot;Tabla normal&quot;;
 mso-tstyle-rowband-size:0;
 mso-tstyle-colband-size:0;
 mso-style-noshow:yes;
 mso-style-parent:&quot;&quot;;
 mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
 mso-para-margin:0cm;
 mso-para-margin-bottom:.0001pt;
 mso-pagination:widow-orphan;
 font-size:10.0pt;
 font-family:&quot;Times New Roman&quot;;
 mso-ansi-language:#0400;
 mso-fareast-language:#0400;
 mso-bidi-language:#0400;}
&lt;/style&gt;
&lt;![endif]--&gt;

&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; margin-left: -45.0pt; margin-right: -60.8pt; margin-top: 0cm;&quot;&gt;
&lt;span style=&quot;font-size: 14pt;&quot;&gt;En&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm -60.8pt 0.0001pt -45pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm -60.8pt 0.0001pt -45pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm -60.8pt 0.0001pt -45pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm -60.8pt 0.0001pt -45pt;&quot;&gt;
&lt;span style=&quot;font-size: 14pt;&quot;&gt;&amp;nbsp;ggg&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://taller-maker.blogspot.com/feeds/1564959046519465325/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://taller-maker.blogspot.com/2012/04/tutorial-de-salto.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8551798844080929407/posts/default/1564959046519465325'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8551798844080929407/posts/default/1564959046519465325'/><link rel='alternate' type='text/html' href='http://taller-maker.blogspot.com/2012/04/tutorial-de-salto.html' title='Tutorial de salto'/><author><name>tenshi98</name><uri>http://www.blogger.com/profile/06461952114644591440</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgMYLI_10CchcS8kNq5rxFCb-2qgfYgYV8MlGNlr-L_ZsMxcoL6C9ytoDmsLM05VJC6-1jMPVIZtoNxo_fHPevstQM3dgJvyQ8gLq4Dr4bIAGs3R3aaBtaJPz8E1e1How/s220/Albert_Wesker___Resident_Evil_by_megakay.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhGI_jXFT46iSolVz_jABxThQKhRre2rwUzDlvZbADyiqRk-IRsFqz2_EHOGFHklU1tRPvprqLtvzr73I65_JdkOufaLm5b0ov-x-YjPWUcOnZR7ZseXEecyQ5ntUmVX6fCJNsgqrC3kb4/s72-c/2012-04-05_092036.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8551798844080929407.post-8616406454052899245</id><published>2012-04-04T07:56:00.000-07:00</published><updated>2012-04-04T07:56:38.660-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Tutoriales"/><title type='text'>Alias</title><content type='html'>&lt;br /&gt;
&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;padding-bottom: 4px; width: 40%;&quot; valign=&quot;top&quot;&gt;&lt;b&gt;Tutorial:&lt;/b&gt;
&lt;/td&gt;
&lt;td style=&quot;padding-bottom: 4px; width: 60%;&quot;&gt;Alias &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;padding-bottom: 4px; width: 40%;&quot;&gt;&lt;b&gt;Date&amp;nbsp;&amp;nbsp; Listed:&lt;/b&gt;
&lt;/td&gt;
&lt;td style=&quot;padding-bottom: 4px; width: 60%;&quot;&gt;&amp;nbsp;2008-06-08 &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;padding-bottom: 4px; width: 40%;&quot;&gt;&lt;b&gt;Author:&amp;nbsp;&lt;/b&gt;
&lt;/td&gt;
&lt;td style=&quot;padding-bottom: 4px; width: 60%;&quot;&gt;&lt;a href=&quot;http://www.rpgrevolution.com/member-9524.html&quot;&gt;puppet04&amp;nbsp;&lt;/a&gt;&lt;/td&gt;&lt;td style=&quot;padding-bottom: 4px; width: 60%;&quot;&gt;&lt;br /&gt;&lt;/td&gt;&lt;td style=&quot;padding-bottom: 4px; width: 60%;&quot;&gt;&lt;br /&gt;&lt;/td&gt;&lt;td style=&quot;padding-bottom: 4px; width: 60%;&quot;&gt;&lt;br /&gt;&lt;/td&gt;&lt;td style=&quot;padding-bottom: 4px; width: 60%;&quot;&gt;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&amp;nbsp;Traductor :Tenshi98&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;b&gt;&lt;span class=&quot;hps alt-edited&quot;&gt;Qué es&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;el alias&lt;/span&gt;?&lt;/b&gt;&lt;br /&gt; &lt;span class=&quot;hps alt-edited&quot;&gt;Es un objeto que se&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;crea como un&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;pseudonomb&lt;/span&gt;&lt;span class=&quot;hps&quot;&gt;re del método&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;(al menos&lt;/span&gt;&lt;span class=&quot;hps&quot;&gt; lo que yo&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;puedo entender)&lt;/span&gt;. &lt;span class=&quot;hps&quot;&gt;Mediante el uso de&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;método &lt;/span&gt;&lt;span class=&quot;hps&quot;&gt;alias, se&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;puede reducir&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;el número de&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;líneas del&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;código que se escribe&lt;/span&gt;, ya que no &lt;span class=&quot;hps&quot;&gt;es necesario escribir&lt;/span&gt;&lt;span class=&quot;hps&quot;&gt;&lt;/span&gt; &lt;span class=&quot;hps alt-edited&quot;&gt;nuevamente&lt;/span&gt; el &lt;span class=&quot;hps&quot;&gt;método completo&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;para agregar&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;algunas&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt; &lt;span class=&quot;hps&quot;&gt;nuevas&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt; variables&lt;/span&gt;&lt;span class=&quot;hps&quot;&gt;&lt;/span&gt;, &lt;/span&gt;&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;constantes, &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;etc.Pero&lt;/span&gt;  no se puede &lt;span class=&quot;hps&quot;&gt;usar alias con constantes&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;(variables,&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;clases y módulos&lt;/span&gt;), variables locales &lt;span class=&quot;hps&quot;&gt;y&lt;/span&gt;&amp;nbsp; &lt;span class=&quot;hps&quot;&gt;variables generales.Tu puedes ocupar alias solo en un metodo existente&lt;/span&gt;&lt;span class=&quot;hps&quot;&gt;.&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Por lo general&lt;/span&gt;, las personas &lt;span class=&quot;hps&quot;&gt;que son nuevos en&lt;/span&gt; el scripting  &lt;span class=&quot;hps&quot;&gt;y no saben&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;el uso&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;del método de&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;alias hacen&lt;/span&gt;:&lt;br /&gt; &lt;span class=&quot;hps&quot;&gt;a)&lt;/span&gt; Editan el script por defecto&lt;span class=&quot;hps&quot;&gt;&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;directamente.&lt;/span&gt;&lt;br /&gt; &lt;span class=&quot;hps&quot;&gt;b) Crean&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;el mismo método&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;y añaden&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;cosas&lt;/span&gt; &lt;span class=&quot;hps alt-edited&quot;&gt;al método&lt;/span&gt;&lt;span class=&quot;alt-edited&quot;&gt;, re&lt;/span&gt;&lt;span class=&quot;hps&quot;&gt;escribiendo&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;el script&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;predeterminado.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt; &lt;span class=&quot;hps&quot;&gt;Ambos&lt;/span&gt; casos &lt;span class=&quot;hps&quot;&gt;no son&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;muy recomendables&lt;/span&gt;, ya que podría &lt;span class=&quot;hps&quot;&gt;provocar errores&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;en los métodos&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;definidos&lt;/span&gt;, especialmente &lt;span class=&quot;hps&quot;&gt;el segundo(caso b)&lt;/span&gt;. &lt;span class=&quot;hps&quot;&gt;Mientras que para&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;el primero(caso a)&lt;/span&gt;, &lt;span class=&quot;hps&quot;&gt;se trata de un&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;inconvinience&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;en gran medida&lt;/span&gt;&lt;span class=&quot;&quot;&gt;, sobre todo si&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;se desea distribuir&lt;/span&gt; el script, ya que &lt;span class=&quot;hps&quot;&gt;tendrá que&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;señalar que&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;cambios&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;&lt;/span&gt; hizo&lt;/span&gt;&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt; &lt;span class=&quot;hps&quot;&gt;en el script&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;predeterminado&lt;/span&gt;, &lt;span class=&quot;hps&quot;&gt;en lugar de copiar&lt;/span&gt; y &lt;span class=&quot;hps&quot;&gt;pegar el&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;script escrito en&lt;/span&gt; &lt;span class=&quot;hps atn&quot;&gt;un modulo independiente (&lt;/span&gt;Plug and Play &lt;span class=&quot;hps&quot;&gt;)&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt; &lt;span class=&quot;hps&quot;&gt;&lt;/span&gt;&lt;span class=&quot;hps&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;En resumen, mediante el uso de alias, podra añadir nuevas funciones sin la necesidad de resscribir la clase completa .&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;¿Por qué&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;usar alias&lt;/span&gt;?&lt;br /&gt; &lt;span class=&quot;hps&quot;&gt;Vamos a empezar con&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;este ejemplo&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;pequeño de script&lt;/span&gt;. &lt;span class=&quot;hps&quot;&gt;Usted puede ponerlo&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;en un&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;nuevo juego,&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;o simplemente leer&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;sobre lo que ocurrirá&lt;/span&gt;&lt;span class=&quot;&quot;&gt;.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;display: block; margin: 1px auto; width: 95%;&quot;&gt;
&lt;div style=&quot;color: grey; display: block; font-family: Verdana, arial, helvetica, sans-serif; font-size: 12px; font-weight: bold; padding: 1px;&quot;&gt;
Code:
&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 1px solid gray; color: #006600; display: block; font-family: Courier new, courier, mono; font-size: 12px; padding: 1px;&quot;&gt;
class Scene_Map &amp;lt; Scene_Base&lt;br /&gt;
#--------------------------------------------------------------------------&lt;br /&gt;
# * Start processing&lt;br /&gt;
#--------------------------------------------------------------------------&lt;br /&gt;
def start&lt;br /&gt;
super&lt;br /&gt;
$game_map.refresh&lt;br /&gt;
@spriteset = Spriteset_Map.new&lt;br /&gt;
@message_window = Window_Message.new&lt;br /&gt;
@hud_window = Window_HUD.new&lt;br /&gt;
end&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
Puede ver el &quot;@hud_window = Window_HUD.new&quot; en el metodo &quot;start&quot; en &quot;Scene_Map&quot; &lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;Entonces&lt;/span&gt;, &lt;span class=&quot;hps&quot;&gt;después de eso,&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;desea utilizar el script de&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;otra persona&lt;/span&gt;&lt;span class=&quot;&quot;&gt;, que también&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;no&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;utiliza el método&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;alias:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;display: block; margin: 1px auto; width: 95%;&quot;&gt;
&lt;div style=&quot;color: grey; display: block; font-family: Verdana, arial, helvetica, sans-serif; font-size: 12px; font-weight: bold; padding: 1px;&quot;&gt;
Code:
&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 1px solid gray; color: #006600; display: block; font-family: Courier new, courier, mono; font-size: 12px; padding: 1px;&quot;&gt;
class Scene_Map &amp;lt; Scene_Base&lt;br /&gt;
#--------------------------------------------------------------------------&lt;br /&gt;
# * Start processing&lt;br /&gt;
#--------------------------------------------------------------------------&lt;br /&gt;
def start&lt;br /&gt;
super&lt;br /&gt;
$game_map.refresh&lt;br /&gt;
@spriteset = Spriteset_Map.new&lt;br /&gt;
@message_window = Window_Message.new&lt;br /&gt;
@time_window = Window_Time.new&lt;br /&gt;
end&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&amp;nbsp;En este script &quot;@time_window = Window_Time.new&quot; ha sido agregado dentro del &quot;start&quot; del metodo de &quot;Scene_Map&quot;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;Si&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;tuviera que poner&lt;/span&gt; &lt;span class=&quot;hps alt-edited&quot;&gt;el segundo script&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;por debajo del&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;primero &lt;/span&gt;&lt;span class=&quot;hps&quot;&gt;en el editor de&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;script, el&lt;/span&gt; &lt;span class=&quot;hps alt-edited&quot;&gt;el segundo script&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;se sobrepone a&lt;/span&gt;&lt;span class=&quot;hps&quot;&gt;l primero&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;y por lo tanto&lt;/span&gt; &lt;span class=&quot;hps atn&quot;&gt;el script &quot;&lt;/span&gt;@ &lt;span class=&quot;hps&quot;&gt;hud_window&lt;/span&gt;&quot;&amp;nbsp; &lt;span class=&quot;hps&quot;&gt;no es leído por&lt;/span&gt; el&amp;nbsp;&lt;span class=&quot;hps&quot;&gt;interpreter.Esto es una mala cosa..&lt;/span&gt;&lt;br /&gt;&lt;br /&gt; &lt;span class=&quot;hps&quot;&gt;En pocas palabras&lt;/span&gt;, con el uso de &lt;span class=&quot;hps&quot;&gt;alias&lt;/span&gt; se &lt;span class=&quot;hps&quot;&gt;aumenta la&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;compatibilidad entre&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;los script&lt;/span&gt;, por lo que &lt;span class=&quot;hps&quot;&gt;no habrá&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;error&lt;/span&gt;&lt;span class=&quot;hps&quot;&gt;&lt;/span&gt;es &lt;span class=&quot;hps&quot;&gt;al modificar la misma clase.&lt;/span&gt;&lt;span class=&quot;hps&quot;&gt;.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt; &lt;span class=&quot;hps&quot;&gt;¿Cómo&lt;/span&gt;?&lt;br /&gt;&lt;br /&gt; &lt;span class=&quot;hps&quot;&gt;Agregando código&lt;/span&gt;s &lt;span class=&quot;hps&quot;&gt;a los métodos&lt;/span&gt;:&lt;br /&gt;&lt;br /&gt; &lt;span class=&quot;hps&quot;&gt;En primer lugar,&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;mira el &lt;/span&gt;&lt;span class=&quot;hps&quot;&gt;Scene_Map&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;que viene por defecto,&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;en la línea&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;27-41&lt;/span&gt;&lt;span class=&quot;&quot;&gt;:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;display: block; margin: 1px auto; width: 95%;&quot;&gt;
&lt;div style=&quot;color: grey; display: block; font-family: Verdana, arial, helvetica, sans-serif; font-size: 12px; font-weight: bold; padding: 1px;&quot;&gt;
Code:
&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 1px solid gray; color: #006600; display: block; font-family: Courier new, courier, mono; font-size: 12px; padding: 1px;&quot;&gt;
#--------------------------------------------------------------------------&lt;br /&gt;
# * Termination Processing&lt;br /&gt;
#--------------------------------------------------------------------------&lt;br /&gt;
def terminate&lt;br /&gt;
super&lt;br /&gt;
if $scene.is_a?(Scene_Battle)  # If switching to battle screen&lt;br /&gt;
@spriteset.dispose_characters   # Hide characters for background creation&lt;br /&gt;
end&lt;br /&gt;
snapshot_for_background&lt;br /&gt;
@spriteset.dispose&lt;br /&gt;
@message_window.dispose&lt;br /&gt;
if $scene.is_a?(Scene_Battle)  # If switching to battle screen&lt;br /&gt;
perform_battle_transition    # Execute pre-battle transition&lt;br /&gt;
end&lt;br /&gt;
end&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;Ahora yo &lt;/span&gt;&lt;span class=&quot;&quot;&gt;quiero&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;añadir esto a&lt;/span&gt;&lt;span class=&quot;hps&quot;&gt;l código anterior&lt;/span&gt;:&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&amp;nbsp;&lt;/span&gt;
&lt;br /&gt;
&lt;div style=&quot;display: block; margin: 1px auto; width: 95%;&quot;&gt;
&lt;div style=&quot;color: grey; display: block; font-family: Verdana, arial, helvetica, sans-serif; font-size: 12px; font-weight: bold; padding: 1px;&quot;&gt;
Code:
&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 1px solid gray; color: #006600; display: block; font-family: Courier new, courier, mono; font-size: 12px; padding: 1px;&quot;&gt;
@hud_window.dispose&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;Sin&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;utilizar el método alias&lt;/span&gt;&lt;span class=&quot;&quot;&gt;, seria&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;algo como esto:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;display: block; margin: 1px auto; width: 95%;&quot;&gt;
&lt;div style=&quot;color: grey; display: block; font-family: Verdana, arial, helvetica, sans-serif; font-size: 12px; font-weight: bold; padding: 1px;&quot;&gt;
Code:
&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 1px solid gray; color: #006600; display: block; font-family: Courier new, courier, mono; font-size: 12px; padding: 1px;&quot;&gt;
#--------------------------------------------------------------------------&lt;br /&gt;
# * Termination Processing&lt;br /&gt;
#--------------------------------------------------------------------------&lt;br /&gt;
def terminate&lt;br /&gt;
super&lt;br /&gt;
if $scene.is_a?(Scene_Battle)  # If switching to battle screen&lt;br /&gt;
@spriteset.dispose_characters   # Hide characters for background creation&lt;br /&gt;
end&lt;br /&gt;
snapshot_for_background&lt;br /&gt;
@spriteset.dispose&lt;br /&gt;
@message_window.dispose&lt;br /&gt;
if $scene.is_a?(Scene_Battle)  # If switching to battle screen&lt;br /&gt;
perform_battle_transition    # Execute pre-battle transition&lt;br /&gt;
end&lt;br /&gt;
@hud_window.dispose&lt;br /&gt;
end&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;Por lo tanto&lt;/span&gt;, &lt;span class=&quot;hps&quot;&gt;volveremos a reescribir&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;el&amp;nbsp;&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;script por defecto&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;y&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;añadiremos&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;innecesarias&lt;/span&gt; lineas &lt;span class=&quot;hps&quot;&gt;de código.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt; &lt;span class=&quot;hps&quot;&gt;Ahora&lt;/span&gt;&lt;span class=&quot;&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;vamos a tratar de&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;utilizar el método de&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;alias:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;display: block; margin: 1px auto; width: 95%;&quot;&gt;
&lt;div style=&quot;color: grey; display: block; font-family: Verdana, arial, helvetica, sans-serif; font-size: 12px; font-weight: bold; padding: 1px;&quot;&gt;
Code:
&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 1px solid gray; color: #006600; display: block; font-family: Courier new, courier, mono; font-size: 12px; padding: 1px;&quot;&gt;
#--------------------------------------------------------------------------&lt;br /&gt;
# * Termination Processing&lt;br /&gt;
#--------------------------------------------------------------------------&lt;br /&gt;
alias puppet_hud_terminate terminate&lt;br /&gt;
def terminate&lt;br /&gt;
# The usual.&lt;br /&gt;
puppet_hud_terminate&lt;br /&gt;
# The new code. &lt;br /&gt;
@hud_window.dispose&lt;br /&gt;
end&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;¿Ves?&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Mediante el uso de&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;método alias&lt;/span&gt;&lt;span class=&quot;hps&quot;&gt;&lt;/span&gt;, &lt;span class=&quot;hps&quot;&gt;las líneas de código&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;se reducen&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;significativamente&lt;/span&gt;.&lt;br /&gt; &lt;span class=&quot;hps&quot;&gt;Ahora&lt;/span&gt;&lt;span class=&quot;&quot;&gt; tu te&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;hps&quot;&gt; preguntas&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;cómo puedo utilizar el método&lt;/span&gt;&lt;span class=&quot;hps&quot;&gt; alias&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;¿verdad?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt; &lt;span class=&quot;hps&quot;&gt;Pues bien,&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;el formato&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;es el siguiente:&lt;/span&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div style=&quot;display: block; margin: 1px auto; width: 95%;&quot;&gt;
&lt;div style=&quot;color: grey; display: block; font-family: Verdana, arial, helvetica, sans-serif; font-size: 12px; font-weight: bold; padding: 1px;&quot;&gt;
Code:
&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 1px solid gray; color: #006600; display: block; font-family: Courier new, courier, mono; font-size: 12px; padding: 1px;&quot;&gt;
alias new_name old_name&lt;br /&gt;
&lt;br /&gt;
or&lt;br /&gt;
&lt;br /&gt;
alias_method :new_name, :old_name&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;Al igual que en&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;el ejemplo anterior&lt;/span&gt;:&lt;br /&gt;&lt;br /&gt; &lt;span class=&quot;hps&quot;&gt;a)&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;new_name&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;puppet_hud_terminate&lt;/span&gt;&lt;br /&gt; &lt;span class=&quot;hps&quot;&gt;B&lt;/span&gt;) &lt;span class=&quot;hps&quot;&gt;old_name&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;&lt;/span&gt;&lt;/span&gt;terminate&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt; &lt;span class=&quot;hps&quot;&gt;Sencillo&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;¿no?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt; &lt;span class=&quot;hps&quot;&gt;Errores y solucion de problemas:&lt;/span&gt;&lt;span class=&quot;hps&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt; &lt;span class=&quot;hps&quot;&gt;Al parecer, cuando&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;usas&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;alias en&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;una clase&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;oculta&lt;/span&gt;, como &lt;span class=&quot;hps&quot;&gt;mapa de bits&lt;/span&gt;&lt;span class=&quot;&quot;&gt;, por ejemplo&lt;/span&gt;, si presionas &lt;span class=&quot;hps atn&quot;&gt;&quot;&lt;/span&gt;F12&quot; no habrá &lt;span class=&quot;hps&quot;&gt;errores &lt;/span&gt;&lt;span class=&quot;hps&quot;&gt;del intérprete&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt; &lt;span class=&quot;hps&quot;&gt;Al pulsar&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;F12&lt;/span&gt; nuevamente &lt;span class=&quot;hps&quot;&gt;se inicia&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;en&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Game_Temp&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;de nuevo y&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;se ejecuta&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;a través de todas&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;las clases&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;por lo que&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;se puede decir que&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;comienza de nuevo&lt;/span&gt;&lt;span class=&quot;&quot;&gt;, pero las clases&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;ocultas no se&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;crean de nuevo&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;cuando llegan a&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;los&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;alias&lt;/span&gt;&lt;span class=&quot;hps&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;ya que utiliza&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;el método original en vez del alias que&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;reescribirste&lt;/span&gt;&lt;span class=&quot;hps&quot;&gt;&lt;/span&gt;, y cuando &lt;span class=&quot;hps&quot;&gt;se llama al método&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;en el&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;juego va a&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;causar un error&lt;/span&gt;, para &lt;span class=&quot;hps&quot;&gt;evitar que&lt;/span&gt; esto ocurra, te dare una &lt;span class=&quot;hps&quot;&gt;lista de&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;ejemplo&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;hps&quot;&gt;que solucionan el problema:&lt;/span&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;display: block; margin: 1px auto; width: 95%;&quot;&gt;
&lt;div style=&quot;color: grey; display: block; font-family: Verdana, arial, helvetica, sans-serif; font-size: 12px; font-weight: bold; padding: 1px;&quot;&gt;
Code:
&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 1px solid gray; color: #006600; display: block; font-family: Courier new, courier, mono; font-size: 12px; padding: 1px;&quot;&gt;
alias puppet_bank_terminate terminate    # Alias terminate method&lt;br /&gt;
alias puppet_bank_update_basic update_basic # Alias update_basic method&lt;br /&gt;
alias puppet_bank_update update    # Alias update method&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
Y cambiarlo por esto:&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;display: block; margin: 1px auto; width: 95%;&quot;&gt;
&lt;div style=&quot;color: grey; display: block; font-family: Verdana, arial, helvetica, sans-serif; font-size: 12px; font-weight: bold; padding: 1px;&quot;&gt;
Code:
&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 1px solid gray; color: #006600; display: block; font-family: Courier new, courier, mono; font-size: 12px; padding: 1px;&quot;&gt;
if @new_stack.nil?&lt;br /&gt;
alias puppet_bank_terminate terminate    # Alias terminate method&lt;br /&gt;
alias puppet_bank_update_basic update_basic # Alias update_basic method&lt;br /&gt;
alias puppet_bank_update update    # Alias update method&lt;br /&gt;
@new_stack = true&lt;br /&gt;
end&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
Esto previene que el error ocurra.&lt;br /&gt;
&lt;br /&gt;
Bueno, esto es todo por ahora.&lt;br /&gt;
Agradecimientos:&lt;br /&gt;
Trickster.&lt;br /&gt;
A mi (puppet04).</content><link rel='replies' type='application/atom+xml' href='http://taller-maker.blogspot.com/feeds/8616406454052899245/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://taller-maker.blogspot.com/2012/04/alias.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8551798844080929407/posts/default/8616406454052899245'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8551798844080929407/posts/default/8616406454052899245'/><link rel='alternate' type='text/html' href='http://taller-maker.blogspot.com/2012/04/alias.html' title='Alias'/><author><name>tenshi98</name><uri>http://www.blogger.com/profile/06461952114644591440</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgMYLI_10CchcS8kNq5rxFCb-2qgfYgYV8MlGNlr-L_ZsMxcoL6C9ytoDmsLM05VJC6-1jMPVIZtoNxo_fHPevstQM3dgJvyQ8gLq4Dr4bIAGs3R3aaBtaJPz8E1e1How/s220/Albert_Wesker___Resident_Evil_by_megakay.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8551798844080929407.post-8196772894788559136</id><published>2012-04-04T07:55:00.000-07:00</published><updated>2012-04-04T07:55:43.805-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Tutoriales"/><title type='text'>RGSS y Ruby - Capitulo 3</title><content type='html'>Author: Dubealex&lt;br /&gt;
Updated: October 04, 2007&lt;br /&gt;
Traductor: Tenshi98&lt;br /&gt;
&lt;br /&gt;
Antes que comenzar, necesitas haber leido el capitulo 1 y 2 para poder seguir con esta clase &lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;Todos los contenidos&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;más importantes&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;que necesitas entender&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;se&lt;/span&gt; han &lt;span class=&quot;hps&quot;&gt;explica en el capítulo&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;1 y 2&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;de la&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;guia&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;básica&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;de&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;RGSS&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;y Ruby&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;en&amp;nbsp;&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;RMXP&lt;/span&gt;. &lt;span class=&quot;hps&quot;&gt;Con el conocimiento&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;adquirido&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;con el capítulo&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;2 de la lección&lt;/span&gt;&lt;span class=&quot;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;hps&quot;&gt; deberías ser capaz&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;de abordar&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;el capítulo 3&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;con más facilidad.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;El c&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;apítulo 3&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;abordara&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;la &lt;b&gt;Selectable/Command Window&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;hps&quot;&gt;&lt;/span&gt;, vamos a &lt;span class=&quot;hps&quot;&gt;aprender a&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;crear y administrar&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;muchos tipos diferentes de&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;menús:&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;menús normales&lt;/span&gt;&lt;span class=&quot;&quot;&gt;, menú horizontal&lt;/span&gt;, menús &lt;span class=&quot;hps&quot;&gt;múltiples columnas,&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;y&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Múltiples menús&lt;/span&gt; &lt;span class=&quot;hps atn&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;&quot;&gt;en la misma escena&lt;/span&gt;). &lt;span class=&quot;hps&quot;&gt;También vamos a&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;aprender un poco de&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;buena técnica&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;sobre la creación de&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;la CMS&lt;/span&gt;, al igual que &lt;span class=&quot;hps&quot;&gt;la forma de gestionar&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;correctamente&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;la ventana&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;en la escena,&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;la forma de asignar&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;una imagen&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;para reemplazar la ventana&lt;/span&gt;, &lt;span class=&quot;hps&quot;&gt;cómo utilizar la&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;piel que se desea&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;para cada ventana&lt;/span&gt;, etc. &lt;span class=&quot;hps&quot;&gt;Como es habitual,&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;también vamos a&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;cubrir algunos&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;aspectos&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;de la&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;bonificación de&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;una sintaxis&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;en la manera&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;como las vemos&lt;/span&gt;. &lt;span class=&quot;hps&quot;&gt;Los&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;bonos&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;información&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;ahora se llamará&lt;/span&gt;n &lt;span class=&quot;hps atn&quot;&gt;&quot;&lt;/span&gt;Side-Note&quot;.&lt;br /&gt;&lt;br /&gt; &lt;span class=&quot;hps&quot;&gt;Por lo tanto&lt;/span&gt;, dicho esto&lt;span class=&quot;&quot;&gt;, comencemos&lt;/span&gt;&lt;span class=&quot;&quot;&gt;!&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;1. Estructura de Selectable/Command Window &lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;Antes de tratar de&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;modificar o crear&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;menús&lt;/span&gt;, todos ustedes &lt;span class=&quot;hps&quot;&gt;deben&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;conocer la estructura&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;&lt;b&gt;selectable window&lt;/b&gt; y &lt;b&gt;command window&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;hps&quot;&gt; en&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;RMXP&lt;/span&gt;. &lt;span class=&quot;hps&quot;&gt;Básicamente, la&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Window Selectable&lt;/span&gt;&lt;span class=&quot;hps&quot;&gt; muestra&lt;/span&gt;&lt;span class=&quot;hps&quot;&gt; el&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;cursor en los menús&lt;/span&gt;&lt;span class=&quot;&quot;&gt;, donde es&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;el cursor y&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;la ventana de ayuda&lt;/span&gt;, el Window Command&lt;span class=&quot;hps&quot;&gt;&lt;/span&gt;&lt;span class=&quot;hps&quot;&gt; muestra&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;los elementos del menú&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;en la ventana&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;que el usuario&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;especifico&lt;/span&gt;&lt;span class=&quot;hps&quot;&gt;&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;en su escena&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt; &lt;span class=&quot;hps&quot;&gt;Vamos a&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;ver cómo&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;un sencillo menú&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;se crea y lo&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;RMXP&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;hizo&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;para crearla.&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Vamos a&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;ver&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;el menú estándar&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;de la clase&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Scene_Menu&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;(Esta es el menu principal&lt;/span&gt;&lt;span class=&quot;hps&quot;&gt; del juego&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;que aparece&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;al pulsar&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;ESCAPE&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;durante el juego.&lt;/span&gt;) &lt;span class=&quot;hps&quot;&gt;Así que abre&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;la página denominada&lt;/span&gt; &lt;span class=&quot;hps atn&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;&quot;&gt;Scene_Menu&lt;/span&gt;&quot;&lt;span class=&quot;&quot;&gt;.&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;display: block; margin: 1px auto; width: 95%;&quot;&gt;
&lt;div style=&quot;color: grey; display: block; font-family: Verdana, arial, helvetica, sans-serif; font-size: 12px; font-weight: bold; padding: 1px;&quot;&gt;
Code:
&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 1px solid gray; color: #006600; display: block; font-family: Courier new, courier, mono; font-size: 12px; padding: 1px;&quot;&gt;
class Scene_Menu&lt;br /&gt;
#--------------------------------------------------------------------------&lt;br /&gt;
# �? オ�-ジェクト�?���-&lt;br /&gt;
#     menu_index : コマンド�?�カーソル�?���?置&lt;br /&gt;
#--------------------------------------------------------------------------&lt;br /&gt;
def initialize(menu_index = 0)&lt;br /&gt;
@menu_index = menu_index&lt;br /&gt;
end&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;Este es el método&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;de inicialización de&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Scene_Menu&lt;/span&gt;. &lt;span class=&quot;hps&quot;&gt;En el capítulo 2&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;no&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;crea&lt;/span&gt; &lt;span class=&quot;hps atn&quot;&gt;ningún&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt; método&lt;/span&gt;&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps atn&quot;&gt; &quot;&lt;/span&gt;initialize&quot;, sólo &lt;span class=&quot;hps&quot;&gt;hicimos nuestro&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;método &quot;main&quot;&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;...&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;¿Por qué hay&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;un método de&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;inicializar&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;aquí?&lt;/span&gt; &lt;span class=&quot;hps alt-edited&quot;&gt;Bueno, este&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;es capaz de&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;especificar el lugar donde&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;queremos&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;que aparezca el cursor&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;en el menú&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;cuando llamamos a&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;ese menú&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;desde otra escena&lt;/span&gt;. &lt;span class=&quot;hps&quot;&gt;La posición del&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;cursor en&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;un menú&lt;/span&gt;&amp;nbsp;&lt;span class=&quot;hps&quot;&gt; se llama&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;un &quot;Menu Index&lt;/span&gt;&lt;span class=&quot;hps&quot;&gt;&lt;/span&gt;&quot; en &lt;span class=&quot;hps&quot;&gt;RMXP&lt;/span&gt;&lt;span class=&quot;&quot;&gt;, por lo que&lt;/span&gt; nos referiremos&lt;span class=&quot;hps&quot;&gt; de esta forma a esta nocion&lt;/span&gt;&lt;span class=&quot;hps&quot;&gt;&lt;/span&gt;. &lt;span class=&quot;hps&quot;&gt;Así pues, si&lt;/span&gt; revisas&lt;span class=&quot;hps&quot;&gt; en&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Scene_Item&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;cerca de la línea&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;# 71,&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;verás una&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;línea que dice&lt;/span&gt;: &lt;span class=&quot;hps&quot;&gt;$ scene =&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Scene_Menu.new&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;(0)&lt;/span&gt;, este &lt;span class=&quot;hps&quot;&gt;envía un&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;atributo a la clase&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Scene_Menu&lt;/span&gt;, &lt;span class=&quot;hps&quot;&gt;y el&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;índice del menú&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;será de 0&lt;/span&gt;, si se cambia &lt;span class=&quot;hps&quot;&gt;el&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;0&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;por&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;1&lt;/span&gt;, el cursor &lt;span class=&quot;hps&quot;&gt;aparecerá&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;en el segundo lugar&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;en&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;el menú.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;span style=&quot;text-decoration: underline;&quot;&gt;Side Note:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;def initialize(menu_index = 0)&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;En esta línea&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;tenemos&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;una definición de atributo&lt;/span&gt;, como se explica &lt;span class=&quot;hps&quot;&gt;en el capítulo&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;anterior&lt;/span&gt;, que &lt;span class=&quot;hps&quot;&gt;se define en&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;el paréntesis&lt;/span&gt;. &lt;span class=&quot;hps&quot;&gt;Como puede ver&lt;/span&gt;&amp;nbsp; &lt;span class=&quot;hps&quot;&gt;nuestro&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;atributo&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt; &lt;span class=&quot;hps atn&quot;&gt;tiene un valor&quot;&lt;/span&gt;no modificable&quot; &lt;span class=&quot;hps&quot;&gt;para&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;el&amp;nbsp;&lt;/span&gt; &lt;span class=&quot;hps atn&quot;&gt;de &quot;&lt;/span&gt;menu_index &lt;span class=&quot;hps&quot;&gt;= 0&quot;&lt;/span&gt;. &lt;span class=&quot;hps&quot;&gt;Esto tiene el efecto&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;de decir&lt;/span&gt; &lt;span class=&quot;hps atn&quot;&gt;el atributo &quot;&lt;/span&gt;menu_index&quot; &lt;span class=&quot;hps&quot;&gt;es igual&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;a 0&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;de forma predeterminada&lt;/span&gt;, por lo que &lt;span class=&quot;hps&quot;&gt;si llamamos a&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;la clase&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;sin ningún tipo de&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;definición de atributo&lt;/span&gt;, &lt;span class=&quot;hps&quot;&gt;que&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;será igual a 0&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;y no&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;se bloqueará&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;pidiendo&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;atributos&lt;/span&gt;. &lt;span class=&quot;hps&quot;&gt;Esto es útil si&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;desea crear&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;el atributo&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;de un método&lt;/span&gt;, sino &lt;span class=&quot;hps&quot;&gt;que&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;desea que los valores&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;por defecto&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;para que no se&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;tenga que enviar&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;cada vez que utilice&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;este método&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;en particular.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;display: block; margin: 1px auto; width: 95%;&quot;&gt;
&lt;div style=&quot;color: grey; display: block; font-family: Verdana, arial, helvetica, sans-serif; font-size: 12px; font-weight: bold; padding: 1px;&quot;&gt;
Code:
&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 1px solid gray; color: #006600; display: block; font-family: Courier new, courier, mono; font-size: 12px; padding: 1px;&quot;&gt;
def main&lt;br /&gt;
# コマンドウィンドウ�&#39;作�?&lt;br /&gt;
s1 = $data_system.words.item&lt;br /&gt;
s2 = $data_system.words.skill&lt;br /&gt;
s3 = $data_system.words.equip&lt;br /&gt;
s4 = &quot;Status&quot;&lt;br /&gt;
s5 = &quot;Save&quot;&lt;br /&gt;
s6 = &quot;Exit&quot;&lt;br /&gt;
@command_window = Window_Command.new(160, [s1, s2, s3, s4, s5, s6])&lt;br /&gt;
@command_window.index = @menu_index&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;Esta es la definición&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;del actual menú&lt;/span&gt;. &quot;&lt;span class=&quot;hps&quot;&gt;S&quot;&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;puede estar establecido para&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;&quot;Selección&quot;&lt;/span&gt;, &lt;span class=&quot;hps&quot;&gt;pero no es&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;importante saberlo&lt;/span&gt;, &lt;span class=&quot;hps&quot;&gt;lo que es importante&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;saber es que&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;todas las líneas&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;de&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;S1 a S6&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;son lo que llamamos&lt;/span&gt; &lt;span class=&quot;hps atn&quot;&gt;&quot;&lt;/span&gt;menú&quot;, esas son las &lt;span class=&quot;hps&quot;&gt;selecciones de menú que&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;se&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;enumeran&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;en el&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;menú de la ventana&lt;/span&gt;. &lt;span class=&quot;hps&quot;&gt;En realidad,&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;lo que se define&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;en las&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;líneas&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;S1 a S6&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;son&lt;/span&gt; &lt;span class=&quot;hps atn&quot;&gt;la cadena (&lt;/span&gt;&lt;span class=&quot;&quot;&gt;de texto)&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;que se mostrará&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;en el menú.&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Recuerde que la&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;S1 a S6&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;en realidad son&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;variables&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;que se pueden utilizar&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;más adelante&lt;/span&gt;&lt;span class=&quot;&quot;&gt;, en realidad&lt;/span&gt;&lt;span class=&quot;&quot;&gt;, se podrían llamar&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;de&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;la forma que desee&lt;/span&gt;, e incluso &lt;span class=&quot;hps&quot;&gt;no podía utilizarlos&lt;/span&gt;. &lt;span class=&quot;hps&quot;&gt;Las usamos para&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;simplificar la&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;creación de nuestros menús&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;más adelante.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;span style=&quot;text-decoration: underline;&quot;&gt;Side Notes:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;s1 = $data_system.words.item&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;En esta línea&lt;/span&gt;&lt;span class=&quot;atn&quot;&gt;, recuerda que &quot;&lt;/span&gt;$&quot; se refieren a &lt;span class=&quot;hps&quot;&gt;una variable global.&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;data_system&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;se refieren a&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;todos los datos&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;que pueda haber establecido&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;en la&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;base de datos de&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;RMXP&lt;/span&gt;. &lt;span class=&quot;hps&quot;&gt;Así que los&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;de la línea&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;S1&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;de hecho&lt;/span&gt; &lt;span class=&quot;hps alt-edited&quot;&gt;adoptar la&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;palabra que&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;se especifica en&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;la base de datos&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;en el campo &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;&quot;&gt;de texto&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps atn&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;alt-edited&quot;&gt;objetos&lt;/span&gt;&lt;span class=&quot;&quot;&gt;&quot; .&lt;/span&gt;&lt;br /&gt;&lt;br /&gt; &lt;span class=&quot;hps&quot;&gt;Una vez que toda&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;nuestra&lt;/span&gt;s &lt;span class=&quot;hps&quot;&gt;opciones del menú&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;se definen&lt;/span&gt;, &lt;span class=&quot;hps&quot;&gt;tenemos que crear&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;una ventana&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;para el menú&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;y enviar&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;el atributo&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;necesario&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;de la misma.&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;La siguiente línea&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;se hace cargo de&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;esto:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;@command_window = Window_Command.new(160, [s1, s2, s3, s4, s5, s6])&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;Si&amp;nbsp; recuerda&lt;/span&gt;n &lt;span class=&quot;hps&quot;&gt;en el capítulo 2&lt;/span&gt;, aquí &lt;span class=&quot;hps&quot;&gt;basta con crear&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;un objeto denominado&lt;/span&gt; &lt;span class=&quot;hps atn&quot;&gt;&quot;&lt;/span&gt;@ &lt;span class=&quot;hps&quot;&gt;command_window&lt;/span&gt;&quot;, el cual es &lt;span class=&quot;hps&quot;&gt;de la clase&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Window_Command&lt;/span&gt;. &lt;span class=&quot;hps&quot;&gt;Los objetos&lt;/span&gt; de &lt;span class=&quot;hps&quot;&gt;Window_Command&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;necesitan 2&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;atributos para&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;ser creados.&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Vamos a&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;ver&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;la clase&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Window_Command&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;para comprobarlo&lt;/span&gt;. &lt;span class=&quot;hps atn&quot;&gt;Abran la clase&amp;nbsp; &quot;&lt;/span&gt;Window_Command&lt;span class=&quot;&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;&quot;&gt;:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;display: block; margin: 1px auto; width: 95%;&quot;&gt;
&lt;div style=&quot;color: grey; display: block; font-family: Verdana, arial, helvetica, sans-serif; font-size: 12px; font-weight: bold; padding: 1px;&quot;&gt;
Code:
&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 1px solid gray; color: #006600; display: block; font-family: Courier new, courier, mono; font-size: 12px; padding: 1px;&quot;&gt;
&lt;br /&gt;
class Window_Command &amp;lt; Window_Selectable&lt;br /&gt;
#--------------------------------------------------------------------------&lt;br /&gt;
# �? オ�-ジェクト�?���-&lt;br /&gt;
#     width    : ウィンドウ�?�幅&lt;br /&gt;
#     commands : コマンド�-�字列�?��?列&lt;br /&gt;
#--------------------------------------------------------------------------&lt;br /&gt;
def initialize(width, commands)&lt;br /&gt;
# コマンド�?�個数�?�らウィンドウ�?�高�?��&#39;算冺&lt;br /&gt;
super(0, 0, width, commands.size * 32 + 32)&lt;br /&gt;
@item_max = commands.size&lt;br /&gt;
@commands = commands&lt;br /&gt;
self.contents = Bitmap.new(width - 32, @item_max * 32)&lt;br /&gt;
self.contents.font.name = $defaultfonttype  # &quot;All Commands&quot; window font&lt;br /&gt;
self.contents.font.size = $defaultfontsize&lt;br /&gt;
refresh&lt;br /&gt;
self.index = 0&lt;br /&gt;
end&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;Window_Command&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;es&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;una subclase de&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Window_Selectable&lt;/span&gt;&lt;span class=&quot;&quot;&gt;, por lo que&lt;/span&gt; se &lt;span class=&quot;hps&quot;&gt;tendrá que&lt;/span&gt; &lt;span class=&quot;hps alt-edited&quot;&gt;echar un vistazo a&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Window_Selectable&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;más adelante.&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Así&lt;/span&gt;&lt;span class=&quot;&quot;&gt;, vemos que&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;el métodos&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;initialize&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;necesitan 2&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;atributos&lt;/span&gt;, &lt;span class=&quot;hps&quot;&gt;Ancho&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;y comandos&lt;/span&gt;&lt;span class=&quot;&quot;&gt;.&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Por lo tanto&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;la línea de&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Scene_Menu&lt;/span&gt;&lt;span class=&quot;&quot;&gt; quedaria:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-style: italic;&quot;&gt;@command_window = Window_Command.new(160, [s1, s2, s3, s4, s5, s6])&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;El primer atributo&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;es de 160&lt;/span&gt;, &lt;span class=&quot;hps&quot;&gt;que es el ancho&lt;/span&gt;, &lt;span class=&quot;hps&quot;&gt;y la segunda es&lt;/span&gt; &lt;span class=&quot;hps atn&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;&quot;&gt;S1, S2&lt;/span&gt;&lt;span class=&quot;&quot;&gt;, S3, S4&lt;/span&gt;, &lt;span class=&quot;hps&quot;&gt;S5, S6&lt;/span&gt;&lt;span class=&quot;&quot;&gt;], que&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;concist&lt;/span&gt;e &lt;span class=&quot;hps&quot;&gt;de&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;una matriz que contiene&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;todas nuestras variables&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;S1 a S6&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;que contienen valores&lt;/span&gt; &lt;span class=&quot;hps atn&quot;&gt;(&lt;/span&gt;de texto) &lt;span class=&quot;hps&quot;&gt;para nuestro menú&lt;/span&gt;&lt;span class=&quot;hps&quot;&gt;.&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Bien, ahora&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Window_Command&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;utiliza&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;un &quot;super&lt;/span&gt;&lt;span class=&quot;&quot;&gt;&quot;&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;para inicializar el&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;método de&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;su&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;superclase&lt;/span&gt; &lt;span class=&quot;hps atn&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;&quot;&gt;Window_Selectable&lt;/span&gt;&lt;span class=&quot;&quot;&gt;&quot;&lt;/span&gt;:&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-style: italic;&quot;&gt;super(0, 0, width, commands.size * 32 + 32)&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;Ahora tenemos que&lt;/span&gt; &lt;span class=&quot;hps atn&quot;&gt;abrir &quot;&lt;/span&gt;&lt;span class=&quot;&quot;&gt;Window_Selectable&lt;/span&gt;&lt;span class=&quot;&quot;&gt;&quot; y&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;echar un vistazo&lt;/span&gt;d&lt;span class=&quot;hps&quot;&gt;el método initialize&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;en ese lugar.&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;(Recuerden&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;el capítulo 2&lt;/span&gt;&lt;span class=&quot;&quot;&gt;, aprendimos de&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;la herencia en&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;aquel entonces.&lt;/span&gt;)&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;display: block; margin: 1px auto; width: 95%;&quot;&gt;
&lt;div style=&quot;color: grey; display: block; font-family: Verdana, arial, helvetica, sans-serif; font-size: 12px; font-weight: bold; padding: 1px;&quot;&gt;
Code:
&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 1px solid gray; color: #006600; display: block; font-family: Courier new, courier, mono; font-size: 12px; padding: 1px;&quot;&gt;
&lt;br /&gt;
class Window_Selectable &amp;lt; Window_Base&lt;br /&gt;
#--------------------------------------------------------------------------&lt;br /&gt;
# �? 公�-�インスタンス変数&lt;br /&gt;
#--------------------------------------------------------------------------&lt;br /&gt;
attr_reader   :index                    # カーソル�?置&lt;br /&gt;
attr_reader   :help_window              # ヘルプウィンドウ&lt;br /&gt;
#--------------------------------------------------------------------------&lt;br /&gt;
# �? オ�-ジェクト�?���-&lt;br /&gt;
#     x      : ウィンドウ�?� X 座標&lt;br /&gt;
#     y      : ウィンドウ�?� Y 座標&lt;br /&gt;
#     width  : ウィンドウ�?�幅&lt;br /&gt;
#     height : ウィンドウ�?�高�?�&lt;br /&gt;
#--------------------------------------------------------------------------&lt;br /&gt;
def initialize(x, y, width, height)&lt;br /&gt;
super(x, y, width, height)&lt;br /&gt;
@item_max = 1&lt;br /&gt;
@column_max = 1&lt;br /&gt;
@index = -1&lt;br /&gt;
end&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;Bueno,&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;por supuesto,&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;esta clase&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;también tienen una&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;super clase&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;llamada&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Window_Base&lt;/span&gt;, es normal, &lt;span class=&quot;hps&quot;&gt;window_base&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;contiene toda la&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;base&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;de la creación de&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;una ventana&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;en la pantalla en&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;RMXP&lt;/span&gt;. &lt;span class=&quot;hps&quot;&gt;Window_Selectable&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;necesitan&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;cuatro&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;atributos&lt;/span&gt;, como &lt;span class=&quot;hps&quot;&gt;son&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Window_Base&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;la posición x&lt;/span&gt;&lt;span class=&quot;&quot;&gt;, posición y,&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;anchura y altura&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;de la ventana para&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;crear.&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Vamos a comprobar&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;la línea&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;súper&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;de nuestra&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;subclase&lt;/span&gt; &lt;span class=&quot;hps atn&quot;&gt;&quot;&lt;/span&gt;Window_Command&quot;:&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-style: italic;&quot;&gt;super(0, 0, width, commands.size * 32 + 32)&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;Así&lt;/span&gt;&lt;span class=&quot;&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;la&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;posición&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;X e&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Y son en ambos&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;0, lo que&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;significa que la ventana&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;será a&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;0:0&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;de posición sobre&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;la pantalla.&lt;/span&gt; &lt;span class=&quot;hps atn&quot;&gt;(&lt;/span&gt;. &lt;span class=&quot;hps&quot;&gt;que es&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;la esquina superior&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;izquierda de la pantalla&lt;/span&gt;&lt;span class=&quot;&quot;&gt;) la anchura&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;es igual a&lt;/span&gt; &lt;span class=&quot;hps atn&quot;&gt;una variable llamada &quot;&lt;/span&gt;ancho&quot;, &lt;span class=&quot;hps&quot;&gt;que se envía por&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Scene_Menu&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;en la línea&lt;/span&gt;&lt;span class=&quot;&quot;&gt;:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-style: italic;&quot;&gt;@command_window = Window_Command.new(160, [s1, s2, s3, s4, s5, s6])&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;160&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;es el ancho&lt;/span&gt;. &lt;span class=&quot;hps&quot;&gt;La altura&lt;/span&gt; &lt;span class=&quot;hps atn&quot;&gt;se define como &quot;&lt;/span&gt;commands.size &lt;span class=&quot;hps&quot;&gt;*&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;32 + 32&lt;/span&gt;&quot;, &lt;span class=&quot;hps&quot;&gt;esta parte&lt;/span&gt; se &lt;span class=&quot;hps&quot;&gt;pueden haber&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;confundido&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;un poco&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;...&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;En primer lugar,&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;es necesario recordar&lt;/span&gt; &lt;span class=&quot;hps atn&quot;&gt;que &quot;&lt;/span&gt;&lt;span class=&quot;&quot;&gt;comandos&lt;/span&gt;&quot; es en realidad &lt;span class=&quot;hps&quot;&gt;una variable de matriz&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;se define&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;como:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-style: italic;&quot;&gt;[s1, s2, s3, s4, s5, s6]&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;En Ruby&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;se puede utilizar&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;muchas funciones integradas&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;en la&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;&quot;función&quot;&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;con todos las&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;componentes, tales como&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;matrices.&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Usted puede comprobar&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;todos esos&lt;/span&gt; &lt;span class=&quot;hps atn&quot;&gt;&quot;&lt;/span&gt;Funciones&quot; &lt;span class=&quot;hps&quot;&gt;en la siguiente dirección&lt;/span&gt;&lt;span class=&quot;&quot;&gt;:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://www.rubycentral.com/book/builtins.html&quot;&gt;http://www.rubycentral.com/book/builtins.html&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;Si usted&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;consultar la página web&lt;/span&gt;, &lt;span class=&quot;hps&quot;&gt;la definición de&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;&quot;tamaño&quot;&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;es la siguiente:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt; &lt;span class=&quot;hps&quot;&gt;&quot;Devuelve&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;el número de elementos&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;en arr&lt;/span&gt;. &lt;span class=&quot;hps&quot;&gt;Puede ser cero&lt;/span&gt;.&quot;&lt;br /&gt;&lt;br /&gt; &lt;span class=&quot;hps&quot;&gt;Por lo tanto,&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;lo que&lt;/span&gt; &lt;span class=&quot;hps atn&quot;&gt;&quot;&lt;/span&gt;commands.size&quot; &lt;span class=&quot;hps&quot;&gt;hace es&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;devolver un valor que&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;es igual al&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;número de&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;objetos que figuran en&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;la matriz.&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;En nuestro caso,&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;el tamaño de&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;nuestro arsenal&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;&quot;Comandos&quot;&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;es de 6&lt;/span&gt;. &lt;span class=&quot;hps&quot;&gt;Por lo tanto,&lt;/span&gt; &lt;span class=&quot;hps atn&quot;&gt;la línea &quot;&lt;/span&gt;&lt;span class=&quot;&quot;&gt;commands.size&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;*&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;32 + 32&lt;/span&gt;&quot; ahora &lt;span class=&quot;hps&quot;&gt;puede ser conocido como&lt;/span&gt;&lt;span class=&quot;&quot;&gt;:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-style: italic;&quot;&gt;6 * 32 + 32&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;¿Cuál&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;es el siguiente:&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;224&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;...&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Nuestra&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;altura es&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;entonces&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;224&lt;/span&gt;. &lt;span class=&quot;hps&quot;&gt;Así que&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;ahora es&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;nuestra ventana&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;al&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;160X224&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;0:0&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;posición&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;en la pantalla.&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Volvamos&lt;/span&gt;&lt;span class=&quot;hps&quot;&gt; a&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;nuestra clase&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Scene_Menu&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;para ver nuestra&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;última línea&lt;/span&gt;, que es:&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-style: italic;&quot;&gt;@command_window.index = @menu_index&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;Esta línea&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;se &lt;/span&gt;&lt;span class=&quot;hps&quot;&gt;establece el atributo&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;&quot;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;index&lt;/span&gt;&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;&quot;&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;a nuestro objeto&lt;/span&gt; &lt;span class=&quot;hps atn&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;&quot;&gt;@&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;command_window&lt;/span&gt;&quot; &lt;span class=&quot;hps&quot;&gt;igual a&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;nuestra&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;variable de instancia&lt;/span&gt; &lt;span class=&quot;hps atn&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;&quot;&gt;menu_index&lt;/span&gt;&quot;, es decir, &lt;span class=&quot;hps&quot;&gt;0 por defecto&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;...&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Pero si&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;otra escena&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;ha enviado&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;un atributo&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;al crear&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;ese menú&lt;/span&gt;, utilizará &lt;span class=&quot;hps&quot;&gt;ese valor en lugar&lt;/span&gt;, así es como, &lt;span class=&quot;hps&quot;&gt;por ejemplo, que&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;el cursor&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;se vuelve&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;a donde estaba&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;cuando regrese de&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;la opción &quot;Guardar&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Menú&quot;&lt;/span&gt;. &lt;span class=&quot;hps atn&quot;&gt;&quot;&lt;/span&gt;@ &lt;span class=&quot;hps&quot;&gt;command_window.index&lt;/span&gt;&quot; &lt;span class=&quot;hps&quot;&gt;también se utilizará&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;más adelante en el&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Scene_Menu&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;para saber&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;donde está el cursor&lt;/span&gt;, &lt;span class=&quot;hps&quot;&gt;con el fin de&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;saber qué hacer&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;cuando el&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;usuario&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;pulse&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;&quot;Confirmar&quot;&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;en una selección&lt;/span&gt;. &lt;span class=&quot;hps atn&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;&quot;&gt;Veremos que&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;en la&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;profundidad más adelante&lt;/span&gt;.)&lt;br /&gt;&lt;br /&gt; &lt;span class=&quot;hps&quot;&gt;Hay&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;otras cosas&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;para ver&lt;/span&gt;&lt;span class=&quot;atn&quot;&gt;, como &quot;&lt;/span&gt;Column Max, Row, Cursor Width, &lt;span class=&quot;hps&quot;&gt;etc&quot;&lt;/span&gt;, &lt;span class=&quot;hps&quot;&gt;todos esos componentes&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;se explicaran&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;por lo que será&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;capaz de crear&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;el tipo de&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;menús&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;que desee.&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Pero primero,&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;lo que usted necesita&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;&lt;/span&gt;&lt;span class=&quot;hps&quot;&gt;es entender como&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;una basica columna trabaja en el&amp;nbsp;&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;menú &lt;/span&gt;&lt;span class=&quot;hps&quot;&gt;&lt;/span&gt;, &lt;span class=&quot;hps&quot;&gt;y lo que puedes&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;hacer con esta.&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Una vez que&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;hemos creado&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;este tipo de&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;menús&lt;/span&gt;, vamos a crear &lt;span class=&quot;hps&quot;&gt;un menú&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;de varias columnas&lt;/span&gt;, &lt;span class=&quot;hps&quot;&gt;y así sucesivamente con&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;el otro tipo de&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;menús.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt; &lt;span class=&quot;hps&quot;&gt;Ahora que la&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;base&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;de un menú&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;han sido explicadas&lt;/span&gt;, podemos &lt;span class=&quot;hps&quot;&gt;hacer nuestro&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;propio menú&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;en nuestra&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;propia escena&lt;/span&gt;. &lt;span class=&quot;hps&quot;&gt;Usted ya&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;debe ser capaz de&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;crear su&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;propia ventana,&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;su propia escena&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;y&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;sus propias variables&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;y los objetos&lt;/span&gt;&lt;span class=&quot;&quot;&gt;, porque ya fueron explicados en&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;el capítulo&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;1 y 2&lt;/span&gt;, así que &lt;span class=&quot;hps&quot;&gt;no vamos a&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;pasar por todo eso&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;otra vez.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span class=&quot;short_text&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;2. Creación de un menú&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;horizontal simple&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;En primer lugar&lt;/span&gt;, necesitamos &lt;span class=&quot;hps&quot;&gt;una escena&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;sencilla para crear&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;nuestro menú&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;pulg&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;He creado un&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;menú de diseño&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;simple y&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;ventana que&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;se puede&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;copiar y pegar&lt;/span&gt;, vamos a usar &lt;span class=&quot;hps&quot;&gt;ese diseño&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;de nuestro menú.&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Este&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;diseño &lt;/span&gt;&lt;span class=&quot;hps&quot;&gt;concist&lt;/span&gt;e &lt;span class=&quot;hps&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;de&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;tres&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;ventanas,&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;una&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;para visualizar el menú&lt;/span&gt;&lt;span class=&quot;&quot;&gt;, otro&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;para mostrar&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;la ventana de ayuda&lt;/span&gt;, &lt;span class=&quot;hps&quot;&gt;y otra&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;para mostrar el contenido&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;de una selección&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;en el menú.&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Esto se verá&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;así:&lt;/span&gt; &lt;span class=&quot;hps atn&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;&quot;&gt;Cuando está vacío&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;...&lt;/span&gt;)&lt;br /&gt;&lt;br /&gt; &lt;span class=&quot;hps&quot;&gt;Basta con crear&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;una nueva página&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;en el editor de&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;script,&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;y pegar todo&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;el &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;código &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;siguiente&amp;nbsp;&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;dentro de él&lt;/span&gt;: &lt;span class=&quot;hps atn&quot;&gt;(&lt;/span&gt;Usted puede llamar a &lt;span class=&quot;hps&quot;&gt;esta página&lt;/span&gt; &lt;span class=&quot;hps atn&quot;&gt;&quot;&lt;/span&gt;menú &lt;span class=&quot;hps&quot;&gt;horizontal&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;simple&lt;/span&gt;&quot;&lt;span class=&quot;&quot;&gt;.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;display: block; margin: 1px auto; width: 95%;&quot;&gt;
&lt;div style=&quot;color: grey; display: block; font-family: Verdana, arial, helvetica, sans-serif; font-size: 12px; font-weight: bold; padding: 1px;&quot;&gt;
Code:
&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 1px solid gray; color: #006600; display: block; font-family: Courier new, courier, mono; font-size: 12px; padding: 1px;&quot;&gt;
&lt;br /&gt;
#===================================================&lt;br /&gt;
# �-?  RGSS &amp;amp; Ruby Lesson -- Chapter 3 [SIMPLE HORIZONTAL MENU]&lt;br /&gt;
#===================================================&lt;br /&gt;
# By: Dubealex&lt;br /&gt;
# www.dubealex.com (Creation Asylum)&lt;br /&gt;
#&lt;br /&gt;
# Last Update: April 14, 2005&lt;br /&gt;
#===================================================&lt;br /&gt;
&lt;br /&gt;
#===================================================&lt;br /&gt;
# �-� CLASS Scene_Chapter3_menu1 BEGINS (Simple Horizontal Menu)&lt;br /&gt;
#===================================================&lt;br /&gt;
class Scene_Chapter3_menu1&lt;br /&gt;
&lt;br /&gt;
def initialize(menu_index = 0)&lt;br /&gt;
@menu_index = menu_index #Store the cursor position&lt;br /&gt;
end  &lt;br /&gt;
&lt;br /&gt;
#--------------------------------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
def main&lt;br /&gt;
@window_a1=Window_a1.new #Content Window&lt;br /&gt;
@window_a1.update(false) #Decide whether to show/hide the content...&lt;br /&gt;
@window_a1.x=200&lt;br /&gt;
@window_a1.y=100&lt;br /&gt;
&lt;br /&gt;
@window_a3=Window_a3.new #Help Window &lt;br /&gt;
@window_a3.update(&quot; &quot;) #Send the help text by default to the Help Window...&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
#This is what makes the scene update itself constantly:&lt;br /&gt;
Graphics.transition&lt;br /&gt;
loop do&lt;br /&gt;
Graphics.update&lt;br /&gt;
Input.update&lt;br /&gt;
update #Call the method DEF UPDATE starting below&lt;br /&gt;
if $scene != self&lt;br /&gt;
break&lt;br /&gt;
end&lt;br /&gt;
end &lt;br /&gt;
&lt;br /&gt;
#Execute when exiting the scene:&lt;br /&gt;
Graphics.freeze&lt;br /&gt;
@window_a1.dispose&lt;br /&gt;
@window_a2.dispose&lt;br /&gt;
@window_a3.dispose&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
#--------------------------------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
def update&lt;br /&gt;
&lt;br /&gt;
@window_a2.update #menu&lt;br /&gt;
&lt;br /&gt;
if Input.trigger?(Input::B) #Press ESCAPE to exit&lt;br /&gt;
$game_system.se_play($data_system.cancel_se)&lt;br /&gt;
$scene = Scene_Map.new&lt;br /&gt;
$game_map.autoplay #Because we play music in the menu...&lt;br /&gt;
end &lt;br /&gt;
&lt;br /&gt;
end&lt;br /&gt;
#--------------------------------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
#Options Method Start Here:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
#--------------------------------------------------------------------------------------------------------&lt;br /&gt;
end #of the Scene !&lt;br /&gt;
&lt;br /&gt;
#===================================================&lt;br /&gt;
# �-� CLASS Scene_Chapter3_menu1 ENDS (Simple Horizontal Menu)&lt;br /&gt;
#===================================================&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
#===================================================&lt;br /&gt;
# �-� CLASS Window_a1 BEGINS (Content Window)&lt;br /&gt;
#===================================================&lt;br /&gt;
class Window_a1 &amp;lt; Window_Base&lt;br /&gt;
&lt;br /&gt;
def initialize &lt;br /&gt;
super(0, 0, 440,380)&lt;br /&gt;
self.contents = Bitmap.new(width-32, height-32)&lt;br /&gt;
self.contents.font.name = &quot;Tahoma&quot;  &lt;br /&gt;
self.contents.font.size = 20&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
def update(content) #Receive the argument from the menu&lt;br /&gt;
if content == false #If false, don&#39;t show content&lt;br /&gt;
self.contents.clear &lt;br /&gt;
self.contents.draw_text(0, 0, 120, 32, &quot;No Content...&quot;)&lt;br /&gt;
else #else, if true, show it...&lt;br /&gt;
self.contents.clear &lt;br /&gt;
self.contents.draw_text(0, 0, 440, 32, &quot;SHOW CONTENT&quot;)   &lt;br /&gt;
end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
end &lt;br /&gt;
#===================================================&lt;br /&gt;
# �-� CLASS Window_a1 ENDS (Content Window)&lt;br /&gt;
#===================================================&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
#===================================================&lt;br /&gt;
# �-� CLASS Window_a3 BEGINS (Help Window)&lt;br /&gt;
#===================================================&lt;br /&gt;
class Window_a3 &amp;lt; Window_Base  &lt;br /&gt;
&lt;br /&gt;
def initialize &lt;br /&gt;
super(0, 0, 640,100)&lt;br /&gt;
self.contents = Bitmap.new(width-32, height-32)&lt;br /&gt;
self.contents.font.name = &quot;Tahoma&quot;  &lt;br /&gt;
self.contents.font.size = 20&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
def update(help_text) #Receive argument, show relevant help text in window&lt;br /&gt;
self.contents.clear #Clear the content before displaying new data !&lt;br /&gt;
self.contents.draw_text(0, 0, 440, 32, help_text) #show the content of &quot;help_text&quot; variable&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
end &lt;br /&gt;
#===================================================&lt;br /&gt;
# �-� CLASS Window_a3 ENDS (Help Window)&lt;br /&gt;
#===================================================&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;Este código&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;no funcionará&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;hasta que se agregue&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;al script del menú&lt;/span&gt;&lt;span class=&quot;hps&quot;&gt;&lt;/span&gt;&lt;span&gt;, ya que&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;la&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;ventana no&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;se ha definido aún&lt;/span&gt;&lt;span&gt; dentro del propio&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;menú.&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Así que sigue leyendo&lt;/span&gt;&lt;span&gt;,&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;y&amp;nbsp; prueba&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;tratando de insertar el script dentro del menu&lt;/span&gt;&lt;span class=&quot;hps&quot;&gt;.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;Ahora&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;hay que añadir&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;las cosas&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;que queremos en&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;esa escena.&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Primero lo primero,&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;vamos a diseñar&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;el menú&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;y lo que&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;hará.&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Así que aquí va&lt;/span&gt;&lt;span class=&quot;&quot;&gt;:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;Opción 1:&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;&lt;/span&gt;&lt;/span&gt;ITEMS &lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;-&amp;gt;&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;se abrirá&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Scene_Items&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;br /&gt; &lt;span class=&quot;hps&quot;&gt;Opción 2:&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;&lt;/span&gt;&lt;/span&gt;INFOS&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;-&amp;gt;&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Mostrará&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;un texto en&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;la ventana de contenido&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;br /&gt; &lt;span class=&quot;hps&quot;&gt;Opción 3:&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;&lt;/span&gt;&lt;/span&gt;MUSIC A&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;&lt;/span&gt;&lt;span class=&quot;hps&quot;&gt; -&lt;/span&gt;&lt;span class=&quot;&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;se puede reproducir&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;música de fondo&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;A.&lt;/span&gt;&lt;br /&gt; &lt;span class=&quot;hps&quot;&gt;Opción 4:&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;&lt;/span&gt;&lt;/span&gt;MUSIC B&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;&lt;/span&gt;&lt;span class=&quot;hps&quot;&gt;&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;-&amp;gt;&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;se puede reproducir&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;música de fondo&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;B.&lt;/span&gt;&lt;br /&gt; &lt;span class=&quot;hps&quot;&gt;Opción 5:&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;&lt;/span&gt;&lt;/span&gt;EXIT&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;-&amp;gt;&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;saldrá&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;como&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;ESCAPE&lt;/span&gt;&lt;span class=&quot;hps&quot;&gt;.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;Ahora que sabemos&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;lo que vamos a&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;hacer, podemos&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;seguir adelante y&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;crear la&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;estructura básica para&lt;/span&gt;&lt;span class=&quot;hps&quot;&gt; el&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;menú de la derecha&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;y pulir&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;cada función&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;(método) para&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;las&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;opciones más adelante&lt;/span&gt;&lt;span class=&quot;&quot;&gt;.&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;En primer lugar,&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;vamos a añadir&lt;/span&gt;las &lt;span class=&quot;hps&quot;&gt;en el&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;diseño del &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps atn&quot;&gt;&quot;&lt;/span&gt;menú &lt;span class=&quot;hps&quot;&gt;horizontal&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;simple&lt;/span&gt;&quot;&lt;/span&gt;&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;&lt;/span&gt;&lt;span class=&quot;hps&quot;&gt;&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;en nuestro método de la&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;escena&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;principal.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt; &lt;span class=&quot;hps&quot;&gt;Así que&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;abrir la página&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;que ha creado anteriormente&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps atn&quot;&gt;&quot;&lt;/span&gt;menú &lt;span class=&quot;hps&quot;&gt;horizontal&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;simple&lt;/span&gt;&quot;&lt;/span&gt;&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;&lt;/span&gt;&lt;span class=&quot;&quot;&gt; y vaya&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;a la línea&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;# 30.&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Vamos a añadir&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;nuestro menú de&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;allí,&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;pegue el siguiente código&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;en la línea&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;# 30:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;display: block; margin: 1px auto; width: 95%;&quot;&gt;

&lt;div style=&quot;color: grey; display: block; font-family: Verdana, arial, helvetica, sans-serif; font-size: 12px; font-weight: bold; padding: 1px;&quot;&gt;

 Code:
&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 1px solid gray; color: #006600; display: block; font-family: Courier new, courier, mono; font-size: 12px; padding: 1px;&quot;&gt;

&lt;br /&gt;
s1 = &quot;Items&quot;&lt;br /&gt;
  s2 = &quot;Infos&quot;&lt;br /&gt;
  s3 = &quot;Music A&quot;&lt;br /&gt;
  s4 = &quot;Music B&quot;&lt;br /&gt;
  s5 = &quot;Exit&quot;&lt;br /&gt;
  @window_a2 = Window_Command.new(200, [s1,s2,s3,s4,s5]) #Remember, 200 is the Width&lt;br /&gt;
  @window_a2.y=100 #Set a position for the menu other than 0:0&lt;br /&gt;
  @window_a2.height=380 #Force a new height for the menu window&lt;br /&gt;
  @window_a2.index = @menu_index&lt;br /&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;Para&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;empezar,&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;ahora que&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;la escena&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;va a funcionar,&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;crear un evento&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;en el mapa y&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;añadir el&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;siguiente llamar script:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;display: block; margin: 1px auto; width: 95%;&quot;&gt;

&lt;div style=&quot;color: grey; display: block; font-family: Verdana, arial, helvetica, sans-serif; font-size: 12px; font-weight: bold; padding: 1px;&quot;&gt;

 Code:
&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 1px solid gray; color: #006600; display: block; font-family: Courier new, courier, mono; font-size: 12px; padding: 1px;&quot;&gt;

&lt;br /&gt;
$scene=Scene_Chapter3_menu1.new&lt;br /&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;&amp;nbsp;&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;&lt;/span&gt;&lt;span class=&quot;hps&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;Si vas&lt;/span&gt;&lt;span class=&quot;hps&quot;&gt; a hablar con&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;el evento&lt;/span&gt;&lt;span&gt;, este te mostrara&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;la escena, pero&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;el menú no hara nada, mas que &lt;/span&gt;&lt;span class=&quot;hps&quot;&gt;&lt;/span&gt;&lt;span class=&quot;hps&quot;&gt; pulsar&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;ESCAPE para&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;salir de la&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;escena y&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;volver al mapa&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;Ahora vamos a añadir&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;la visualización del texto&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;de ayuda para&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;el menú&lt;/span&gt;&lt;span&gt;.&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;El texto&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;que se mostrará&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;en la&lt;/span&gt; &lt;span class=&quot;hps atn&quot;&gt;ventana de ayuda (&lt;/span&gt;&lt;span&gt;@&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;window_a3&lt;/span&gt;&lt;span&gt;)&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;se cambiará&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;dependiendo de&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;la posición del cursor&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;en el menú&lt;/span&gt;&lt;span&gt;.&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Para permitir esto,&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;tenemos que&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;saber siempre&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;donde está el cursor&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;en el menú&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;....&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Así que tenemos que&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;agregar el código&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;en la&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;actualización de la&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;definición&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;de nuestra escena&lt;/span&gt;&lt;span&gt;,&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;ya que este&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;es el método que&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;está siendo constantemente&lt;/span&gt; &lt;span class=&quot;hps atn&quot;&gt;&quot;&lt;/span&gt;&lt;span&gt;llamada&quot;&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;mientras estamos en&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;nuestra escena.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;Así que&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;en la&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;definición&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;de actualización&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;(todavía en&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;la &lt;/span&gt;&lt;/span&gt;Scene Class&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;&lt;/span&gt;&lt;span class=&quot;hps&quot;&gt;&lt;/span&gt;&lt;span class=&quot;&quot;&gt;!&lt;/span&gt;&lt;span class=&quot;&quot;&gt;), Y&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;justo debajo de&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;@window_a2.update &lt;/span&gt;&lt;span class=&quot;short_text&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;agregue este código:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;display: block; margin: 1px auto; width: 95%;&quot;&gt;

&lt;div style=&quot;color: grey; display: block; font-family: Verdana, arial, helvetica, sans-serif; font-size: 12px; font-weight: bold; padding: 1px;&quot;&gt;

 Code:
&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 1px solid gray; color: #006600; display: block; font-family: Courier new, courier, mono; font-size: 12px; padding: 1px;&quot;&gt;

&lt;br /&gt;
#THIS IS FOR THE HELP DISPLAY WINDOW:&lt;br /&gt;
case @window_a2.index #window_a2 is the menu... index is it&#39;s cursor position !&lt;br /&gt;
  when 0 #Remember that the cursor position start at 0, because it&#39;s an Array !!&lt;br /&gt;
    @window_a3.update(&quot;Open the item selection window&quot;) #item - s1&lt;br /&gt;
  when 1&lt;br /&gt;
    @window_a3.update(&quot;Display some info in the content window&quot;) #infos -s2&lt;br /&gt;
  when 2&lt;br /&gt;
    @window_a3.update(&quot;Play BGM A&quot;) #Music A - s3&lt;br /&gt;
  when 3&lt;br /&gt;
    @window_a3.update(&quot;Play BGM B&quot;) #Music B - s4&lt;br /&gt;
  when 4&lt;br /&gt;
    @window_a3.update(&quot;Exit the menu and return to the map&quot;) #Exit - s5&lt;br /&gt;
end&lt;br /&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;Ahora, si&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;pruebas&lt;/span&gt;&lt;span class=&quot;hps&quot;&gt; una vez más&lt;/span&gt;&lt;span&gt;, verá&lt;/span&gt;s &lt;span class=&quot;hps&quot;&gt;que al mover&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;el cursor&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;de opción en&lt;/span&gt;&lt;span class=&quot;hps&quot;&gt; opción&lt;/span&gt;&lt;span&gt;,&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;la ventana de ayuda&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;en la parte superior&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;se mostrará la&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;información sobre herramientas&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;relevantes para&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;la opción seleccionada.&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;¿Cómo&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;se hace?&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Bueno,&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;si no lo ha&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;adivinado por&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;mirar el código&lt;/span&gt;&lt;span&gt;, siga leyendo:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt; &lt;span class=&quot;hps&quot;&gt;Nuestra&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;ventana de ayuda&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;se denomina&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Window_a3&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;...&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;aquí está el código&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;para ello:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;display: block; margin: 1px auto; width: 95%;&quot;&gt;

&lt;div style=&quot;color: grey; display: block; font-family: Verdana, arial, helvetica, sans-serif; font-size: 12px; font-weight: bold; padding: 1px;&quot;&gt;

 Code:
&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 1px solid gray; color: #006600; display: block; font-family: Courier new, courier, mono; font-size: 12px; padding: 1px;&quot;&gt;

&lt;br /&gt;
1  class Window_a3 &amp;lt; Window_Base&lt;br /&gt;
2&lt;br /&gt;
3  def initialize&lt;br /&gt;
4   super(0, 0, 640,100)&lt;br /&gt;
5   self.contents = Bitmap.new(width-32, height-32)&lt;br /&gt;
6   self.contents.font.name = &quot;Tahoma&quot;&lt;br /&gt;
7   self.contents.font.size = 20&lt;br /&gt;
8  end&lt;br /&gt;
9&lt;br /&gt;
10 def update(help_text) #Receive argument, show relevant help text in window&lt;br /&gt;
11   self.contents.clear #Clear the content before displaying new data !&lt;br /&gt;
12   self.contents.draw_text(0, 0, 440, 32, help_text) #show the content of &quot;help_text&quot;&lt;br /&gt;
variable&lt;br /&gt;
13 end&lt;br /&gt;
14&lt;br /&gt;
15 end&lt;br /&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;Línea&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;n º 1&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;a 9 no&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;debería ser un problema&lt;/span&gt;&lt;span&gt;, si usted&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;no los entiende&lt;/span&gt;&lt;span&gt;, trate de&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;leer el capítulo&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;1 y 2,&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;que&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;trata de&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;ellos.&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;La línea 10&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;crea&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;un nuevo método llamado&lt;/span&gt; &lt;span class=&quot;hps atn&quot;&gt;&quot;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;update&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;que se puede llamar&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;desde nuestro&lt;/span&gt; &lt;span class=&quot;hps atn&quot;&gt;menú (&lt;/span&gt;&lt;span&gt;de nuestra escena&lt;/span&gt;&lt;span&gt;) para actualizar&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;lo que está escrito&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;en la parte superior&lt;/span&gt;&lt;/span&gt;(help_text)&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;&lt;/span&gt;&lt;span&gt;.&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Estamos pidiendo&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;un argumento que&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;hemos llamado&lt;/span&gt; &lt;span class=&quot;hps atn&quot;&gt;&quot;&lt;/span&gt;&lt;span&gt;help_text&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;y nos&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;muestra&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;que el argumento&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;en la pantalla&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;en la línea #&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;12 ...&lt;/span&gt;&lt;br /&gt;&lt;br /&gt; &lt;span class=&quot;hps&quot;&gt;Si nos fijamos en&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;nuestro código&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;en el menú,&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;podemos ver&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;que cada&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;línea &lt;/span&gt;&lt;span class=&quot;hps&quot;&gt;cambia el&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;texto que aparece en&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;la ventana de ayuda&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;@window_a3.update(&quot;New Text&quot;)&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;@&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;window_a3&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;es nuestro objeto&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;que hemos creado en&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;la&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;definición&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;principal&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;de nuestra escena&lt;/span&gt;&lt;span&gt;,&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;y la actualización&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;es el método&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;que hemos creado en&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;nuestra clase&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Window_a3&lt;/span&gt; &lt;span class=&quot;hps atn&quot;&gt;(&lt;/span&gt;&lt;span&gt;explicado anteriormente).&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Lo que sigue&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;es el argumento&lt;/span&gt; &lt;span class=&quot;hps atn&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;&quot;&gt;el texto de ayuda&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;para mostrar&lt;/span&gt;&lt;span&gt;)&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;que se envía&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;a ese método&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;de actualización.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;Todos estamos de acuerdo&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;que un menú&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;sin ningún tipo de&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;función no&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;es en realidad un&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;menú completo&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;...&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Así que ahora&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;es el momento de&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;añadir las&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;funciones.&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;No es&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;tan complicado&lt;/span&gt;&lt;span&gt;, necesitamos&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;un método&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;para cada opción&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;que tenemos en&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;el menú&lt;/span&gt;&lt;span&gt;, en este caso&lt;/span&gt;&lt;span&gt;, tenemos&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;5 opciones&lt;/span&gt;&lt;span&gt;, por lo que&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;tendrá que crear&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;cinco&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;métodos.&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Así que&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;vamos a&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;añadir&lt;/span&gt;los &lt;span class=&quot;hps&quot;&gt;en este momento&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt; &lt;span class=&quot;hps&quot;&gt;Recuerda el&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;lugar donde se&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;añadiste&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;el código de&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;la pantalla&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;de ayuda&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;antes, en&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;definición&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;de actualización&lt;/span&gt; &lt;span class=&quot;hps atn&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;&quot;&gt;below@window_a2.update&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span class=&quot;&quot;&gt;?&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Pues bien,&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;el método que&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;tendrás que agregar&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;en la escena&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;va justo despues del &quot;def update&quot;&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Sólo tienes que buscar&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;las siguientes observaciones&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;para encontrar exactamente&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;donde:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;display: block; margin: 1px auto; width: 95%;&quot;&gt;

&lt;div style=&quot;color: grey; display: block; font-family: Verdana, arial, helvetica, sans-serif; font-size: 12px; font-weight: bold; padding: 1px;&quot;&gt;

 Code:
&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 1px solid gray; color: #006600; display: block; font-family: Courier new, courier, mono; font-size: 12px; padding: 1px;&quot;&gt;

&lt;br /&gt;
#Options Method Start Here:&lt;br /&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;Ahora&lt;/span&gt;&lt;span&gt;,&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;debajo de esa línea&lt;/span&gt;&lt;span&gt;,&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;pega este código&lt;/span&gt;&lt;span&gt;,&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;te lo explicaré&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;después.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;display: block; margin: 1px auto; width: 95%;&quot;&gt;

&lt;div style=&quot;color: grey; display: block; font-family: Verdana, arial, helvetica, sans-serif; font-size: 12px; font-weight: bold; padding: 1px;&quot;&gt;

 Code:
&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 1px solid gray; color: #006600; display: block; font-family: Courier new, courier, mono; font-size: 12px; padding: 1px;&quot;&gt;

&lt;br /&gt;
def item #s1, menu_index=0&lt;br /&gt;
  $game_system.se_play($data_system.decision_se) #play an SE&lt;br /&gt;
  $scene = Scene_Item.new #Syntax to change scene&lt;br /&gt;
end  &lt;br /&gt;
&lt;br /&gt;
def infos #s2, menu_index=1&lt;br /&gt;
@window_a1.update(true)&lt;br /&gt;
end  &lt;br /&gt;
&lt;br /&gt;
def music_a #s3, menu_index=2&lt;br /&gt;
  Audio.bgm_play(&quot;Audio/BGM/song_a.mid&quot;, 100, 100) #Play custom BGM&lt;br /&gt;
end &lt;br /&gt;
&lt;br /&gt;
def music_b #s4, menu_index=3&lt;br /&gt;
  Audio.bgm_play(&quot;Audio/BGM/song_b.mid&quot;, 100, 100) #Play custom BGM&lt;br /&gt;
end &lt;br /&gt;
&lt;br /&gt;
def exit #s5, menu_index=4&lt;br /&gt;
  $game_system.se_play($data_system.cancel_se) #play an SE&lt;br /&gt;
  $scene = Scene_Map.new #Syntax to change scene&lt;br /&gt;
  $game_map.autoplay #Because we play music in the menu...&lt;br /&gt;
end&lt;br /&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;span style=&quot;text-decoration: underline;&quot;&gt;Side Note:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;short_text&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;Utilizando el método&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;de&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;las opciones del menú&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;Tu no necesitas&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;(no es&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;necesario) para&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;usar el método&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;para cada&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;menú de opciones,&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;especialmente si son&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;sencillos y cortos&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;como este&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;ejemplo de menú&lt;/span&gt;&lt;span&gt;.&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Pero&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;me decidí a&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;mostrar&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;de esa manera&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;porque a veces&lt;/span&gt;&lt;span&gt;,&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;la opción de menú&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;podría tener&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;un funcionamiento mas larga&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;y complicada,&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;y en este caso&lt;/span&gt;&lt;span&gt;, es mejor&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;para ellos&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;se descomponen en&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;un método diferente.&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Si&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;quieres probarlo&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;sin necesidad de utilizar&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;el método&lt;/span&gt;&lt;span class=&quot;&quot;&gt;, sólo tiene que&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;reemplazar cada&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;llamada al método&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;desde dentro de la&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;&quot;Declaración de&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Caso&lt;/span&gt;&quot; &lt;span class=&quot;hps&quot;&gt;por el contenido de&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;cada método&lt;/span&gt;&lt;span&gt;, y&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;voilà&lt;/span&gt;&lt;span&gt;?&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;.&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Yo prefiero usar&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;el método&lt;/span&gt;&lt;span&gt;,&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;de esa manera&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;es mejor&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;clasificados&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt; &lt;span class=&quot;hps&quot;&gt;Una pequeña nota&lt;/span&gt;&lt;span&gt;,&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;las&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;líneas que comienzan con&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Audio.bgm_play&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;tiene que&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;estar configurado con&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;los nombres de sus&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;propios archivos de audio&lt;/span&gt;&lt;span&gt;, presentes en&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Audio \&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;BGM&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;si quiere otro archivo, cambie el nombre que esta entre parentesis&lt;span class=&quot;hps&quot;&gt;.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt; &lt;span class=&quot;hps&quot;&gt;No hay mucho&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;que explicar&lt;/span&gt;&lt;span&gt;,&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;ya que estas son&lt;/span&gt;&lt;span class=&quot;hps&quot;&gt;&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;operaciones muy simples&lt;/span&gt;&lt;span&gt;.&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;No creo que&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;tengo que explicar&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;el propio código.&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Cada uno de&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;los&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;métodos&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;serán llamados por&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;un nuevo código&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;que vamos a añadir&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;en la&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;actualización de la&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;definición&lt;/span&gt;&lt;span class=&quot;&quot;&gt;, justo debajo del&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;código que&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;añadido a la&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;ventana de la pantalla&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;de ayuda.&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Por lo tanto&lt;/span&gt;&lt;span&gt;, busque este&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;código en&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;&quot;Def&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;update&quot;&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;de nuestra&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;escena:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;display: block; margin: 1px auto; width: 95%;&quot;&gt;

&lt;div style=&quot;color: grey; display: block; font-family: Verdana, arial, helvetica, sans-serif; font-size: 12px; font-weight: bold; padding: 1px;&quot;&gt;

 Code:
&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 1px solid gray; color: #006600; display: block; font-family: Courier new, courier, mono; font-size: 12px; padding: 1px;&quot;&gt;

&lt;br /&gt;
@window_a3.update(&quot;Exit the menu and return to the map&quot;) #Exit - s5&lt;br /&gt;
end&lt;br /&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;short_text&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;Y&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;a continuación&lt;/span&gt;&lt;span&gt;, agregue&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;el siguiente código:&lt;/span&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;display: block; margin: 1px auto; width: 95%;&quot;&gt;

&lt;div style=&quot;color: grey; display: block; font-family: Verdana, arial, helvetica, sans-serif; font-size: 12px; font-weight: bold; padding: 1px;&quot;&gt;

 Code:
&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 1px solid gray; color: #006600; display: block; font-family: Courier new, courier, mono; font-size: 12px; padding: 1px;&quot;&gt;

&lt;br /&gt;
#THIS IS FOR THE OPTION FUNCTIONS:&lt;br /&gt;
if Input.trigger?(Input::C) #Do the following if ENTER is pressed...&lt;br /&gt;
case @window_a2.index #window_a2 is the menu... index is it&#39;s cursor position !&lt;br /&gt;
  when 0 #Remember that the cursor position start at 0, because it&#39;s an Array !!&lt;br /&gt;
    item #item - s1&lt;br /&gt;
  when 1&lt;br /&gt;
    infos #infos -s2&lt;br /&gt;
  when 2&lt;br /&gt;
    music_a #Music A - s3&lt;br /&gt;
  when 3&lt;br /&gt;
    music_b #Music B - s4&lt;br /&gt;
  when 4&lt;br /&gt;
    exit #Exit - s5&lt;br /&gt;
  end  &lt;br /&gt;
end&lt;br /&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;

&lt;br /&gt;
Ahora si pruebas el menu, veras que este se actualiza con las opciones antes indicadas, por lo tanto, si deseas mostrar otra cosa en lugar de texto, puedes modificar el codigo a tu gusto, el cual, es el objetivo de este tutorial despues de todo.&lt;br /&gt;
&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;es&quot;&gt;&lt;span class=&quot;hps&quot;&gt;&lt;/span&gt;&lt;span class=&quot;hps&quot;&gt;&lt;/span&gt;&lt;br /&gt; &lt;b&gt;&lt;span class=&quot;hps&quot; style=&quot;color: red;&quot;&gt;Yo no tengo&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;hps&quot; style=&quot;color: red;&quot;&gt;el tiempo para seguir&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;hps&quot; style=&quot;color: red;&quot;&gt;haciendo&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;hps&quot; style=&quot;color: red;&quot;&gt;tutorial en&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt; &lt;/span&gt;&lt;/b&gt;&lt;span class=&quot;hps&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;el momento ..&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Esto fue lo ultimo que puso Dubealex, al parecer no continuo con el tutorial, ya que no he encontrado la parte 4, asumo que tendre que continuar yo la parte 4...&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://taller-maker.blogspot.com/feeds/8196772894788559136/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://taller-maker.blogspot.com/2012/04/rgss-y-ruby-capitulo-3.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8551798844080929407/posts/default/8196772894788559136'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8551798844080929407/posts/default/8196772894788559136'/><link rel='alternate' type='text/html' href='http://taller-maker.blogspot.com/2012/04/rgss-y-ruby-capitulo-3.html' title='RGSS y Ruby - Capitulo 3'/><author><name>tenshi98</name><uri>http://www.blogger.com/profile/06461952114644591440</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgMYLI_10CchcS8kNq5rxFCb-2qgfYgYV8MlGNlr-L_ZsMxcoL6C9ytoDmsLM05VJC6-1jMPVIZtoNxo_fHPevstQM3dgJvyQ8gLq4Dr4bIAGs3R3aaBtaJPz8E1e1How/s220/Albert_Wesker___Resident_Evil_by_megakay.jpg'/></author><thr:total>0</thr:total></entry></feed>