Monday, February 20, 2017

Gamemaker Day7

Today I learned how to set a score on my game. and i learned a new function call "Global", it apply to everything room and event and action. If Global.points meaning score apply to the game at any point, and others code wont overwrite points this variable. when a object get destroy, my number in the top left will increase 5. also I added when the enemy object goes outside the room, it will get destroy and restart the game.



The next day I'm going to spawning, then spawn object into my game. so that my game could get more enemy object, it wont be just 4 enemy.

No comments:

Post a Comment