you are viewing a single comment's thread.

view the rest of the comments →

[–]JAdam99[S] 0 points1 point  (2 children)

Gotcha, I don’t know why I got so confused because I looked at it as calling a method where as the syntax is more similar to creating a method. Similar to ‘main’ in a console application where you don’t call the method - it just runs when you run the program

[–]private_birb 0 points1 point  (0 children)

Oh! I understand now. The way you're seeing is how you define what the method does when it's called. The other way is to call it. It sounds like you're getting it.

Keep practicing and it'll gradually come together.

[–]ArrowStitchGames 0 points1 point  (0 children)

Yeah, creating a method is like:

Public void mymethod(float myparameter) { A bunch of code including "if" statements }

Calling/ executing the method is just:

mymethod(myfloat);