• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!
  • Hello [name]! Thanks for joining the GMC. Before making any posts in the Tech Support forum, can we suggest you read the forum rules? These are simple guidelines that we ask you to follow so that you can get the best help possible for your issue.

Question - Code Can I make level editors with games exported with Game Maker Studio 2?

Such as for example:

Room0 Creation Code
Code:
global.whole_code = "";
global.Samus_Room_To_Start_In = room;
global.Samus_Start_X = 15;
global.Samus_Start_Y = 15;
Paste_Text_Object_For_Data
Step Event
Code:
global.whole_code = string(global.Samus_Room_To_Start_In) + round(real(global.Samus_Start_X))) + real(round(global.Samus_Start_Y))))
 

gnysek

Member
You can do it same as in GMS 1.4, you can just optionally add "layer" names to saved map.

However, I don't understand what your code above does, as it merges number into string, which later cannot be exploded again, as there's no spearator character (for example for room 1 and x/y 32/64 result will be 13264 - but it is unreadable back).
 
Top