Construct 2 IS very good but...

0 favourites
  • 11 posts
From the Asset Store
Casino? money? who knows? but the target is the same!
  • Hello friends! I am creating an application using Construct 2 and I am impressed with your ability. But I'm really feeling a lack of a feature: Create my own reusable piece of code. I think I might have a way to place an action that is a piece of code, so would be simpler to put larger expressions with more lines for example. This would be for more advanced users and it would be very welcome. For example I need to create an action that takes parameters and do something. This action could be executed in any part of the application. Put this feature! That would be very welcome and open up enormous resources in the program. Thank you.

  • Can you be a bit more specific?

    Maybe we'll be able to help you! :D

    Right now you can be very flexible by using separate event sheets and including them on whatever layout you want to use.

    By adding private variables with the same name in different sprites, you can check different objects easily.

    Ashley and Tom are adding families and functions in the near future, which will help making modular and flexible events even further, but for the time you can already create some flexible code.

  • It's also not out of the realm of possibility to make your own behaviour and plug it in. Javascript and all, right?

    edit: sh*t, my signature is borked. Ignore it.

  • What you are describing seems like functions.

    There is already a function plugin for C2, I used it a lot in my entry for the competition. It's not an official C2 plugin yet, but it works quite well. I suggest you give it a try and see if it's what you're looking for.

  • I'd also suggest you to first start with the beginner's tutorial and check out all C2's examples in the install folder.

    I can't help but feel through your various questions on the forum that you did not went through this (necessary) step, in order to make yourself a true idea of how C2 works.

    Also, what you described can be achieved with groups. Parameters would be global (or instance variables) that you would test inside the group and then "react" to.

  • What you are describing seems like functions.

    There is already a function plugin for C2, I used it a lot in my entry for the competition. It's not an official C2 plugin yet, but it works quite well. I suggest you give it a try and see if it's what you're looking for.

    Exactly, where can I get theses plugins?

    I'd also suggest you to first start with the beginner's tutorial and check out all C2's examples in the install folder.

    Buddy, I'm a stater in Construct 2, but not in programming. I understand how it works. This question I asked is not trivial starter. What I am trying to learn is how to reuse my actions (code) to be the simplest change in a future program.

    Thanks for reply!

  • I understand that you're no stranger to programmation, buddy.

    And that's where the trap lies.

    C2 is a "language" in its own, that needs to be learnt like others. It is visual event programmation if you will (invented term, I know). But you have first to get used to it. (like learning/seeing/understanding the slight shades/differences between say C++ and Javascript at first)

    That's why I underlined the fact that going through the beginner's documentation is a step that is to be taken.

    At last all the plugins for C2 can be found in the C2 plugins forum.

  • I understand that you're no stranger to programmation, buddy.

    And that's where the trap lies.

    C2 is a "language" in its own, that needs to be learnt like others. It is visual event programmation if you will (invented term, I know). But you have first to get used to it. (like learning/seeing/understanding the slight shades/differences between say C++ and Javascript at first)

    That's why I underlined the fact that going through the beginner's documentation is a step that is to be taken.

    At last all the plugins for C2 can be found in the C2 plugins forum.

    I undestand. By the way, when I click on the help button on the C2 its send-me to a 404 page (not found).

    Obs: I went to the download page plugins but have not found one plugin that allows me to create a function or something. Where can I find it? (if any).

    Thanks!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • The manual is being written by the guys at Scirra.

    The function plugin can be found : here.

  • Really nice! Where can I find some documentation to create my own plugins?

  • Really nice! Where can I find some documentation to create my own plugins?

    http://www.scirra.com/forum/javascript-plugin-and-behavior-sdk-documentation_topic44005.html

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