Jump to content


Photo

Saving and Camera zoom


  • Please log in to reply
6 replies to this topic

#1 Melle1

Melle1

    GMC Member

  • GMC Member
  • 224 posts
  • Version:GM8

Posted 13 October 2011 - 02:41 AM

any other way to save without f5 and f6? i've heard of ini files but dont know how to use them, also in side-scrollers what would be the best way to zoom in out towards say" the main charcter"

im using gm8 lite
  • 0

#2 BattleRifle BR55

BattleRifle BR55

    Moo

  • GMC Member
  • 8294 posts
  • Version:GM7

Posted 13 October 2011 - 02:49 AM

game_save();
game_load();
  • 0

#3 Melle1

Melle1

    GMC Member

  • GMC Member
  • 224 posts
  • Version:GM8

Posted 13 October 2011 - 03:27 AM

game_save();
game_load();


will this allow me to save certain variables instead of states?
  • 0

#4 BattleRifle BR55

BattleRifle BR55

    Moo

  • GMC Member
  • 8294 posts
  • Version:GM7

Posted 13 October 2011 - 06:16 AM

Ah, I missed that part about the ini files.

They're very easy.

ini_open("game.gms"); // Will create the file if it doesn't exist; pick any name and extension you like
ini_write_real("Player", "Health", health); //Read the manual for a more in-depth explanation on reading and writing
ini_close();

  • 0

#5 Melle1

Melle1

    GMC Member

  • GMC Member
  • 224 posts
  • Version:GM8

Posted 14 October 2011 - 03:59 AM

Ah, I missed that part about the ini files.

They're very easy.

ini_open("game.gms"); // Will create the file if it doesn't exist; pick any name and extension you like
ini_write_real("Player", "Health", health); //Read the manual for a more in-depth explanation on reading and writing
ini_close();


Like X says on Command Mission, "Thanks A Lot!" , oh btw any chance I can find that Manual that is referenced on the code, unless its the GM help thingy lol.
  • 0

#6 BattleRifle BR55

BattleRifle BR55

    Moo

  • GMC Member
  • 8294 posts
  • Version:GM7

Posted 14 October 2011 - 04:39 AM

Yeah, that's it. Just search for "ini" and you'll find everything you need.
  • 0

#7 Melle1

Melle1

    GMC Member

  • GMC Member
  • 224 posts
  • Version:GM8

Posted 16 October 2011 - 02:47 AM

cant help but ask , but can i get a small example?

say my object is obj_savedata,

in the Create Event: it activates its elf in the 1st room of the game, to load old data, or create 1st time save data

how would i code it

with one variable: levels

represents how many levels are completed
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users