socksmoment's Forum Posts

  • 8 posts
  • Also the Scroll To behavior already does this.

    I'm using the Scroll To behaviour on the camera sprite, I just need the object to be centred so the camera is centred. I can't centre it manually because I'm adding a camera for each room in the game (the system is how Undertale does it, you walk to the edge of a room, camera goes to the other room) and there are a lot of rooms.

    If you don't need the zoom just average the x and y "for each" sprite, and divide each by the number of sprites.

    I feel like this would take even longer than doing it manually, having to type out every single x and y value for over 100 tiles in one room.

  • Basically the title. I need to put my camera object in the direct middle of a set of other sprites (my level). I can't make multiple, as it adds a lot of work for moving to other camera later. Anyone know?

  • Hello! I won't say that I'm installing construct 2 for the first time, but I still have little experience and haven't exported my game.

    I'm worried about these questions below, because I have to choose a game engine with minimal system requirements, as my computer is weak. And construct 2 looks very cool.

    1) Will I be able to export my game normally for PC or Android? I would like everything to be exported correctly and correctly. Last time I did not succeed, and on some forums wrote that you need to install additional plugins, so I decided to ask.

    2) Does this engine have good competitive quality when creating mobile games on a modern android?

    3) Will there be problems if I add ads to the game?

    4) Will the game be optimized and without strong glitches compared to a unity, for example? After all, I've heard a lot that the problem of game development on Html 5 is low optimization and delays, because for mobile devices, this programming language is unnatural.

    5) Is there a system of effects, such as explosions, fire, fog, or do you need to draw everything by hand?

    I look forward to answering these questions, thank you!

    Since nobody else wants to help, I'll try. Not very good at this, though.

    1. You'll have to do some extra stuff to get it on Android I believe, if you're trying to get it on an APK directly. Works in Mobile web just fine, though.

    Don't know how to answer 2

    3. I don't think you can add ads directly in Construct 2, but if you figure it out, it probably shouldn't.

    4. There are a few 'glitches' but you can easily google fixes.

    5. You'll have to draw everything by hand, I believe.

    I really don't recommend moving to Construct 3 unless you have the money to sink into it, it's a subscription based program which means you're going to be spending a lot of money over time.

  • On clicked, store Mouse.X and Mouse.Y

    Use math to split the position with grid size so you will be able to know the grid position to place the object.

    Example: Mouse.X=1222 and Mouse.Y=342

    The grid size is 128x128 so

    1222/128 = 9.54

    342/128 = 2.67

    So you need to create the object on grid 9x2..

    Converting into pixels.. 1152x256

    I am very late, but I tried this from what I could understand. I got this. imgur.com/7gmtUit. But, it doesn't work, and just places it far away from the mouse (on no grid).

  • You do not have permission to view this post

  • Here's a example. It's not true perlin noise but it is smoothed noise.

    smoothed noise can be done as simply as filling an array with random values and using bicubic interpolation to get in between values. Here I went a step further and just used a 1d array and used a hash to pick an index from any x,y.

    Anyways, the actual terrain generation in event 6 should be much the same no matter what noise function you get. Although you probably would want to use a tilemap instead of sprites.

    https://www.dropbox.com/s/54umwiypls46s0l/noise_gen.capx?dl=1

    this is pretty cool but i honestly. really don't understand like any of it, and it generates stuff in the sky when I'm trying to make just simple sandbox terrain.

    if any of you know how to do something like. spawning stuff randomly in flat terrain or something that'd help too!! like ores and stuff! i can't edit my original post so im putting it here

  • I know this title looks like something that's been asked a thousand times and is in the how-to thread but the thing is with the other posts, they're all just vague solutions that say to download a capx file, but the links to those files are all dead, and usually die after only a year or so.

    So, what I'm trying to do is make randomly generated, not infinite but kind of big, terrain for a sandbox game I'm making. Maybe with Perlin Noise, but I have no idea if Construct 2 even supports that. Whatever works is fine, this is just an important part of my game and I have not a single clue on how to even achieve it.

    Tagged:

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • So, I'm making a sandbox game. I want the player to be able to place objects where their cursor is, but i still want it on the 128x128 grid. I can't find a way to do this, I don't see a way to make something spawn on the cursor, but on an offset. Any suggestions?

  • You do not have permission to view this post

  • the title. i'm trying to put a physics object into my platformer, i put down a crate and gave it the physics behavior, but when i start the game it's gone. would love any help!

  • 8 posts