QuincyDK's Recent Forum Activity

  • Hey, right now I am using the load image from url event with keep current size. Is there any way to scale the images in such a way that they get parsed with their ratio intact? (So for ex say my image container is 100x50, I put in an 50x10 image, I'd like it to be fit as much as possible which would be 100x20 in this example)

  • Hey,

    I cannot seem to figure this one out. I'm trying to run my function trough CallJS (setter(param) ) but this doesn't work. It seems that the moment I pass a construct variable through CallJS, the function refuses to do anything. Is there any way to accomplish this?

  • Hi, I'm Quincy and new to Construct. I have a small background with web development and control JS, PHP, HTML and CSS.

  • Hi all, I am doing a project in which I use pure JS, and execute this by using the CallJS plugin. This went okay for one event sheet, but on the other I always get an error in my console log

    [quote:1374n9ny]CHROME: Uncaught TypeError: Cannot call method 'toString' of undefined

    FIREFOX: TypeError: x is undefined

    I have an export on improvive.net/export_quincy

    In the first text field enter the following string:

    33d-j8ZpFFDdr+QQ4RUWxA

    The following is the code that produces the return value:

    var returnstring;
    function retrieveStorylist(){
    input = prompt('Voer hier het unieke gebruikersnummer in');
    $.ajax({
        type:    'GET',
        url:     'http://ihj.improvive.net/view/'+input+'/',
        success: function() {
    	   setting = window.open('http://ihj.improvive.net/view/'+input+'/');
    	   setTimeout(function(){setting.close()}, 1000);
    	  	  $.ajax({
    			type:	'GET',
    			url:	'http://ihj.improvive.net/view/'+input+'/list',
    			xhrFields: {
    				withCredentials: true
    				},
    			success: function(text){
    				if (text === ''){
    					alert('Er is iets fout gegaan .... Meldt dit bij Improvive (Roel, Quincy of Tariq).');
    					exit();
    				}
    				else {
    					/*text = JSON.parse(text);*/
    					numlist = text.length;
    					var inb = {
    						'c2array': true,
    						'size': [text.length, 3, 1],
    						'data': text.map(function(frame){
    							return [
    								[frame.id],
    								[frame.title],
    								[frame.shared]
    							];
    						})
    					};
    				returnstring = JSON.stringify(inb, null, 4);
    						   };
    									},
    								error: function(){
    									alert("Er is iets fout gegaan, controlleer het nummer en probeer het opnieuw");
    									}
    								});
    					}
    	   }
    )
    return returnstring;[/code:1374n9ny]
    
    What goes wrong? :c
    
    (I chose not to include an capx because the event sheet is basically
    ON LAYOUT START: 
    CallJS.Execute("retrieveStorylist()");
    returnvalue = CallJS.ReadExecutionReturn
  • Good day!

    I've got a list of wav files that I want to play stored somewhere. I already got to the point that my application reads the correct link out of this list, however the Audio object doesn't allow me to externally load these files during runtime. I also tried some javascript, but that didn't get me much further. Is there any way to archieve this?

  • ^Oops, sorry Ashley! I will make sure that this won't happen again!

  • Have you installed an addon?

    Only the CallJS plugin. I got around it by reverting to an older project from last week, so let's hope that this doesn't happen again.

  • Hi all,

    I am doing a project in construct, which was going fine before the weekend, last test export working and all.

    However, as I did an test today (without changing anything) I got an javascript error in the console:

    Uncaught TypeError: Cannot read property 'poly_pts' of undefined.

    Using FireFox' console, I get the folowing:

    TypeError: this.type.animations[0].frames[0] is undefined

    I have absolutely no idea where this came from, and I am lost as I don't know what could be the issue..

  • Good for you

    Just putting it here, because you never know when someone may run into the same problem. One love, man!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • The problem is solved. I was using XYZ index when I should've been using XY

  • Hey there. I have the following project:Image is too big to post here (over 3k x 1080)^Not yet permited to post urls^

    qdekoster.nl/Naamloos2.png

    ^Cant post urls yet

    As you can see on the right side

    I get two alerts: The first one is out of my .JS file, and shows the file path.

    The second one however, is "This is 0".

    The data should be loaded out of a JSON file, and I can confirm that that is working, but that 0 should be the file path. Does anyone see what is going on/wrong?

  • I'm sorry I couldnt help you. Please inform me about your progress!

    Here is the update: I came across callJS (plugin) and that has allowed me to use my own script file.

    With CallJS.execute("function();") I can execute a function, and then by using the CallJS.ReadExecutionReturn I can retrieve the return value

QuincyDK's avatar

QuincyDK

Member since 17 Feb, 2014

None one is following QuincyDK yet!

Trophy Case

  • 10-Year Club
  • Email Verified

Progress

11/44
How to earn trophies