craigsssmith's Forum Posts

  • 5 posts
  • Actually, this is more of a "is it possible to..." type question. I'm creating a 3D game, using C3's new 3D features. To simplify the process of creating the levels, I'm only placing horizontal surfaces in the editor, then I'm generating the walls at runtime. Each wall is an instance of the same 3D object, with different objects used for the textures on the visible faces, and I'm using Tiled Backgrounds so that the textures wrap nicely across the walls.

    It's working pretty nicely, but there's a catch: I have to create one Tiled Background object type for every texture in the game.

    What I'd like to do instead would be to create new object types at runtime, assign them a texture (using the "Load image from URL" action), and then use that object as the face of a 3D object.

    But it doesn't look like there's a way of creating object types, right?

  • Great idea! I added it as a suggestion here construct3-21h2.ideas.aha.io/ideas/C321H2-I-102, in case anyone else has the same issue, and stumbles across this thread as a result. :-)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thanks for the advice newt. I gave it a try and it turned out to be fairly straightforward. It feels a bit icky because I'm relying on the internal structure of the save file, which isn't part of any public API, so could change in a future version I guess, but it does the job for now.

    It'd be much nicer to have an Instance.GetMeshPointX(index) function (and likewise for the y-coordinate).

  • Oh yeah, that would definitely work, but it's probably a bit too much work. It's a shame there isn't an easy way of accessing the points, since you can set them easily enough.

  • So, I'm playing around with the new 3D features. I'm building levels by placing horizontal surfaces (floors and ceilings) in a layout, using Tiled Background objects. The walls are then generated at runtime by creating 3D shapes (cubes). It's working really well so far, but all of the surfaces are rectangular in shape.

    I could use meshes to transform the surfaces to be arbitrary shapes, but then in order to generate walls in the correct places, I need to be able to retrieve the mesh points at runtime. Is there a way to do this, since can't find anything in the documentation?

    Thank you.

  • 5 posts