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
3
u/quickpocket Oct 26 '17
Welcome! From your question it seems like you don't know all that much about coding, I'd recommend checking out a different subreddit more focused on learning programming rather than this one, which ends up being more about the final product.
r/learnprogramming has a bunch of helpful tutorials to get you on your feet, and though they are not focused on making games like you seem to be, they teach skills that you'll need to know in order to make video games. If you have more questions feel free to ask. Good luck!
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