I think being moral is about being helpful or neutral to the other people’s goals.
Just don’t do what is offensive or hurtful to them, or maybe do something that is helpful for them to achieve their goals.
A typical villain is considered bad by other people because he is trying to achieve his goals against the will of those other people.
A typical good man or a hero is considered as such because he helps the will of the other (often many) people.
Sometimes it’s good to just behave to other people the way you wish them to behave to you.