Skip to content

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, 😉😎

1 points7 comments
Open on Reddit
About this post
Posted
Archived
Score
1 · 67% up
Kind
Text
ID
p02ar7

Author

13
posts
9
comments
4
media
View profile

7 comments

Yeah but i mean i brainstorm alot so i get ideas where most of the time isnt really a tutorial for.

1 points

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.

1 points

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

0 points

Yeah i understand i just wanted more of an answer how to learn it the right way.

1 points

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.

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.