Fangames > Game Design

A request to everyone making fangames, please use touch z + shoot saves

(1/2) > >>

thebmxbandit11:
The best save is one that you can stand on and press "Z" to save or shoot like this:


I don't think there is any reason every game shouldn't use this along with bullet blockers.  It has all the good parts of both "s-saves" and shoot saves and when you want the player to only be able to save really close then just put bullet blockers around this and it turns into a "s-save", but "s" is replaced by the shoot key.

Here's the code for one:

Create:

--- Code: ---image_speed=0;
saveTimer = -1;
--- End code ---

Step:

--- Code: ---saveTimer -= 1;

--- End code ---

End Step:

--- Code: ---if place_meeting(x,y,bullet){
  //sound_play(saveSound); //optional
if(saveTimer < 0 && instance_exists(player) == true){
  saveTimer = 30;
  image_index = 1;
  image_speed = 0.017;
  saveGame();
}}

//if you don't have global controls then switch the second part to to keyboard_check(ord("Z"))

if place_meeting(x,y,player) and keyboard_check_pressed(global.button4){
 // sound_play(saveSound); //optional
if(saveTimer < 0 && instance_exists(player) == true){
  saveTimer = 30;
  image_index = 1;
  image_speed = 0.017;
  saveGame();
 
}}
--- End code ---

Animation End:

--- Code: ---image_speed=0;
image_index=0;
--- End code ---


Then for bullet blockers just make a 32x32 px object and set in the bullet object an on collide event that just destroys the bullet. 

Wolsk:
I endorse this.

Sudnep:
This was nearly the first thing I did. Sitting in a 32 gap with a save and unable to shoot it was probably the most annoying thing I could think of.

Aelya:
nice

infern0man1:
Yes.

Navigation

[0] Message Index

[#] Next page

Go to full version