Wednesday, 2 March 2016

Class 16 - Two Sets of Controls

Post 99


Today I wanted to learn more about how Scripts work in GML. As it turns out they are basically just another way to organize your over complicated code. How it works is you create a "Page of Code" and put in everything you want, in this case movement. You name the code something like "Scr_movement_code". Then you go into the location you want the script page to be called, and put in the name "Scr_movement_code();". This calls the script to that location and acts exactly how it would if it was in the page. So it really doesn't do a lot other then organize things neatly into their own sections, which is something I am very much into! 
Another thing I played around with was adding multiple control sets, which was incredibly easy to do. Sadly it is so easy its almost not even worth the time to blog. Tomorrow I will continue to work with code and scripts trying to further develop a little miniature game! I also might do some work on animations or sprites! Because we need a new background and a lot of new sprites!  
  

No comments:

Post a Comment