How do I set the bumpmapping position to be same as a sprite.?

0 favourites
  • 3 posts
From the Asset Store
10 Beautiful Pokemon-like Building Pixel Art Sprite Sets
  • I've seen the example and I have my bumpmapping on a separate layer. I set the parameters x and y of the bumpmapping effect like so...

    (Spaceship.x/LayoutWidth)*100

    (Spaceship.y/LayoutHeight)*100

    This 'should' put the bump map at wherever my spaceship is, but instead the light is offset. The more I move to the right for example, the more the light move further to the right of my spaceship. The same in all directions. Its only ever correct in my starting position.

    It seems maybe there is some kind of light direction that's not definable maybe?

    Is there a way to position the light 'source' exactly where I want it?

    Maybe there is another alternative this?

    Cheers

    Tagged:

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Wouldn't you want to set the position just to Spaceship.X, spaceship.Y? I feel like that math doesn't make much sense.

    I've never used bumpmaps so maybe I'm misunderstanding something...

  • Just to make things difficult it seems the coordinates for the bumpmapping effect used co-ordinates between 0 and 100 so it has to be normalized.

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