3D Background/Foreground

This forum is currently in read-only mode.
0 favourites
From the Asset Store
3D Car Pack 1
$2.99 USD
3D models + Rendered Low-Poly Cars in isometric, top-down, and side angles.
  • Bascially, I want to do something like this in the video. 2D Sprites, 3D background. Would I use the 3D Box object?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • What part, the battle, or before that?

    Either way, you would probably want to use a mesh.

  • The battle, but use the mesh object?

    One more thing. Since Construct won't even add a counter object and a text blitter object seems far off at this point, how would I show a value using sprites? I know I can use the text object, but I'd rather use graphic numbers. I was told how to do this, but I forgot it.

  • debug mode?

  • Since Construct won't even add a counter object

    What do you need the counter for? you can just increment PVs to act as counters.

  • Use a private variable to store the number.

    Use a sprite with 10 animations, each of which represents a number (from 0 to 9). Alternatively, just use 10 sprites, each representing a number. Whatever floats your boat.

    For each digit in the variable, display that sprite/animation. You can use text manipulation or math manipulation to read digits.

    In this case, we're using math manipulation. Divide by 1000 to get the thousands, 100 to get hundreds etc.; to get hundreds only, substract thousands you got from earlier... example:

    Score: 1337

    Fifth digit: 1337/10000 rounded down equals 0, so display 0

    Fourth digit: (1337 - Fifth digit * 10000) / 1000 rounded down equals 1, so display 1.

    Third digit: (1337 - Fourth digit * 1000 - fifth digit * 10000)/100 rounded down equals 3, so display 3.

    ...

    And so on till the first digit. I'm sure there is a simpler way to get digits.

  • Either way, you would probably want to use a mesh.

    It actually looks like simple parallax scrolling (change the layer scroll rates). Also you don't need a mesh at all if it's just a flat object in the distance - just use Z elevation.

  • > Since Construct won't even add a counter object

    >

    What do you need the counter for? you can just increment PVs to act as counters.

    graphic numbers

  • >

    > > Since Construct won't even add a counter object

    > >

    >

    > What do you need the counter for? you can just increment PVs to act as counters.

    >

    graphic numbers

    Yes but isnt that what a text blitter is for?

  • You can use Bitmap fonts.

  • here coincidence.

  • youtube.com/watch

    Bascially, I want to do something like this in the video. 2D Sprites, 3D background. Would I use the 3D Box object?

    The thread has gotten off track but I'm returning to the original question here

    It looks to me that only the ground is a 3D plane. So yes, you can get the same effect using a 3D Box (or a series of them) for the ground to get the proper foreshortening. The players, trees, and bushes can be simple 2D sprites with 3D Z layering. No need to use a mesh at all.

  • 3D Z layering?

  • Yes, a new feature since .99. Sprites can have Z depth just like 3D boxes can. It automatically Z sorts and scales them, and they move in proper parallax without having to use separate layers.

    Check out this .cap for an example (though it's a rather simple example):

    notice how all the clouds and rocks are the same size and on the same layer, but when you run it they appear to have depth. It's just a simple example and the Z sorting doesn't work in that .cap but that can be easily fixed.

  • I got the visual Values, but is like off by 100.

    The values is 888, I get 777.

    <img src="http://i61.photobucket.com/albums/h53/Sodisna/Values.png">

    It's not working.

    I'm trying to random damage pop-up.

    Here's the cap file.

    http://www.mediafire.com/download.php?yyjybyzimjm

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)