CaesarSalad's Forum Posts

  • Fun game! I’ve just bought a Developer account and I’m exited to release mine as well

  • CaesarSalad

    Apologies for the delay in getting back to you. I'm still running the latest stable version due to client work, so can't update C2 yet, sadly.

    Based on the code and image you posted one or more of the following could be a problem:

    The X-axis spawn position for the pillar creation looks incorrect - it should be 630, not 1100.

    Make sure that the origin point of the pillars is in the bottom left hand corner.

    Also, the array's initial dimensions should start be 0,1,1.

    Aside from that I can't see anything obvious that would be causing issues. Hope that helps

    Still doesn’t seem to be working. Anyway I could get the Capx working for you? The Generation is wrong yet I based it off the Capx you gave me. Not sure why it isn’t working.

  • CaesarSalad

    Apologies for the delay in getting back to you. I'm still running the latest stable version due to client work, so can't update C2 yet, sadly.

    Based on the code and image you posted one or more of the following could be a problem:

    The X-axis spawn position for the pillar creation looks incorrect - it should be 630, not 1100.

    Make sure that the origin point of the pillars is in the bottom left hand corner.

    Also, the array's initial dimensions should start be 0,1,1.

    Aside from that I can't see anything obvious that would be causing issues. Hope that helps

    Alrighty I'll try this soon. In a few hours I'll have access to a PC.

  • Sorry CaesarSalad I'm still running v244 due to client work so can't view the file - could you post a screenshot of the code instead?

    If the images sent don’t help you help me, you could always get the newest beta of Construct 2, I’ve looked everywhere to figure out how to do something like this and the Capx you gave me was genius and exactly what I needed, it just won’t work on my Capx, I think it’s a layout sizing issue but then again it just looks messed up. Looking forward to a response

  • Sorry CaesarSalad I'm still running v244 due to client work so can't view the file - could you post a screenshot of the code instead?

    So I tweaked it a bit as you can see in the "code" and this is how it turns out. Even from the original it just isn't right.

    Window size 630, 360

    Layout Size 630, 360

    Margins 500, 500

  • Sorry CaesarSalad I'm still running v244 due to client work so can't view the file - could you post a screenshot of the code instead?

    I can at the late afternoon EST. It's 7AM here, Stay tuned.

  • CaesarSalad

    How about this?:

    This generates a random level on the fly, saving it to an array as you go - I'm saving heights, but you could swap this for sprite frames/animations, different sprites etc

    Pressing the space bar will allow you to replay the level from the start; if you reach the point where you restarted in the saved level then it will continue randomly generating the level from that point.

    Press R to reset the level.

    If you want to permanently save the current level then you could save the dictionary to local storage, allowing you to reopen it in subsequent play sessions.

    So the capx you gave me is basically exactly what I wanted, thank you very much. But I tried to incorporate this into my project and optimize it but it still isn't working properly. Here's a download to the capx www[DOT]dropbox[DOT]com/s/86q1bph11qnwowc/ScirraHelpPlease[DOT]capx?dl=0

    The game overall is a bit buggy but we're just focusing on the generation part, all of that is on the bottom of the event sheet. If wanted I can add credit in the app as this is going on the Playstore. Thank you

  • Thank you all for the comments! I'll check out everything in a few hours!

    mekonbekon Thank you especially, I'll check it out in a few hours

  • The pillars are randomly generated every single time they're destroyed or the layout restarts, how can I make it so the pillars are only randomly generated in one certain way, so when they're deleted, they're all in the same positions as before?

  • Here you go:

    https://www.dropbox.com/s/f0952pplmsucm ... .capx?dl=0

    I tried to make it simple as I understand you are new to this.

    Of course many things can be optimized there because both layouts are very similar and share most of the code.

    You can move repeating pieces of code to functions, or you can even make both layouts to use the same event sheet.

    Thank you so much, I'll check it out <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile" />

    Edit: I'll update in a day or so if I can get this working in my game, thank you so much for taking your time to do that I didn't expect it to have so many events.

  • How do you store this number?

    If it's a variable on your event sheet, just make it Global, it should be visible to both layouts.

    You can also create an array or a dictionary and store your number there, or you can add an instance variable to some object accessible from both layouts.

    The dictionary would probably be the best solution.

    Capx Example by any chance?

  • Basically in Layout 1 when you click an object it's supposed to update a number in layout 2, but doesn't. I tried to put the number in the same layout and that worked, but I want the number in a separate layout.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • No problem

    Here's the correct download link ufile[DOT]io/kwr70 (Only up for 24 hours)

    So there's a bunch of complicated stuff with multiplayer in here that isn't currently working, bu that's not what I'm focused on. Again just to clarify I want the player to respawn back to the beginning and the camera to reset to the beginning as well without restarting the entire layout.

  • You shared a caproj file. You must save it as a single file and share the capx file.

    Whoops, my bad, I created that download yesterday in a rush for something else. I'm on mobile and will fix it soon. Patience

  • It's a bit hard to understand what is hapenning without a demo or capx. Are you using scrollTo after you move the player? I can't really understand what's going wrong on this case... Sorry.

    Here is the Capx uploadfiles[DOT]io/e93x0

    I want the player to respawn to the beginning and the camera to start back at the beginning, NOT have the layout reset entitely. This capx contains alot of Photon server stuff which is unnecessary, just focus on the events outside the folders.