• Hey! Guest! The 39th GMC Jam will take place between November 26th, 12:00 UTC and November 30th, 12:00 UTC. Why not join in! Click here to find out more!

replace

  1. jobjorgos

    GMS 2.3+ How can I mass replace parts of a script in GM2.3 like in GameMaker 1.4?

    In GameMaker 1.4 you could replace every var 'score_fox' in the whole script to var 'score_horse' in just 1 sec with the build-in tool. Is there some similar kind of tool in GameMaker 2.3? What is the name of it, and where can I find it?
  2. hughrock18

    GMS 2 [SOLVED] ds_list_mark_as_ behavior question

    Hello fellow devs! I am building a complicated save system (will be so much fun when done), and part of my system relies on the use of ds_list_copy (ex. copy the "char_data_list" to "var _temp_list". Grab one of the many ds_maps held by the list. Change values of said map, and then save to...
  3. Daniel Mallett

     Advanced search and replace functions

    This a fairly generic non-programming specific question. I hope this is in the correct category. I apologize if not. The search and replace function within GMS is fairly straight forward. The only extra option you have is to search case sensitive, that's about it. Does anyone have any...
  4. JND_3004

    GMS 2 Text is deleted after new object

    Hi Guys, I have three test objects each with a draw event. If one of the objects is set, the text is also set, but the text of object 1 is deleted as soon as object 2 is placed. What is my mistake? draw_self(); draw_set_font(fnt_CourierNew_Bold); // floor name draw_text(global.lastFloorNameX...
  5. FeetUpGaming

    Replace multiple characters in a string

    Hey having trouble figuring how to replace multiple sets of characters in a string at once. I have a file save and load system where the player picks the save file name but to do that i need to make sure they don't do anything silly like putting @,£,$,/,| etc in the file name so how would i go...
  6. E

    Shader - replace one color.

    I'm having a difficult time understanding shaders. I've seen numerous video tutorials online and example code, but still feel lost. Here's what I know thus far: My_Shader.vsh is untouched. The following is written under My_Shader.fsh: varying vec2 v_vTexcoord; varying vec4 v_vColour; void...
  7. Enreeper

    How to replace sprites[solved]

    I wanted to create a small jump and run editor, but I have 2 problems 1.I have a room I can draw pixels that pixels can I export as a screenshot Now I want the game takes the images and replace the sprites 2. Is it possible to save a map like this Object: ini_open ( "map.ini")...
  8. L

    Windows It does not install and says it's aready on my pc

    So I have had gamemaker then it stoped working so I re-installed it. Then when I tried to install it, it said that it aready exist. But if I look at my files I can't find it. Also I can also not replace it. Why in the first place not working it was mabye cuz I was and looked at the files and...
  9. S

    The Return statement doesn't work in the script

    Hi, In a nutshell, I want to use the scr_zx() I created besides this: if (keyboard_check_pressed(ord('Z')) or keyboard_check_pressed(ord('X'))) so I created the scr_zx() function where i've put: return (keyboard_check_pressed(ord('Z')) or keyboard_check_pressed(ord('X'))) then I replaced the...
  10. Nathan

    Mac OSX Room Editor : Replace/Swap objects?

    I am curious if there is a way to swap out objects that are placed in a room. For example, if I put 7 floor piece objects in a room and then wish to switch 4 of them with a spiked floor object, can I select an instance and swap it to a different object? For any video editors a perfect example...
  11. Shadowblitz16

    GMS 2 set existing compiled sprite as surface

    does anybody know if its possible to draw on a surface and save it to a existing sprite on the texture page at runtime?
  12. RhyminGarFunkle

    Question - IDE Replace transparent color on same layer in image editor

    Is there any functionality similar to the "color mode: blend/replace" dialog from the image editor in GMS1? It doesn't appear that there is any easy way to, say, replace a couple opaque pixels with semi-transparent ones, or replace semi-transparent pixels of one color with another. If you try to...
Top