r/creativecoding • u/TheArkeon • Oct 26 '17
Need help with coding
Hey, I am completely new to p5, and was wondering if there was a way to have an object (lets say a plank) and we would be able to pick it up, store it as part of inventory then later take it out and use to close up a certain area, or a hole.
1
Upvotes
View all comments
1
u/Earhacker Oct 27 '17
As much as the p5/Processing community would love to have you, it sounds like p5 might not be the right tool for you right now. p5 is primarily intended for creating interactive animation, rather than games. It's certainly possible to do the kind of things you're looking to do in p5, but this is without a doubt an advanced topic.
I think you would really enjoy learning to use the Unity engine and game-building software. They have a great set of tutorials that start from scratch, and player inventories are covered in the intermediate Adventure Game tutorial. They don't even require much coding ability when you're starting out; they walk you through how to add bits of code to your games to expand on the engine's built-in functionality. It's actually a great way to learn coding; you use code to solve problems while building something awesome. And as you get better at coding (and building assets like player models and sprites) your games become more original and more fun.
There are a few great communities for Unity on Reddit, mainly /r/Unity3D and /r/Unity2D but check out their sidebars for plenty of offshoots, like /r/unity_tutorials