SwatHound's Recent Forum Activity

  • I have a capx that I used to test the global objects capacity: https://drive.google.com/file/d/0B-xiqK ... sp=sharing

    Note: This requires rex rainbow's Hashmap plugin.

    Hopefully it helps out some?

    Thanks for the help but I think that went way over my head.

    I still have a lot of reading up to do, and plugins scare me haha.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Have you tried to duplicate layout?

    Hello again MadSpy and thank you again for your help in the past!

    Yes, I eventually learned I should just duplicate the layout.

    I was just wondering if this was "The best practice/correct" way to do it, and was wondering if this would cause some sort of memory leak or excess data or something weird down the line.

    I guess the issue with me was, I created my initial layout and used that as a training ground / sandbox / debug zone to test everything and make sure the ai ran as it needed to.

    I then proceeded to make new blank layouts and, of course, everything broke (either because I went back and set all my objects to global because I thought they would do something else, or because I did not have every sprite loaded into on the side of the layout so some things were not moving / spawning correctly / being represented)

    So, I was just wondering if this is the "proper" way people do these things, and if I'm missing some sort of "Load all information from X Layout" or some thing of the sort.

  • In another topic I asked "How do I keep my sprites/code/etc" consistently working between layouts, and I did get an answer that helped me.

    But this ended up actually breaking my game and causing all sorts of glitches due to the way I coded everything before hand.

    on /restart layout/ and /reset global variables/, replaying the same level after the game was over (either on a victory or defeat) would create artifacts from the previous game, and I realized that global causes sprites to not be destroyed on layout change / restart I guess.

    This is great for something like a platformer game, or I assume, 90% of every other situation.

    -----

    But what I needed was basically, a way that I could "Create another layout" without having to copy and paste everything from the first layout.

    It seems that, in order for my new layouts to work properly, unless I duplicate the first layout, things don't work 100% (assuming because there are things I move in and out of view of the player)

    But I was wondering, does this mean that every new layout needs you to spawn every object you have ever made onto the sides, and then simply destroy them all upon start of layout to conserve memory?

    tl;dr - do I have to copy paste every object every time I make a new layout to make sure things work - and is there a way I can just have one layout "read" the information that another layout contains so I don't have to load sprites and such?

  • I never realized that "global" for sprites. I clicked on them and immediately saw it. Thank you VERY much for the links, I never knew about this.

    Some older tutorials suggested copy pasting them and I thought this has to be a joke.

    Thank you very much, I'm so relieved to see this.

  • How do I keep all of my code/sprite/objects working between layouts?

    I made a new layout, and added in my most important unit. Half of its visuals are missing and needless to say its not working out so hot.

    I'm pretty sure I need to "Copy and paste" every single object I have in the original layout to make sure it all works out, but is this really the answer?

    Is there something I can do to "preload" everything into the other layouts I make? I checked the FAQ and tutorials, but I did not find anything directly related to the importance of keeping all the objects on screen.

    tl;dr - how do I get all of my objects from my first layout, to all of my other layouts without copy pasting. - Is it possible? and is this the "correct" way to be doing this?

    *Warning - Global objects are not destroyed on the end of layout.

    This was causing me some crazy bugs, due to the way I coded my game. What I actually was hoping for was the ability to create a new layout, and copy paste some units into the layout that would run their programming automatically.

    I've decided to just duplicate my entire first layout and modify it as needed for the rest.

  • Almost perfectly mastered the art of split screen? Would you be so kind as to share your powers?

    And by split screen do you mean the usual type of split screen we all know?

    There was a type of split screen in.. I forget the name of the game but...

    Depending at which angle you guys left each other the screen would slice in such a way that it would not necessarily be down the middle, and it rotated as it needed be depending on where the players were next to each other.

  • No magic - screenshot is the solution.

    Good to know, thanks.

    Wasn't sure if there was some sort of javascript I could employ for something like this.

    Thanks for the reply!

  • Is it possible, to show a screencap/preview of a level?

    -> Level select

    -> Hover over 1,2,3, etc

    -> Shows an image of what your layout looks like.

    Is there some scripting magic to enable this? or would you have to just take a screen shot of the layout and just import it as an image / sprite?

  • Hello there phantomunboxing

    You seem to be asking a lot of questions, and that is good because knowledge is power, but I think you would benefit more by checking out these links.

    how-do-i-frequently-asked-questions_t63692

    c2-academy-tutorial-videos_t124551

    https://www.scirra.com/tutorials/top

    A lot of your questions can be answered in those links, and you'll also learn a lot from them.

    The academy tutorial videos might not teach you to make "THE EXACT" game you want, but they will help you to further understand how the system works, and with that you'll be able to understand the Construct 2 better and you'll be able to answer your own questions.

    As for the randomized spawning dungeons try this link - procedural-generation-for-beginners-pdf_t61806 - I warn you, it *might* be a bit much if you're just starting out with Construct2.

  • Uhh.. is it just me or..

    MadSpy was that supposed to be a Capx file? Because I seem to be only able to play it in browser.

    Did you use LERP for that?

  • Woah. Thank you kindly C-7 , I got my answer in another post, but this one definitely helped me understand it deeper.

    And thanks for answering my difference between question.

  • blackhornet Thank you so much my friend!

    After fiddling with it for about 15 minutes, throwing in values randomly left and right, I seemed to have figured it out. or better yet, I know which numbers to put in to get my percents, I don't particularly know why it worked out as such though.

SwatHound's avatar

SwatHound

Member since 9 May, 2014

None one is following SwatHound yet!

Trophy Case

  • 10-Year Club
  • Email Verified

Progress

11/44
How to earn trophies