Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > Programming and Scripting
hey Niko how to use external texture file in ccb game....

just_in_case
Moderator
Quote
2016-06-02 06:13:00

Hey niko and all,

I am working on a game and I want that my game user can create their own skin for player model.... for that I have created a folder named player skins to the main.directory...

And created a configuration.menu in my game... but I don't know how to add functionality... when I add some ."png" file to the skins folder...
Then how to display that texture in my configuration menu... and when clicking on particular texture and click on apply... the new texture will be applied to player models...

It will be helpfull to create clothes and all other things.. for player model... which will unlock on a specific level..

Anh ideas how to do that???


niko
Moderator
Quote
2016-06-03 07:14:06

You can use the ccbLoadTexture() function for this, it should do the trick, did you see it?


just_in_case
Moderator
Quote
2016-06-03 08:02:35

Yeah I know that but I want that it will display a thumbnail of texture contains in the folder and when on cliking that thumbnail.. the ccbload texture javscript will execute and assign the selected thumbnail to model...

But it doesn't seems to be possible..


niko
Moderator
Quote
2016-06-03 09:24:17

Ah, you mean you would need some method to iterate the files in a directory, right?


just_in_case
Moderator
Quote
2016-06-03 14:44:16

Yes exactly...is it possible..


niko
Moderator
Quote
2016-06-04 08:48:30

Hm.. no, sorry, right now I don't think it is.


just_in_case
Moderator
Quote
2016-06-04 18:38:32

Hope this should be added in future updates..


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Intern?tional" (you are not logged in)


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   






Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact