19 Replies
so im making a simple rpg game and im trying to save the variables to a method that displays character info
((i know it needs refining id like to just get it working
thought id take a better screenshot
specify type of varriables you want to recieve
In the ()?
So if I’m calling a variable I have to do it with every static method?
how can you call a varriable
you defined your methods inside Main method
move them out and then call them inside Main
Ahhhhhh
I get it now
So you kinda enable those variables per method
And specify it
kind of
So you can specifically define which variables per method
also if you want to use those properties
you need to make them static as well
So change them from public?
public is fine
just add static
public static float ...
Ah ok what will making it static do?
that you can use it in static methods
and all your methods must be static if you want to call them inside Main since main must be static method
complicated stuff
ah il figure it out lmao
but yeah that fixed a lot of stuff
and i learnt something very useful
thanks!
np