Hi everyone,
I’m new to coding with Monogame, and in C# in general. I watched a fairly old tutorial on Youtube on getting started and they used named parameters when using the spritebatch.Draw() method. I never tried it specifically with the Draw method, but rather with the spritebatch.DrawString() method as I assumed it would be the same, but I get this error:
No overload for method ‘Drawstring’ takes 5 arguements
I understand, however I need to specify the origin for the text to be centered without any of the other parameters that would normally be in-between. The specific tutorial for where I was first shown named parameters was here:
at 5:36
This tutorial is pretty old by now, so there is a chance an update has made it no longer work. Is it still possible to do this?
This gave me some ideas for my soon to be announced solution for beginners, so, my advice for now is, don’t get too hung up on one tutorial, fish around for a solution, it is the best way forward in coding.