![]() However I've copied from the tutorial exactly so I'm not sure its anything to do with this code but somewhere in my existing game. If I extend the animation any longer, it requires that you hold the key down in order to see the rest of it. ![]() So that above is in the create event and below is in the draw gui event:ĭraw_sprite(portrait,portrait_index, port_x, port_y)ĭraw_sprite(namebox, 0, namebox_x, namebox_y)ĪLSO in a different object i have this in a createĭisplay_set_gui_size(global.game_width,global.game_height ago Okay, so it sort of worked, but the only reason it does is because the animation is so fast. Port_y = (global.game_height*0.98) - port_height Port_x = (global.game_width - box_width - port_width) * 0.5 Namebox_height = sprite_get_height(namebox) ![]() Namebox_width = sprite_get_width(namebox) Port_height = sprite_get_height(portrait) Of course sorry! I just wasn't sure what parts to paste. Originally posted by marasovec:It's hard to say without seeing your current code Syntax: gameend ( returncode) Returns: N/A Example: if keyboardcheckpressed ( vkescape) gameend () This would end the game if the player presses the 'escape' key.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |