Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //This is how i made the warp room in I Wanna Elecspike.
- //Something to note about this though, Save files you are currently using are going to break if you use this, probably due to them not having the code in the scripts when you first made those saves? either way, once you create new save files those will be good forever unless you change the scripts again. If you already released your game and this is for an update, uh, fuck idk man.
- //In the World object's step event under "function keys" at the very end:
- if keyboard_check_pressed(ord('Insert_Warp_Key_Here'))
- {
- if global.warproom = true
- {
- if instance_exists(objPlayer)
- {
- with objPlayer
- {
- instance_destroy();
- }
- room_goto(Warp_room_goes_here);
- }
- }
- }
- //In the Create event of a random object in the hub room:
- global.warproom = true;
- //In scrInitializeVariables:
- global.warproom = false;
- //In scrLoadGame
- global.warproom = scrReadBytes(f,1);
- //In scrSaveGame
- scrWriteBytes(f,global.warproom,1);
- //That should be it.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement