jsea000's Forum Posts

  • Ashley, would possible in the nearish future to have some additional very basic examples utilizing the integration with javascript?

    We greatly appreciate the documentation! - maybe would be helpful to provide simple snippets on documentation?

    thx for reading -

  • thanks for that!

  • Hi, I would like to have an array with 4 sets of points (x,y).

    Looks like I need to create an array in the files folder, then open the array editor -

    then I need to load the array editor data into the array object that is created in the layout. Is this documented somewhere?

    I don't get how to load the points data into the array object.

    Thx much

  • I have a lot to chew on but my future self will definitely be asking you about this -

  • Insane!

    Thanks DFORM!

  • thanks! heres my grid! It's gorgeous!

    If I have one object called enemy, how do I get/set position? I tried

    runtime.objects.enemy.x,runtime.objects.enemy.y but it gives me undefined.

    thanks!

    runOnStartup(async runtime =>
    {
    	runtime.addEventListener("beforeprojectstart",() => OnBeforeProjectStart(runtime));
    
    });
    
    function OnBeforeProjectStart(runtime)
    {
    	runtime.layout.addEventListener("beforelayoutstart",() => OnBeforeLayoutStart(runtime));
    	
    }
    
    function OnBeforeLayoutStart(runtime)
    {
    	
    	console.log(runtime.objects.enemy.x,runtime.objects.enemy.y);
    	
    	for(var i = 0;i<10;i++){
    		for(var j = 0;j<10;j++){
    		runtime.objects.player.createInstance(0,i*32+32,j*32+32);
    		}
    
    	}
    	
    }
    
  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hi I am trying to learn basic js with construct - in the attached file, how would I instance player1 100 times, and set each instance to a 10 x 10 grid?

    thanks much

    drive.google.com/open

  • Thanks!

  • Hi I added Browser and log in console but I get no output in chrome browser dev tools console. Where is the output?

    can you provide a working demo? I would like to post my file or a screenshot but it wont let me unless i create a new topic.

    thanks LCC

  • Hey thanks for this! - I do appreciate the timely responses and I will play around with these.

    LLC

  • Thanks.

    Re: the second example. Are we using the same software?

    I have tried dragging this every which way but I cannot nest loopindex("i") into for i from 1 to n;

  • Somehow the spacing was weird - should look like this:

  • Hi everybody - I still can't seem to figure out for loops.

    can someone please provide an example of how to make a text based asterisk pattern that is drawn once on the screen and uses loops?

    *

    **

    ***

    ****

    *****

    As you can see below I have a long way to go, help is much appreciated

    thx LLC

  • thanks so much!

  • Where is "loopindex"

    It seems really hard to find - could someone please provide an example of a nested for loop and a text box or print out of some kind using loopindex?

    thks - LCC