Thanks a lot! Now I finally can launch my game update!
I tried to make that if, the player clicks with right mouse button on a sword(for example) and the sword slot is occupied, then it transfer from the inventory array to the variable(the sword slot, that’s one only) and vice versa.
Develop games in your browser. Powerful, performant & highly capable.
Hi, I was adding the final details and find that I would need to do something important: Make an equipment swap system like, change the equipped sword by other sword in inventory
here's the cp3 file: dropbox.com/scl/fi/odccu66cvyfuhe9uyqdky/Power-Gem-Fetcher.c3p
Note: To test the mechanics, go on the "test" layout and to access the code, it's on HUD>Inventory>SwapItems
Actually, I finished it, but I'm trying to make an equipment swap system.
The item equip system (if needed)
The item swap system
I tried using xy as you said, but it still doesn't work.
It was like this:
0: Name
1: Item 1
2: Item 1 Amount
3: Item 2
4: Item 2 Amount
dropbox.com/scl/fi/rnjhmv9ebtwewwmr1ppo1/Game.c3p
No, because now the amount of items used to craft aren't substracted by the amount required by the recipe, but the item to craft is CRAFTED, even, for example, the amount on the inventory is less than required
I did like:
Z:0
0:Name
1:ItemA
2:ItemB
Z:1
0:(Nothing)
1:AmountA
2:AmountB
It put it like this: (Sorry if it's hard to read)
The crafting function:
Checking if the item is craftable:
Hi, I was doing my crafting system and wanted to, for example, make a craftable wooden shield that cost 2 wood items to craft. How do I do this?
Here is the cp3 file: dropbox.com/t/oXYL4mnXJG67vgeY
NOTE: I'm using an array that registers the crafts, the crafting mechanic is at HUD>Inventory>Crafting System, and you can test it at the test layout.
I actually wanted something more simple, since I'm using tilemaps.
Hi I'm using the platformer behavior and have 2 parts for the player: one hitbox and an animator, and I wanted to make, for example: if he's on a slope, then his rotation gets aligned. Any ideas to do it?
Member since 2 Jul, 2023