abho's Forum Posts

  • UPDATE 2:

    So, I finally fixed it. What I did was remove two other triggers that were identical to this one elsewhere in the project, and it worked. I don't understand why though

  • UPDATE:

    I tried 'On keycode released' and that works fine. For some reason, it's just 'On keycode pressed' that won't work

  • I have an array called 'Controls' with all the keycodes for each type of action... except they just refuse to work.

    This event won't run. It does run if I put 'On key E pressed'

    The keycode at 6 in the array is '69'. I've tested to make sure that's true; the debugger says so, and using this event says so too.

    And then I tried this...

    And this doesn't work either?

    Tagged:

  • I'll give it a go, thanks!

  • I know of the existence of "create object by name" which would be enough to simplify this all into one event... but the problem is that I have to set an instance variable upon spawning as well. All of these objects are in the same family, and the instance var is from the family.

    Any ideas? Is it possible to reference an object by name within a family or something?

  • I'm making a custom overlay for my textboxes so that it's pixelated. So far it works great - the textbox is made invisible with css, and the spritefont mimics what the textbox would do. I even have the little text cursor (the blinking bar) appear at the end of the text. However, this is a problem when the user clicks elsewhere in the text to type, or uses the arrow keys.

    I'd like to get the position of the cursor, but even better would be if I could find another way to get a pixel spritefont textbox.

    Project included:

    drive.google.com/file/d/1a5lqWqzvnKtE9ASDPkZXOA7hYSdLxal0/view

  • Thank you for the detailed reply! I feel a bit more confident now.

  • I'm asking this before I set out to do it so I don't get my hopes crushed.

    I'm making a game with a level editor. Naturally, I want players to be able to upload their own levels to some sort of server, so that you can play each other's creations.

    I'd also like players to be able to upload a thumbnail with a specific resolution alongside their level. I've learned that there is a file chooser that allows for something like this.

    Is it possible to upload this image along with the level (which is just a long string)? How do I even make a server like this?

    Can I add a leaderboard that goes alongside each level?

    If a player uploads an inappropriate thumbnail can I delete it, and can I have someone be a moderator so they can delete it too?

    Can players rate levels? Report them?

    I'm fairly experienced as a construct dev, but this is all stuff I don't know anything about. So I'd like to know if this is within the realm of possibility to do (and by just one person).

  • I want my array to trim itself down to just contain the main data. Sometimes columns and rows on the sides, top, or bottom will become completely empty (filled with 0s) and I want to delete this.

    The image shows how it works - the blue box should be the array after trimming is complete. Just everything that I need

    I've tried for a while but can't figure it out. Any ideas?

  • "Also, seems like you don't understand the difference between Scale Inner and Scale Outer modes."

    yeah that was a mistake I meant to say that it showed parts of the layout that I didn't want it to.

    "Or do you want to distort your entire game to fit into any monitor or window resolution? "

    yes, but valid concern... hmm

  • Yeah, i'm asking how to distort it. Four pixels of stretching would be barely noticable I think so i'm fine with trying it

  • I have an 8x8 tileset that I want to fit perfectly on the screen. This won't happen with my 428x240 viewport. I can stretch it out to 432x248, but then black bars appear at the sides of the screen during fullscreen.

    I can't use scale inner, since that cuts off bits of the sides.

    Same for scale outer, which cuts off the top and bottom.

    Letterbox scale and letterbox integer scale result in black bars.

    I can make it 432x240 instead, which still has black bars, though they're barely visible (still annoys me and I don't want mouse input to go off screen for a reason).

    Is there a way to just stretch the display to account for these black bars?

    (my game is low quality pixel rounded)

  • I originally used low fullscreen quality and pixel rounding, but this didn't do the trick for me, since I still wanted smooth elements in the game.

    imgur.com/3RVJu5O

    Here you can see that the pixellate effect (on the red scarf) isn't consistent with the game window.

    I know of the Platforminfo plugin that can give me the size of the game window, but I can't come up with a formula to feed to the pixellate effect parameter.

    Tagged:

  • It's very inconvenient that I can't put tilemaps, sprites, and 9patches in the same families. Perhaps is there a way to do so that i'm not seeing?

    And if there isn't, what's the next best alternative? I really don't want my code to be filled with three different conditions all testing the same thing for three different families - there must be a way to reference multiple object type instances with one condition

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I think I didn't describe it right. I don't want the gate to launch the box out. The gate is basically a moving platform. Imagine it's going upwards, and there's a box on top of it.

    How can I check which direction the box is able to go in?