© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•2y ago•
5 replies
Shrow

Trying to get a method to work

I'm very new to code.
On the first image you'll see from line 58 to 62 the method I've declared.
On line 94 you'll see where the method is being used. Unfortunately the line appears to be ignored. Why is that?
I could just write Monster1.hp -= attroll; but I'm trying to learn methods and be more object oriented.
Page1.PNG
page2.PNG
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Trying to get Identity to work
C#CC# / help
14mo ago
System.EntryPointNotFound when trying to get C++ method
C#CC# / help
4y ago
❔ TargetParameterCountException when trying to create a delegate from a method
C#CC# / help
3y ago
Trying to get a small free database?
C#CC# / help
2y ago