fortysixand2
Member
Hallooo. I'm hoping there's someone who can lend a hand with a brain squeezer I have.
I'm trying to set up a rounded gauge something like this:
http://i17.photobucket.com/albums/b73/e ... geBase.png[/img]
In-game, the red is being drawn from a seperate PNG with transparency. What I'm looking to be able to do is draw a section of the gauge based on a segment of a circle, or an angle radiating from the centre of the gauge; currently, I only know the standard Rect.new method of drawing sections of an image. To explain:
http://i17.photobucket.com/albums/b73/e ... eSmall.png[/IMG]http://i17.photobucket.com/albums/b73/earthofmine/RMXP/designexamples/SampleGaugeResultSmall.png[/IMG]
http://i17.photobucket.com/albums/b73/e ... dgeBig.png[/IMG]http://i17.photobucket.com/albums/b73/earthofmine/RMXP/designexamples/SampleGaugeResultBig.png[/IMG]
In the examples above, the left image shows the angle to be used while the right shows the resulting draw in-game.
I'm perfectly aware that this may be unfeasible, but if anyone's got any pointers at all on how to define the angled segment for drawing, it'd be immensely helpful. Thanks.
I'm trying to set up a rounded gauge something like this:
http://i17.photobucket.com/albums/b73/e ... geBase.png[/img]
In-game, the red is being drawn from a seperate PNG with transparency. What I'm looking to be able to do is draw a section of the gauge based on a segment of a circle, or an angle radiating from the centre of the gauge; currently, I only know the standard Rect.new method of drawing sections of an image. To explain:
http://i17.photobucket.com/albums/b73/e ... eSmall.png[/IMG]http://i17.photobucket.com/albums/b73/earthofmine/RMXP/designexamples/SampleGaugeResultSmall.png[/IMG]
http://i17.photobucket.com/albums/b73/e ... dgeBig.png[/IMG]http://i17.photobucket.com/albums/b73/earthofmine/RMXP/designexamples/SampleGaugeResultBig.png[/IMG]
In the examples above, the left image shows the angle to be used while the right shows the resulting draw in-game.
I'm perfectly aware that this may be unfeasible, but if anyone's got any pointers at all on how to define the angled segment for drawing, it'd be immensely helpful. Thanks.