I have a silly feature suggestion to Ashley

0 favourites
  • 5 posts
From the Asset Store
This Silly Comedy Music Pack features 5 different moods of quirky and funny music tracks!
  • hi Ashley I’m making games in construct since 2015 but still I don’t have any other programming knowledge like javascript. I’ve started reading official javascript course.

    my problem is when I write a code then to check if my code is working or not, is my code correct or incorrect I have to simply run preview but if I’m doing something wrong in code or if I don’t know how to make something in code, I have 2 ways to get it. first keep trying by changing code or keep experimenting and second way is to ask in the forum.

    Now my suggestion is (I know I’m asking silly thing) if I make something through events then is it possible to construct generate a script page out of it or I can say that convert that eventsheet into script or maybe toggle sheet between sheet and script. So if I make something through events then I can know how I can make that in script. it will help many people like me to learn code by myself.

    Thanks

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I think it's a cool idea)

  • This has been suggested from time to time over the years but I don't believe it's feasible. Event sheets are so high level that they would generate huge amounts of code with a lot of boilerplate. I doubt it would be useful to anyone.

  • Ashley I think what people need is probably just more example code, provides complete samples of code snippets that implement a specific function. Or have a page devoted to some common usage examples.

    how to create an object

    The current documentation(link):

    createInstance(layerNameOrIndex, x, y, createHierarchy, template)

    However, for beginners, really don't know how to use it. He should provide an example

    runtime.objects.Sprite.createInstance(0, 100, 100)
    

    You notice that people often ask in the forum how to create an object with a script, how to call function with a script, how to get an instance object, how to change the Text ....This is because the documentation does not provide such example code, so people don't know how to get started

  • yes exactly,

    I think there should a library of code snippet. so we could find our answers in library like

    create object: runtime.objects.Sprite.createInstance(0, 100, 100) etc

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