Author Topic: Touch Saves  (Read 1994 times)

Swordslinger

  • The Kid
  • Posts: 375
  • OS:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Chrome 29.0.1547.76 Chrome 29.0.1547.76
    • View Profile
  • Playstyle: Keyboard
Touch Saves
« on: September 22, 2013, 01:32:32 AM »
So yes i'm working on a little game maker project with I Wanna Be The Engine Yutuu Edition, and I want to make Touch Saves, where as a touch save like in Break Through the 7 Trials, if you come in contact with the save, it saves the game instead of shooting it. How exactly do you do this?
A Random Signature

Starz0r

  • Owner
  • The Kid
  • Administrator
  • Posts: 343
  • Hall Of Fame
  • OS:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Chrome 29.0.1547.76 Chrome 29.0.1547.76
    • View Profile
  • Playstyle: Keyboard
Re: Touch Saves
« Reply #1 on: September 22, 2013, 01:43:23 AM »
So yes i'm working on a little game maker project with I Wanna Be The Engine Yutuu Edition, and I want to make Touch Saves, where as a touch save like in Break Through the 7 Trials, if you come in contact with the save, it saves the game instead of shooting it. How exactly do you do this?

Try to use your brain, its not that hard. :Kappa:

Change bulletCollision event to playerCollision event is simplest way to get Touch Save effect, I'm sure there are other ways but if you want the exact way done in 7 Trails just decompile it. :FrankerZ:

lemonxreaper

  • Administrator
  • Spike Dodger
  • Posts: 222
  • Do you even needle?
  • OS:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Chrome 29.0.1547.76 Chrome 29.0.1547.76
    • View Profile
Re: Touch Saves
« Reply #2 on: September 22, 2013, 03:41:49 AM »
I would recommend using touch saves which you press S when over to save instead since standard touch saves are just annoying for the player a times.

I wrote this up for hiddow before so I have it on hand.
Put this code in an end step event

(click to show/hide)

this also fixes saving in the ground on smaller blocks.
 :BloodTrail:
Just pretend I have a cool picture like Zero.
Completed Fangames: httpss://dl.dropboxusercontent.com/u/4678222/Complete%20Fangames.txt

Olivebates

  • Head
  • Alumi
  • Cherry Eater
  • Posts: 89
  • Oh god, why did I make this?
  • OS:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Chrome 29.0.1547.76 Chrome 29.0.1547.76
    • View Profile
    • Tumblr News Feed
  • Playstyle: Keyboard
Re: Touch Saves
« Reply #3 on: September 26, 2013, 07:44:19 AM »

Here's a simple little script which save the game, when the player is touches the object.

Create event of save spot
//variable setup
touch = false;

in step event of the save spot
//check for player collision
if (place_meeting(x, y, oPlayer))
{
    //Check touch variable, so it wont run the code again, until you stop touching it
    if (touch == false)
    {
        touch = true;

        //save the game     
        game_save("Filename.extension");
    }
}
//When not touching
else
{
    //Reset touch variable
    touch = false;
}
« Last Edit: September 26, 2013, 07:47:36 AM by Olivebates »
When you don't know the rules, anything's possible.