Quick replace objects in events?

0 favourites
  • 11 posts
From the Asset Store
Very simple code without excess options (15 events for server and 11 events for client)
  • I'm not thinking this is possible, but maybe I'm wrong. If it isn't possible, it definitely would be a nice feature.

    Anyway... is there a way to quickly replace an object in code with another one? For example, say I have two sprites, and in my code I have just:

    "On start of layout - Object 1 Destroy"

    Now... I want to copy/paste this destroy action and change the second action to Object 2 Destroy...

    To do this currently, I have to double click the action, go in and go back to the objects, change it to Object 2, and then click through the menus until it's done. But what if I have a piece of code that utilizes Object 2 already?

    Wouldn't it be easier if I could like alt+click on the Object 2 icon in another piece of code, and then drag/drop it on the Object 1 icon for the Destroy event, and it would automatically update to Object 2?

    Is something like this possible and I just don't know the shortcut for it?

  • Double click on the object name doesn't do this for you already?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Not sure what you mean

  • What I'm saying is to replace say... a "set object 1 x position" event with a "set object 2 x position" event, I need to left click a total of 8 times, through multiple menus.

    The solution I'm requesting could be done in a single drag and drop. It would save a ton of time. Especially on large projects where you might have to look through 50 objects to find the one you want to change to.

    Even better would be to drag an object from the Objects panel directly on top of an object icon in the event sheet to replace it.

  • Ah I see, never really thought of it as those 8 clicks only take me a couple seconds. Sounds useful though for scenarios where you need to do a lot of events. Some type of find/replace across events would be nice too...

  • Yeah... lately I've needed to do it a lot, across a dozen actions at a time, and it can really just be annoying and time consuming. A quicker method would be extremely appreciated.

  • It may be on the todo list

  • It is already on the todo list. Hopefully will turn up soon!

  • Konidias BluePhaze lemo

    Hi guys, I made this short tutorial, hope it works for you.How to replace objects in events

    Ashley I know nothing about programming, but wouldn't it work something like the "search and replace" function like the one in text editors?

  • danuyos That was what I proposed above some type of search and replace option

  • Interesting work around dan :]

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