How do I batch change an name or object reference?

0 favourites
  • 3 posts
From the Asset Store
This is a single chapter from the "Construct Starter Kit Collection". It is the Student Workbook for its Workshop.
  • I made a copy of an event sheet and made a Character2 variable, now I want to replace all mentions of Character1 in the copied sheet with Character2. I was doing this manually, but forgot to save and the backup file only goes back 20 mins. I am also thinking of using a family instead, but their moves are too different that I would end up doing the same amount of work.

    Anyways, theres no option like in some word documents where you put "Search for all instances of word" and then use "Replace All instances with new word" to mass change a word in the document??

  • As far as I understand it, there isn't a way to batch replace one variable for another, but if you're wanting to replace an object with another object:

    Select all the events and actions with that object in it, right click on the selected code and select "Replace object".

    You are offered the choice of which object to replace: Pick Character1 and then on the next window pick Character2 to swap.

    This will only work if both objects are the same type and all the behaviours and variables for Character1 that are referenced in the selected code are also present on Character2.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Thanks, thats exactly what I was looking for, and that would have saved me a lot of time. I hadn't come back here after that post since I was busy working on the game and it took me an unfortunate amount of time replace every instance of an object character with another object character. Shoot. : /

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)