0 Favourites

sprite draw distance

This forum is currently in read-only mode.
  • Is there a way to increase the draw distance of sprites?

    I've been working on a 3d terrain mesh. It's pretty spiffy, but distorted sprites stop getting drawn as soon as there actual location go's off screen.

  • Construct 3

    Buy Construct 3

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

    Buy Now Construct 3 users don't see these ads
  • Objects are only drawn if their bounding box is on the screen, and the bounding box is always at a ZElevation of zero.

    You ca design your game so that the ZElevation of objects (and distort points) never go lower than 0, just shift them higher. You can also increase the project property "eye distance" if they are getting clipped by being close.

  • well.. its not actually "3D". I'm not using the z 3d distortion of the sprite, so the view distance does nothing, I'm just distorting the .y of a point

    http://imageshack.us/photo/my-images/843/terain.jpg/

    Is there a way to increase the screen size of drawing objects, but not the actual resolution.

    In construct it self, or even in python?

    OR can I edit the bounding box of a sprite, but not there actual height/width?

  • I got it backward, keep the ZElevation and Z distort less than 0 so that the object is mostly contained in it's bounding box. Another approach would be to always position the object at the middle of the screen and use "absolute displacement".

    s there a way to increase the screen size of drawing objects, but not the actual resolution.

    In construct it self, or even in python?

    OR can I edit the bounding box of a sprite, but not there actual height/width?

    No, you can only design around it.

  • I think kinda what your thinking along the lines of center then absolute displacement could work.

    I'm going to try making the sprite 2 or 3 times its size, then relatively displace the sprite to half its size, since displace doesn't actually change the size or position of an objects bounding box this should work.

    In terms of were there actually placed, they would be overlapping each-other significantly.

    but all my terrain collision will be based off of an array, so It shouldn't matter.

    I'll let you know what happens.

  • works like a charm, thanks so much for your help. <img src="smileys/smiley1.gif" border="0" align="middle" />

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)
Similar Topics Posts Views Last Post
Unread hot topic
0 Favourites
Sprite Font Generator - v3
368 112,276
RetroDaddy's avatar
RetroDaddy
Unread hot topic
86 28,703
St4rDu57's avatar
St4rDu57
Unread hot topic
153 104,428
DravenX's avatar
DravenX