© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•2y ago•
9 replies
jupiter.ryo

✅ A problem with field.

I have an abstract
Entity
Entity
class. This class has "Position" field.
I also have a
Player
Player
class, that inherits from
Entity
Entity
.
Position
Position
in
Player
Player
sets to an certain value (let's say 1, 1) every frame. But for some reason, if I'll try to access entity's position it'll only return the position that set through the constructor, no matter what I do. (it's 0, 0) figuratively speaking, how can I make it return 1, 1?
image.png
image.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

✅ a problem with a project
C#CC# / help
7mo ago
✅ Problem with a Recursion Function
C#CC# / help
2y ago
Problem with creating a project
C#CC# / help
2y ago
Problem with a Vehicle Catalogue
C#CC# / help
3y ago