❔ need some code fixing
this is actually a traslation of code from a program "bubble blaster" from this book
14 Replies
the errors aren't exactly vague
do you expect us to just... do all of this for you?
just explin how to fix one of each type and i will be on my way
i mean. alright i guess? the errors are very self-explanatory. and without context, nobody can really tell you how to fix them
the first couple mean that you're using the types wrong. in line 223 for example you're using a
SolidBrush
where it expects a Point[]
and a Point[]
where it expects a Color
the does not contain a definition
errors mean that whatever type you're trying to access a method or property on does not contain this method or propertythis is actually a traslation of code from a program "bubble blaster" from this book
sure
Don't you get tired of asking the same 'pls fix' question and getting no response?
@solomoncyj
graphics has no move method, you will have to use the draw methods to draw the ships and bubbles
Also this. CreatePolygon has no overload that takes a brush
thats draw polygon not create
Riiiight, nvm that then
But still, the signature of
CreatePolygon
must be something else than CreatePolygon(Brush, Point[])
There we goare you inverting parameters order or something
money's on chatgpt
you are 100% correct
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.