Construct 2 IS very good but...

Discussion and feedback on Construct 2

Post » Thu Oct 27, 2011 8:49 pm

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.
Be nice with others and with yourself!
My musics: https://soundcloud.com/vinians
My C2 Forum:
http://nmbr.forumeiros.com/
My Site:
http://www.dicasebytes.com.br
B
21
S
5
G
6
Posts: 166
Reputation: 4,885

Post » Thu Oct 27, 2011 8:57 pm

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.
B
107
S
40
G
10
Posts: 456
Reputation: 13,202

Post » Thu Oct 27, 2011 9:49 pm

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.plauk2011-10-27 21:50:22
B
28
S
7
G
7
Posts: 102
Reputation: 6,483

Post » Fri Oct 28, 2011 4:52 am

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.
Scirra Employee
B
129
S
45
G
15
Posts: 705
Reputation: 15,413

Post » Fri Oct 28, 2011 8:08 am

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.
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 6,998
Reputation: 57,791

Post » Fri Oct 28, 2011 12:44 pm

[quote]
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.
[/quote]
Exactly, where can I get theses plugins?

[quote]
I'd also suggest you to first start with the beginner's tutorial and check out all C2's examples in the install folder.
[/quote]
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!Vinians2011-10-28 12:45:34
Be nice with others and with yourself!
My musics: https://soundcloud.com/vinians
My C2 Forum:
http://nmbr.forumeiros.com/
My Site:
http://www.dicasebytes.com.br
B
21
S
5
G
6
Posts: 166
Reputation: 4,885

Post » Fri Oct 28, 2011 12:53 pm

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.
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 6,998
Reputation: 57,791

Post » Fri Oct 28, 2011 2:02 pm

[QUOTE=Kyatric] 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.[/QUOTE]
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!Vinians2011-10-28 14:04:35
Be nice with others and with yourself!
My musics: https://soundcloud.com/vinians
My C2 Forum:
http://nmbr.forumeiros.com/
My Site:
http://www.dicasebytes.com.br
B
21
S
5
G
6
Posts: 166
Reputation: 4,885

Post » Fri Oct 28, 2011 2:21 pm

The manual is being written by the guys at Scirra.

The function plugin can be found : here.
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 6,998
Reputation: 57,791

Post » Fri Oct 28, 2011 5:22 pm

Really nice! Where can I find some documentation to create my own plugins?
Be nice with others and with yourself!
My musics: https://soundcloud.com/vinians
My C2 Forum:
http://nmbr.forumeiros.com/
My Site:
http://www.dicasebytes.com.br
B
21
S
5
G
6
Posts: 166
Reputation: 4,885

Next

Return to Construct 2 General

Who is online

Users browsing this forum: chadorireborn, digitalsoapbox, nedzad and 15 guests