Cita de: Silver_light en Septiembre 26, 2012, 10:44:25 PMEsta bien, lo voy a cambiar, va a ser mejor, total no complica nada
Acerca de la funcion maligna(?
Cito: (Lease en inglés)CitarLo he sacado de:www.gmc.yoyogames.com/index.php?showtopic=322492
They make execution of your game slower. When Game Maker starts, it converts all scripted GML into a byte-coded representation, by verifying the syntax, checking the parameters and converting them into something that GM can execute much faster. Your game runs faster because this first step of interpretation of your programming takes place the start of the executable, and not while it is actually running the game. But execute_string() and execute_file() always apply this parsing during the game, when these commands are called. This can introduce a performance drop in your game, especially when used in continuously (step, draw) and semi-continuously (key, collision) triggered events.
Viendo que es una funcion sumamente lenta, suponiendo para juegos más complejos, utilizar Switch no está mal, sin embargo sería engorroso, pero de todas formas no creo que afecte el rendimiento como lo haría execute_string, a menos que tengas miles de Cheat's XD
P/D: por cierto, agregaste nuevamente execute_string() debajo de todo el Switch
Dejé el execute_string abajo... porque me olvide de sacarlo XD