Learning C#
Im learning C# and im following alot of tutorials recently , but my question is how do i learn to code with creativity. Like it would be cool if i could do this or could do this, and than just code it. Everytime i want something in my game i can code it but i need a tutorial, that means that someone already had that idea and made a tutorial about it so i just want to know how to do this without having to follow a tutorial. Because i see alot of poeple doing this and my answer is do i need to learn a frickin long tutorial of 24 hours or how does this work.
Thanks for your attention, 😉😎
About this post
- Posted
- Archived
- Score
- 1 · 67% up
- Kind
- Text
- ID
- p02ar7
7 comments
Quastion what are you want make -> lern it -> make it this
Yeah but i mean i brainstorm alot so i get ideas where most of the time isnt really a tutorial for.
If you learn the fundamental constructs i.e. objects, loops/recursion, functions, lists/arrays, conditionals (if, switch) plus the way your particular language handles canvases/drawing contexts and animations, then that should be all you need. Just take one of your ideas and ask yourself, using the things I know how to do, how could I make this idea work? Because no matter how big your idea is, it is built on combinations of many smaller things that you find yourself doing over and over again. This is what I do and of course I lean on tutorials when I get stuck. Not sure if this helps...I'm not a total beginner but neither am I a pro.
Quick example: in RPG combat you'll need a function that rolls and returns a random number to another function that uses as parameters the Player stats (Player.armorClass,Player.strength,Player.equippedWeapon.damage) the Enemy stats and the die roll calculates the result and then returns that to a third function that updates damage or whatever.
Every idea is just a chain of logic; an algorithm that uses, in this example, random number generation, function calls, Object.attribute notation, basic math etc.
Dude….. if you don’t know how to do something, then watch a tutorial , some guy on reddit is not just gonna give you the answer to unlocking all knowledge. eventually after a while you start to be able to code things on your own, trust me it will happen and there will still be some things you can’t do and that’s all ok
Yeah i understand i just wanted more of an answer how to learn it the right way.
The reason I said that is because I had the same mindset as you not too long ago, but trust me, one day after watching a bunch of tutorials it will just click.