[Suggestion] Function Jumper

0 favourites
  • 9 posts
  • First of all sorry for the bad topic name not sure what to call it

    But was thinking of another feature that could be useful, as most are aware of when using lots of function, there might be calls to these all over the place.

    So a feature that could be very useful I think would be if you could right click or shift+left click a function call in your code, and jump to that function. And maybe make it so you could jump back again. Would be very useful, for me at least, I tend to expand functions over time but forget where I put them, sometimes, so it would make it a quick way to jump there. Think that would be a really nice feature.

  • Are there any chance that something like this could be added....soon ?

    When working on big projects, at least in my opinion the number one thing you really start to feel is missing in C2 is tools that help you organize you project. Even though this might not solve all of it, it would really improve coding speed for such projects.

    Some other things that would also be a huge improvement, is a search functionality that goes through all event sheets and list those event sheets where there are a match.

    Also the ability to drag several objects at the same time in the project window.

  • Ashley often states that suggestions should be shown to be of use to most users and not just to the person making the suggestion.

    It would help to give more examples of how it would be useful.

    Would it be possible to have an event sheet that just has all your functions on it and include it wherever needed? That way all functions are readily accessible.

  • You could just place a comment above the event where the function is!

    [attachment=0:bnmsjmy4][/attachment:bnmsjmy4]

  • Yeah agree it could be useful, but already using a lot of comments. And in your case it would work. But when you have events where there might be 9-12 lines before a function call and maybe even several calls after each other which again call other functions. It start to take quite some time to track through the code. You would almost end up having more comments than code

  • Yeah agree it could be useful, but already using a lot of comments. And in your case it would work. But when you have events where there might be 9-12 lines before a function call and maybe even several calls after each other which again call other functions. It start to take quite some time to track through the code. You would almost end up having more comments than code

    I understand where you coming from. I tell you about my pattern of working. Might help you organize things for now. Basically, I try to keep things simple. Have a look at this image.

    [attachment=0:2otxalc4][/attachment:2otxalc4]

  • Ashley often states that suggestions should be shown to be of use to most users and not just to the person making the suggestion.

    It would help to give more examples of how it would be useful.

    Would it be possible to have an event sheet that just has all your functions on it and include it wherever needed? That way all functions are readily accessible.

    If you take Megatronx screenshot, what you would do is simply Shift+left click "Call "CastSpell...." and C2 would go to where you have defined that function, so you wouldn't have to track it yourself through your different event sheets. Its basically just a quick search for functions. Besides making navigating a project a lot easier, it would also help make troubleshooting easier, as you can very quickly follow a path through your project and check where things might go wrong.

    And as stated its mostly for big projects, in my project for instant I have 27 event sheets with 3454 events, where most are functions, but think most people that are even working on semi big projects would benefit a lot from such feature.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I understand where you coming from. I tell you about my pattern of working. Might help you organize things for now. Basically, I try to keep things simple. Have a look at this image.

    I fully understand what you mean and think everyone that comment there code, find ways to do it so its easier to work and keep track of things, I do that my self as well.

    But in my opinion comments used in the way you do it, is only due to you not having the right tools available and therefore you do it that way, which is logic. But I think most people that uses functions, name them so from the name it self you know what it does. So normally you wouldn't need to comment a function call at all. But rather you would comment the function it self. So in my opinion it is just an area where C2 could help the users a bit better. And its not really something you would see the greatest importance of, if you were working on a small project, because they ofc are fairly easy to track.

  • >

    > I understand where you coming from. I tell you about my pattern of working. Might help you organize things for now. Basically, I try to keep things simple. Have a look at this image.

    >

    I fully understand what you mean and think everyone that comment there code, find ways to do it so its easier to work and keep track of things, I do that my self as well.

    But in my opinion comments used in the way you do it, is only due to you not having the right tools available and therefore you do it that way, which is logic. But I think most people that uses functions, name them so from the name it self you know what it does. So normally you wouldn't need to comment a function call at all. But rather you would comment the function it self. So in my opinion it is just an area where C2 could help the users a bit better. And its not really something you would see the greatest importance of, if you were working on a small project, because they ofc are fairly easy to track.

    I agree. I work on big one too. However i would still comment due to comments being easier to read. And when I come back after some time to that particullar section is good to remind myself the logic i was following.

    But yeah, that would be useful to have that "go to function" option. However my priority right now is to push "Disable collisions only between two objects". Other wise got to write whole events group with custom collisions and hope that they will work under performance stress!

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