Jump to content


Photo

Old Code to Game Maker Studio Code


  • Please log in to reply
3 replies to this topic

#1 Slulego

Slulego

    GMC Member

  • New Member
  • 6 posts
  • Version:GM8

Posted 23 April 2012 - 06:02 PM

OK so i made this game/program with game maker 8 which works great.

I little wile later i was exited that i was able to download Game Make Studio Beta for FREE!

Then i tried importing my old ".gmk" project ... it game me a warning that i might have to change a few things... so i clicked ok.
Importing worked great but when i tried to run it it came up with this arror:


In object obj_Exit, event Left Pressed, action 1 at line 1: Obsolete function: message_background
In object obj_Exit, event Close Button, action 1 at line 1: Obsolete function: message_background
In object obj_Save, event Left Pressed, action 1: Unexpected symbol in expression.
In object obj_Open, event Left Pressed, action 1: Unexpected symbol in expression.
In object obj_Export, event Alarm 0, action 1 at line 1: Obsolete function: get_save_filename
In object obj_Reset, event Left Pressed, action 1 at line 1: Obsolete function: message_background
In object obj_Clear, event Left Pressed, action 1 at line 1: Obsolete function: message_background


What do i need to change "MESSAGE_BACKGROUND" to?
Or is that not the problem, I tried changing the name of my background image but it still gave me an error.



message_background(background_Message)
message_caption(true,"Exit?")
message_alpha(50)
if show_questiom("Are You Shure You Want To Exit?") = 1
{
game_end()
}


Please help ... THANKS!
  • 0

#2 time-killer-games

time-killer-games

    GMC Member

  • Banned Users
  • 539 posts
  • Version:GM:Studio

Posted 23 April 2012 - 06:41 PM

obsolete functions are no longer used. which means you have to remove that function all together.

try this script, i think it should help you while working with studio, it mimics message boxes...
/*draw_message_box(width,height,
msg_background, msg_button_sprite, message_string)*/

depth=-9999

xpos=window_get_width()/2-background_get_width(argument2)/2

ypos=window_get_height()/2-background_get_height(argument2)/2

draw_background(xpos,ypos,argument2)

draw_text(xpos+10,ypos+10, argument4)

draw_sprite(
xpos+background_get_width(argument2)-10-sprite_get_width(argument3)...

im gonna edit this to add more code and fix some errors when i have access to a computer. its tedious for me to type code from the top of my head using an ipod that always glitches.

Edited by time-killer-games, 23 April 2012 - 06:42 PM.


#3 Slulego

Slulego

    GMC Member

  • New Member
  • 6 posts
  • Version:GM8

Posted 24 April 2012 - 03:51 PM

THANKS for response!

Its a great idea... just the idea will help, i think i can do the rest.

AND i'm guessing argument2 is a background image right?

Thanks.
  • 0

#4 time-killer-games

time-killer-games

    GMC Member

  • Banned Users
  • 539 posts
  • Version:GM:Studio

Posted 24 April 2012 - 06:50 PM

^yep. :)




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users