Hey there, I was wondering how I would go about making an in game avatar editor.
Basically, what way would be the best way of doing it?
Somehow adding the items from the catalog automatically (is this even possible?)
Adding the items manually
I’m not sure if the first option is even possible, let me know if it is, and if so, how I would go about doing it with that method.
In regards to the second option, how would I display the items from the catalog? Would it be as easy as uploading an image of that item and then putting it as the Image in the ImageButton?
You could take the roblox code for the avatar on the website and transfer it to the roblox game then the hard part for you would trying to fully implement it
Good luck on your quest
Have a nice day
I would like to warn you before doing so as it can be exploited by hackers in many different ways, this has happened to meepcity and it wasn’t good at all.
I’m currently in the middle of reworking my current in game avator editor. I don’t know if uploading from the catalogue automatically is the best idea, as it could add a bunch of junk items you don’t want in game. Here’s what I am currently doing for my faces
Then I can have values, like do they require VIP to equip, and later on down the track how much an item would cost, etc.
Then I simply loop over each item, using the ID you can set an icon to the asset icon using this
Icon.Image = 'https://www.roblox.com/asset-thumbnail/image?assetId=' .. id .. '&width=420&height=420&format=png'
And that works for mostly everything, such as faces, clothing, accessories (doesn’t work on bundles, might be few other things as well)
In case you want the code for getting icons for bundles
Icon.Image = 'rbxthumb://type=BundleThumbnail&id=' .. id .. '&w=420&h=420'
Problem is, it can be quite time consuming and tedious having to get ids for each item, and their names, etc. But it’s usually worth it as you can control what items get added to your in game customisation.
Feel free to ask any other questions, would be more than happy to answer
That’s basically how I’ve done it It can end up being hundreds of lines long, but if everything is kept organised and clean then navigating around it and adding/removing items won’t be a hassle
I’d recommend getting anything that you’re gonna include in all UI elements manually, as :GetProductInfo() has a 100 query request limit. But if you only require the items info upon player selecting the item then you should be fine.