J
Jonathan E. Styles
Guest
I am rather new to GameMaker: Studio and am not very familiar with the multitude of functions that are built-in. However, I am generating a scripted Menu and I am dynamically drawing sprites into my object.
My goal is to create events to handle mouseover and lmb clicked scenarios, changing the sprite by image index, et cetera.
I have attempted to use multiple index function calls, but I just can't seem to figure out how to handle the sprite once it has been created and put into the object / room. Anything someone could contribute to at least point me in the right direction would be greatly helpful.
The overall goal is to create an overlay menu (pause menu) that pops-up over the game and provides standard functions (Resume, Save, Load, Options, Exit). How can I essentially create GUI buttons out of these sprites and create handlers for their actions dynamically?
Here is my current creation code:
I have attempted to dynamically create an instance, but it kept getting drawn beneath the menu background element and I still couldn't get the "rollover" effect to work for me.
No need to be brief, I have lots of programming experience, but I just feel stumped at this point. If you require more information, please let me know!
Thanks!
My goal is to create events to handle mouseover and lmb clicked scenarios, changing the sprite by image index, et cetera.
I have attempted to use multiple index function calls, but I just can't seem to figure out how to handle the sprite once it has been created and put into the object / room. Anything someone could contribute to at least point me in the right direction would be greatly helpful.
The overall goal is to create an overlay menu (pause menu) that pops-up over the game and provides standard functions (Resume, Save, Load, Options, Exit). How can I essentially create GUI buttons out of these sprites and create handlers for their actions dynamically?
Here is my current creation code:
Code:
draw_sprite(spr_MenResume, 0, button_draw_x, button_draw_y);
No need to be brief, I have lots of programming experience, but I just feel stumped at this point. If you require more information, please let me know!
Thanks!