is there something like entitycolor?
BlitzMax Forums/BlitzMax Beginners Area/is there something like entitycolor?
| ||
is there something like entitycolor for sprites in Max? I'd like to be able to tint my sprites. |
| ||
Use SetColor r,g,b before you draw the sprite. Remember to do a SetColor 255,255,255 when you want to stop tinting. |
| ||
DrawColor or SetColor. Can't remember which. |
| ||
Although BM documentations aren't that great, this kind of stuff is clearly described in the Max2D section. Reading it would definitely not hurt you Craig ;-) |
| ||
Yeah right. That's where I started. The docs tell you what the command is, but does tell you how to use it. That's REAL clear. |
| ||
Function SetColor( red,green,blue ) Seems pretty clear to me.Description Set current color Information The SetColor command affects the color of Plot, DrawRect, DrawLine, DrawText, DrawImage and DrawPoly. The red, green and blue parameters should be in the range of 0 to 255. Have you got a problem with your documentation generation? It's happened before. People have been bitching about the docs and it turns out that they'd only had the function definitions generated. |
| ||
... a few more examples in the doc might be helpful. However, you can refer to this |
| ||
Function SetColor( red,green,blue ) Description Set current color Information The SetColor command affects the color of Plot, DrawRect, DrawLine, DrawText, DrawImage and DrawPoly. The red, green and blue parameters should be in the range of 0 to 255. Take yourself out of a person that already knows the language and this information is near useless. It doesn't tell me where I can use the command in my code(in context). I've figured it out now, but without examples you have to know how to code in BMax before this kind of doc system is actually useful. |
| ||
... a few more examples in the doc might be helpful. However, you can refer to this If you're looking for a solution then take this chap's advice as he really is talking sense. |
| ||
Take yourself out of a person that already knows the language and this information is near useless. I wasn't born knowing how to use BMax (;o)) and I've always found the docs to be 'adequate'. It is, however, hard to be objective (excuse the pun) about this kinda stuff as it's difficult to remember how much information came from the forum and the (now deceased) wiki as opposed to the supplied documentation. :o)Anyway, have you read this? TBH, I thought this was included with the docs. It definately *should* be. |