changing diffuse's with NKGetStaticGraphics

RawrRawr REGISTERED, Tester Posts: 511 Seed
edited March 2015 in Code
Hey everyone!

Today I was mucking around with trying to change diffuse's at different points in my code.
I found the NKGetStaticGraphics function from the API but can't seem to accomplish what I want with it.
I think it returns the table created within my data file. My best attempt was:
self:NKGetStaticGraphics()[Diffuse] = 1 --(tried 0 and 2 as well)
But that seemed to get me no where.

Hints please.
Programmer, designer, artist.


  • SigilSigil REGISTERED Posts: 678 Developer
    My understanding is changing the textures via code is not currently possible. I think it's a planned feature but hasn't been done yet.

    What you can look into is swapping the object for another with the same model but different texture.
  • RawrRawr REGISTERED, Tester Posts: 511 Seed
    Because there was different diffuses there I was gonna use one to show that the stone was linked to another. Bummer. I'll add it in later.
    Programmer, designer, artist.
Sign In or Register to comment.