Replace All Feature?

  • That'd be cool if there was a replace all feature. It would be useful for my example:

    So I could copy all of one instance of Player, and replace player with Player2, player3, player4. Then find and replace all controls like so:

    Find keypress W, replace with keypress Up Arrow

    yea? Just an idea <img src="smileys/smiley1.gif" border="0" align="middle" />

  • You shouldn't have to check a keypress more than once. Make a sheet called input, and include it in every layout. Then when W is pressed +1 to a variable, then you only have to check if the variable is higher than 0 ? this way you never have to replace input code that is scattered through the project.

    <img src="https://dl.dropbox.com/u/1024727/c2/input1.PNG" border="0" />

    If you want to see if a button is pressed just check if it equals 1:

    <img src="https://dl.dropbox.com/u/1024727/c2/input2.PNG" border="0" />

    if you want to see if the input is being held down check if its greater than 0:

    <img src="https://dl.dropbox.com/u/1024727/c2/input3.PNG" border="0" />

    (Though for my actual game I use keycode stuff so it can be customizable input.)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I see how that works! I would do global player1 input, player2 input etc. right?

    But that still means I'd have to restructure my layout, which is what I could avoid with a replace button, you know?

    Also, probably dumb question, but would adding that extra input check cause performance or memory issues, given that I have 10 or so different inputs, with up to 4 possible characters being played on screen?

  • This proposed feature is actually on the to-do list, I believe, as it can be useful in many circumstances.

  • oh awesome! thanks for letting me know!

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