You can use booleans to keep track of the state of your character, and make sure not to trigger animation changes too often that way. Three variables declared: scale will hold the scaling value of the button, alpha will hold the opacity of the button, and button_speed is the speed at which the button will animate (always keep it under 1). 1 Answer Sorted by: 1 Sounds like you need to set the sprite based on a one-time trigger, like a button press or a similar state change. Make sure the origin of the sprite is at its center. Create an object and assign your button sprite to it. Nicely animated GUI can make your game look a lot better and more professional! What you will learn to make in this tutorial Buttonsįirst of all we’ll create a button. In this little tutorial we’ll make some animated GUI elements in GML: buttons and menu stuff.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |