Bennu Game Development

Foros en EspaƱol => Mesa de Ayuda => Topic started by: Milton884 on May 26, 2011, 01:22:31 AM

Title: Duda Draw_Rect
Post by: Milton884 on May 26, 2011, 01:22:31 AM
Que tal, estube viendo en Wiki de Bennu, Draw_rect, ya que quiero dibujar un rectangulo de color "Rojo" y otro de color "Azul", pero si veran , no hay ningun parametro que diga de que color lo podemos hacer:

Draw rect


[edit] Definition

INT draw_rect ( <INT x0> , <INT y0> , <INT x1> , <INT y1> )

Draws a non-filled rectangle with corners (x0,y0), (x0,y1), (x1,y0) and (x1,y1).
[edit] Parameters
INT x0    - The x coordinate of one corner of the non-filled rectangle.
INT y0    - The y coordinate of one corner of the non-filled rectangle.
INT x1    - The x coordinate of the diagonally opposite corner of the non-filled rectangle.
INT y1    - The y coordinate of the diagonally opposite corner of the non-filled rectangle.


Me gustaria saber como aplicarle un color.. muchas gracias =).
Title: Re: Duda Draw_Rect
Post by: Drumpi on May 26, 2011, 08:07:53 PM
DRAWING_COLOR
http://wiki.bennugd.org/index.php?title=Drawing_color

Ojo, que el valor depende de la profundidad de color.
Title: Re: Duda Draw_Rect
Post by: Milton884 on May 26, 2011, 10:33:01 PM
Gracias. Le pude poner los bordes rojos con lo que me pasaste. Pero aun no se como ponerle el Fondo rojo ?
Title: Re: Duda Draw_Rect
Post by: Milton884 on May 27, 2011, 01:21:58 AM
Yo lo digo para hacer barritas para un Juego de ROL, de Vida (color roja el fondo), mana (color azul), etc. Busque y busque en wiki pero no encuentro
Title: Re: Duda Draw_Rect
Post by: SplinterGU on May 27, 2011, 02:45:12 PM
esto te conviene hacerlo no con draw, sino con un grafico de la barra metido dentro de una region. o usar size_x para agrandarlo y achicarlo.
Title: Re: Duda Draw_Rect
Post by: Drumpi on May 27, 2011, 10:25:10 PM
O DRAW_BOX ;D...