simple questions!!

Posted By: Gino_Fabrizio

simple questions!! - 02/20/16 20:17

Hi there! I have 3 simple questions:

1) How to make a panel full screen, independent of the picture size

2) How to calculate traveled distance of the player in 1 frame

3) How to display long or int values in text_draw??

thanks in advance!
Posted By: alibaba

Re: simple questions!! - 02/20/16 20:26

Hi!

1.)
panel.scale_x=screen_size.x/bmap_width(panel.bmap);
-> the same for scale_y

2.)
distance = 0;
distance = c_move(blabla);

3.)
str_for_num(NULL,var);
Posted By: Gino_Fabrizio

Re: simple questions!! - 02/20/16 20:40

I get error on the panel size:

scale_x = screen.size_x / bmap_width(scary_png);

MAIN.C 3:2(): Number syntax screen_size.x

and same for Y frown
Posted By: alibaba

Re: simple questions!! - 02/20/16 20:56

I'd like to refer to the manual
Posted By: Dooley

Re: simple questions!! - 03/02/16 17:07

screen_size.x not screen.size_x I think...
© 2024 lite-C Forums