0 Favourites

Real coding option

  • Would it be possible to enable real coding?

    (Of course as an option)

    Despite this:

    <img src="http://tecbug.pl/pub/c2/code01.png" border="0" />

    I'd like to write this:

    ---

    <font size="1">

    var global text="abba";

    var global number aaa=22;

    if (Sprite.height<=10) {

    Sprite.MoveToBottomLayer;

    }

    //This is comment.

    if (Sprite2.8Direction.speed=55){

    system.createObject(Sprite,0,sprite2.x+20,sprite2.y+20);

    if (Sprite2.IsOverlapping(Sprite)){

        system.global.aaa=33;

    }

    }

    if (system.compare(sprite.bullet.acceleration,99,equal) and syatem.layer[0].isVisible) {

    sprite.opacity=45;

    system.wait(1.0);

    }

    for (i=1,10,i++){

    sprite.var1+=1;

    }

    if (sprite.bullet.speed>222){

    system.forEach(Sprite) {

        sprite.y=33;

    }

    }

    </font>

    ---

    I would even pay additional money for this...

  • Ashley has previously said that this is designed to be an event-driven system and he doesn't want to go down that route.

  • So maybe event scripting option?

    Maybe something like this:

    event:action;

    For example:

    sprite.height=10 : sprite.movetobottomlayer;

    or

    sprite(height)=10 : sprite(movetobottomlayer)

  • This has been requested a lot in the past and we're not keen on it - Construct 2 is different in being entirely non-programming. There are loads and loads of tools out there for programming. If you really want to program I would have to say Construct 2 isn't the tool for you. We really want to make Construct 2 the best non-programming tool and scripting systems are a real distraction from that.

  • I'm reminded of the Python scripting option in Construct Classic. If you'd really like to put some programming in your games, you're probably better off with Construct Classic.

  • Don't forget you have access to everything that events can do in the plugin sdk.

  • The main thing I am missing compared to regular programming is a search/replace function. If I copy behavior from one condition to another and then have to double-click 10 lines just to change the class name that sucks. In an editor that would be a 3 second fix.

  • I totally agree. That's main reason why I asked for this.

    It's way easier in MMF2 - just drag'n'drop object icon to replace.

  • I wouldn't mind having a replace feature. Once families have more features, I'll have to spend a lot of time replacing like, half my project manually with families. <img src="smileys/smiley5.gif" border="0" align="middle" />

  • Yeah, a couple of features to make this easier has been on our todo list for a while now. Just been so much other stuff to do.

  • I am so happy C2 isn't a an scripting program. This is what I hated about every other editor (well with the exeption of CC and MMF). IN GM for example, to make good games you must learn their scripting system and it's such a bother for people that do not have time and just want to bring an idea to life fast, not spend hours learning some stupid language. I always found it so annoying. C2 is by far the best event driven system I have seen. C2 is there to put ideas quickly into motion and nothing can beat that when all you want is just make a damn game. >__>

    Those 3 seconds you save in traditional programming replacing code, it's countered by how long it takes you to put a functional game together.

    Traditional programming should stay for developing applications and such. For making games, tools like C2 are, in my opinion the future.

  • I am so happy C2 isn't a an scripting program...

    I totally agree <img src="smileys/smiley20.gif" border="0" align="middle" />

  • Construct 3

    Buy Construct 3

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

    Buy Now Construct 3 users don't see these ads
  • Third. <img src="smileys/smiley20.gif" border="0" align="middle" />

    Scripting program killed my dream.

    MMF2 and C2 revived my dream. <img src="smileys/smiley42.gif" border="0" align="middle" />

  • Traditional programming should stay for developing applications and such. For making games, tools like C2 are, in my opinion the future.

    > I am so happy C2 isn't a an scripting program...

    I totally agree <img src="smileys/smiley20.gif" border="0" align="middle" />

    Third. <img src="smileys/smiley20.gif" border="0" align="middle" />

    Scripting program killed my dream.

    MMF2 and C2 revived my dream. <img src="smileys/smiley42.gif" border="0" align="middle" />

    uh...what they said.

  • Construct 2 would provide a wonderful HTML5 framework. I definitively agree with tecbug's suggestion.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)
Similar Topics Posts Views Last Post
Unread hot topic
282 387,931
Raybrite's avatar
Raybrite
Unread hot topic Locked topic
238 15,114
Tom's avatar
Tom Construct Team Founder
Unread hot topic
107 13,190
LeuNoeleeste's avatar
LeuNoeleeste