Cobweb Cottage's Forum Posts

  • My game involves a player shooting upwards at enemies.

    To create only one shot at a time, I used this code:

    The shot is then destroyed when it touches the enemy (a bat):

    *However*, the bat is never destroyed, even though I have this code:

    Both objects (Shot and Bat) have collisions enabled.

    Thank you for any advice you may have!

  • I would like to clone mechanics of an existing game, using the "Flying Along" template. I have added different gameplay features, such as spinning platforms and enemies, but the art style is very similar to this already existing game:

    I'm using my own art, but can I face legal trouble if I publish a green-corridor, helicopter flying game?

  • Thank you so much for all your help! I'm happy to say that I can no longer rotate the display while in-game, and it looks like this:

    However, on exiting the game and re-opening, the orientation has moved to this:

    Why is this the case, when I'm telling it to scroll to the center of the layout on layout start?

    For reference, here is a picture of the whole layout:

    (if the image appears cut off, scroll out on the browser)

    How can I fix this odd scrolling? By the way, LittleStain, if you're on Steam I'd be happy to gift you a ~$10 thing for all your help Just send a request to steamcommunity.com/id/__mors__

    EDIT: found a fix, and I set it to scroll to the layout center every tick. If this is a bad plan for some reason, please let me know a better way

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I'm not sure if this changes anything, but I'm using the Personal License from Steam. Even though I have not placed the browser object, it is listed as an Object Type in this menu:

    I also tried to set the orientation + fullscreen in the Intel XDK build menu, but that didn't work either. How can I use the browser object to lock mobile orientation?

    Quick edit: LittleStain, is there any way I can thank you for your help? Can I give you reputation points? Sorry, I'm very new to Construct 2- but you're very helpful!

  • In Configuration Settings, I've set orientation to Landscape. However, this does nothing and rotating my device still rotates (and distorts) my game. Additionally, I have no Browser object. How can I lock mobile orientation?

  • I do not have this option

  • Hello, rookie here! I'm having a problem with a landscape layout I'm trying to test on Android. My project settings are:

    • Layout Size: 1280 x 720
    • Window Size: 640 x 360
    • Scale: Scale outer
    • Orientation: Landscape

    Here's the issue: When I launch the game, it looks like this:When I rotate the screen, it does this:(note that this should not happen, I set orientation to landscape)

    But when I rotate the device back to landscape, it does this:How can I prevent this from happening? Thank you!

  • Hey LittleStain, thanks for the idea of testing in browser! I'll definitely do that from now on. And the images above are, for some reason, cut off halfway. Scrolling is not the issue, just zoom. I THINK I've fixed this by using scroll outer (so it shows the yellow "game" zone and any extra is the blue "safe" zone), but I'm getting issues on rotating the android device. Thanks again for your help though

  • I have done 2 tests to try and learn how mobile screen sizing works, but I'm still very confused.

    Here is a picture of what the test layout looks like. Note that both the outer blue layout and inner rectangle are 9:16 aspect ratio:

    I built and loaded this onto my android phone twice, only changing the window size. My intention was that the tan-ish inner 9:16 rectangle would act as the game "safe zone" (EDIT: it won't let me post the video, but it's the one from Ed about safe zones and window sizes), while the outer blue area would simply show additional background for devices not matching the 9:16 aspect ratio.

    For the first test, the window size was set to the size of the inner rectangle- I wanted to see my 9:16 screen filled with the 9:16 tan rectangle (I made the window scroll to the center of the layout). Specifically, the layout size (blue rectangle) is 1280 x 720, and the inner rectangle is 640 x 360. Unfortunately, here is how it looks on my phone:

    ... there are still black bars. Why doesn't the tan inner rectangle fill the entire screen? Or at least display the outer blue instead of black bars? Maybe this is due to the Letterbox Integer Scale (which I am using because I would like to make a retro-styled game), but that doesn't explain the next bit.

    I changed the window size to match the blue rectangle, 1280 x 720. Now, I was expecting that the Letterbox Integer Scale would scale the window, leaving the black bars like it had on the first build, and I would see the entire layout in the same size as the rectangle of the first build. HOWEVER, I got THIS:

    Why did it shrink the window even though window size was increased? Is there any way I can still do a retro game, but eliminate the black bars shown around the window?

    Any help would be greatly, greatly appreciated. I have read just about every tutorial and am starting to get frustrated.