Offset 3d shape face at instance-level

0 favourites
  • 1 posts
From the Asset Store
Template for a basketball game with a 3D aspect (illusion of 3D)
  • Hello fellow constructeers,

    I was wondering if there is a feasible way to alter the texture offset on a 3d shape.

    Let's consider the following scenario:

    Consider 16x16 box 3d shape. The shape has set a tiled background (256x256 image) as face. The 3d shape gets cloned 16 times (e.g. create, then set from JSON) and the copies are placed next to each other. Altering the y-offset of the tiled background by loopindex * 16 during the creation loop of course changes every box instance.

    The common workaround is to put box & texture in a container or create a hierarchy.

    This though is resulting in unnecessary object count overhead.

    I was wondering if there is another way (maybe JS) to offset the box face per box instance?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)