#Problem with player transfer.
1 messages · Page 1 of 1 (latest)
I dont have problems with rooms, I got problems with coordinates
I know, but I cannot emphasis this enough
You will have a bad time if you save rooms as you are doing right now
As for saving
How are you doing saving?
ini_open("save.ini");
ini_write_real("position","room",room)
ini_write_real("position","x",ob_player.x)
ini_write_real("position","y",ob_player.y)
ini_write_real("cutscenes","scene_1",global.cutscene_1)
ini_close();
You never saved anything under name
if (ini_key_exists("status", "name")) {
So this fails
Every time
I'd honestly just not have that there
angle[0]=lerp(angle[0],0,0.5)
if(num[0]=0){
angle[0]-=random(1)-random(1);
scale[0]+=0.01;
alpha[0] +=0.05;
if(alpha[0]>=1){
ini_open("save.ini")
ini_write_string("status","name",text[0])
ini_close();
room_goto_game(R_testGame_1)
}
}
I Save name Right here
in step
ini_write_string("status","name",text[0])
What's in text[0], why is it being saved under name
Why isn't it being saved with the room and x/y position?
Cuze it being saved in this code
^
Event
Object
Where
Wait a sec
Here save Function ini_open("save.ini");
ini_write_real("position","room",room)
ini_write_real("position","x",ob_player.x)
ini_write_real("position","y",ob_player.y)
ini_write_real("cutscenes","scene_1",global.cutscene_1)
ini_close();
if(dialog=1){
draw_dialog(1,"*You take a quick nap near this strange looking stone.",snd_text,1,0.75)
}
if(dialog=2){
if(global.letters=0){
**save();
}
draw_dialog(1,"*You are save",snd_text,1,0.75)
}
if(dialog==3){
if(global.letters=0){
audio_play_sound(snd_save_point,1,0)
}
dialog_over()
} this is where I stated it
yes