Joannesalfa's Recent Forum Activity

  • Drawing Canvas is not a good choice for animations. You need to make a snapshot after every frame and save it in an array, then restore it from the array - these are very slow operations. You can also save the canvas image in BinaryData, but there is no way to load it back into the canvas.

    Have you tried Game Recorder object?

    Actually, I found another solution is recording touch input and Im able to replay the input on canvas by user using array and frame value.

  • Im trying to figure out how to save drawing canvas per frame in order to replay the drawing using array and I found no solutions yet.

    Tagged:

  • No problem, I just figured it out I managed to create a new function with defined return value and call an expression like that:

    runtime.setReturnValue(yourName());

    after all, thanks!

  • Take a look at the 'Integrating events with script' example.

    There is no "Integrating events with script" example in C3 editor

    i.imgur.com/utvjEk7.png

  • Thanks Ashley! I haven't seen this action before.

    Also I have another question, is there an expression to get return value from function in script file?

  • I'm trying to figure out, I added a function in event sheet "callPrompt" and I added a function in script file:

    function yourName() {
     var person = prompt("Please enter your name", "Chuck Norris");
    }
    
    

    I don't know how is supposed to call a function from event sheet to script file...

    Tagged:

  • I tried to open new project and I found no timeline plugin while timeline window exists, I'm using latest stable version. (r148)

  • Comparing distance() between sprite 1 and sprite 2 and if is too close like less than x < 50 execute a trigger with an instance variable (boolean) to make it run away

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Nepeo Oh I see, I think you could base "Function" plugin where you can add parameters could be similiar to adding key and value not sure how it can adapt an array or recursive array.

    Nevermind about the problem since Array is set as 0 which it forces to reset values, so I got rid of it from method function.

  • Nepeo Is there a way to make it persistent? I notice it does reset since is not saving new objects when I go to different layout.

  • Nepeo Thanks for your solution, it seems a rare way to implement it. Anyway it's solved now.

  • Hi all,

    I'm trying to push an object like:

    	{name: "John", age: 35, hobbies:["music","books","videogames"]}
    

    to selected path which is an array, I couldn't find a way to push objects in C3, I do not want to push simple values like only string or numbers without an object. There is an action "Push value" but I tried it and it won't work according this screenshot:

    i.imgur.com/Sr8KosN.png

    I clicked "Ok" button to push several times and it won't add another index of this value.

    Tagged:

Joannesalfa's avatar

Joannesalfa

Member since 8 May, 2011

Twitter
Joannesalfa has 3 followers

Trophy Case

  • 13-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Forum Hero Made 1,000 posts in the forums
  • x2
    Coach One of your tutorials has over 1,000 readers
  • RTFM Read the fabulous manual
  • Email Verified

Progress

19/44
How to earn trophies