#HUD in a 2D space.

46 messages · Page 1 of 1 (latest)

lament sonnet
#

Well, let's hear that info.

broken wyvern
#

what

ruby warren
#

I can barely describe this.

broken wyvern
#

o

#

well we're trying to make like a coin-hud

#

but we barely know how to

ruby warren
#

Not really a "coin hud".

broken wyvern
#

yes it is

ruby warren
#

The things you collect give you POINTS, not the amount you get.

lament sonnet
#

How about you tell us what it's supposed to look like and what have you tried so far?

ruby warren
#

Well, we kinda did some placeholder art already.

broken wyvern
#

i've tried to draw in the screen the sp`rite

#

but

ruby warren
#

We just need the coding part.

broken wyvern
#

i dont know how to tell the draw event to follow the camera

ruby warren
#

Yeah.

lament sonnet
#

You don't.

#

You use the Draw GUI event.

broken wyvern
#

what.

lament sonnet
#

All HUD goes there most of the time.

broken wyvern
#

oh

ruby warren
#

Racoon...

broken wyvern
#

well my main problem was to follow the camera

lament sonnet
#

The coordinates there range from 0/0 at the top-left and GUI width/height at the bottom-right.

#

Not affected by the camera.

ruby warren
#

We also kinda need help on how the Hell you actually code it in-

broken wyvern
ruby warren
#

You sure?

#

Last time you said that it was a complete disaster.

broken wyvern
#
draw_set_halign(fa_left);
draw_set_valign(fa_top);
draw_sprite(sCoins)```
#

like that

#

but

#

i dont really know what to exacly put in these 2

ruby warren
#

What "coins"-

lament sonnet
#

The x and y coordinates to draw your sprite at.

broken wyvern
#

yes

#

but the camera is constantly moving so i dont really know

lament sonnet
#

I just told you what to do.

#

Use the Draw GUI event.

broken wyvern
#

OH

lament sonnet
#

Also, draw_set_halign() and draw_set_valign() have nothing to do with sprites, those are for text.

broken wyvern
#

oh

#

well that would've all