spartyon's Recent Forum Activity

  • I switched them to local arrays and the error went away. Thank you for leading me down that path!

  • The arrays are global. What do you mean by making sure the array is part of a layout?

  • I moved over an event sheet that generates terrain to a new project. For some reason every time I run it inside the new project I get an "invalid array length" error dialog.

    I've tried everything, but no matter what it still errors. The only time it doesn't is when I disable the event that sets the size of one of my arrays. I know the problem is there, but no matter what size I set it to it says the same error.

    Sorry for the lack of .capx, but it is part of a massive project.

    Has anyone seen this javascript error before?

  • I would like to be able to create a level from an array. It would seem what I need to do is use some external level editor, and then export as a JSON and load that JSON into the array object in Construct. Then parse that array intelligently.

    Does anyone know of an external tile editor that would export in a friendly format for a construct 2 array?

    I know of Tiled, but I have no clue how hard it would be to create tiles in C2 based on that.

    The end goal is to have a few different materials (dirt,stone,metal) that can be created in C2 from an array. (Think Terraria style terrain)

    The reason I want to do my level creation this way is to enable me to destroy terrain by editing the array. I've also heard of the Canvas plug-in, would this way of doing my levels play nice with that plug-in?

    Any help is greatly appreciated, thanks.

  • Another developer and I have been using SVN with construct 2 for some time (over 100 commits) and almost every time we end up with a conflict due to the .caproj file. This usually turns into a huge ordeal and is very painful. Now we have been just not committing it and just committing the .xml's. The problem is that I have all these .xml's for event sheets/layouts from my partners work that I cannot open because my .caproj doesn't recognize them.

    Is there a way to manually import event sheets and layouts? Or even better have the .caproj automatically recognize all the .xml's in the Event Sheets and Layouts folder and such. This is a huge problem with using SVN for Construct 2 projects.

  • I've made a button instead of using the On Clicked trigger for the list. Still not working. Also exported the project to make sure it wasn't the browser being weird. Has the exact same problem on WIN32 export.

  • Hi, I'm having some issues with my current logic for saving and loading.

    So I have an array where I'm storing the names of the save files, this is called SaveFiles

    Then I have a textbox where the user enters the name they want to use for their save file, this name is the pushed into the array.

    Then on the loading screen I am populating a drop-down list of save files from the array. The user selects one and then it will load and bring them to the level select screen.

    Problem is that the array gets populated fine, and the save file name shows up in the drop down list. But it can't load the save.

    What am I doing wrong? Or can do better.

    <img src="http://i.imgur.com/QWTgWeD.png" border="0" />

    <img src="http://i.imgur.com/pbv9qXQ.png" border="0" />

  • I think the bullet behavior will work great! Thanks guys!

  • So I have a hallway that I would like to be able to send walls down. Each wall would be different.

    so this situation is something like

    ------------------------------------------------

                            <-|        <-|

               <-|          <-|

               <-|                     <-|

    ------------------------------------------------

    I want the walls to keep moving until they hit the end of the corridor then they will be destroyed. The player will be trying to jump/duck to avoid being pushed down the hallway.

    What would be a good way to set this up? Spawn each block individually and give it a velocity and set up an event where when it touches the back wall it is destroyed? Seems like this would be a huge hassle.

    Anyone have a better solution?

  • For some reason that does not work for me, zatyka.

    It has no effect on the camera.

  • If there isn't a more elegant way that is probably how I'll end up doing it. Thank you.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I've been trying to structure events that will make the camera slowly scroll down the screen at the start of the layout.

    So the camera begins at (0,0) for instance, and will smoothly scroll down the screen until it reaches the bottom of the layout.

    I've tried a variety of things, and for some reason when I do

    At start of layout -> Scroll to (0,0)

    and then something like every 5 seconds, scroll y to current y -5. It does nothing besides the initial Scroll to (0,0)

    I've read all the tutorials and looked at the .capx's for scrolling in the FAQ, but they all pertain to things much more complicated than this. This should be very simple, I just can't seem to make it work.

    Any help?

spartyon's avatar

spartyon

Member since 7 Oct, 2012

None one is following spartyon yet!

Trophy Case

  • 12-Year Club
  • Email Verified

Progress

13/44
How to earn trophies