window Dx problem

Posted By: DLively

window Dx problem - 06/07/11 02:34

I'm trying to use a window to control my players health; but I need to control the window size by variables, and its not allowing me to do so... is there something that I am doing wrong?


Code:
window = (465, 56, hearts_top_win_x, 28, hearts_map, hearts_top_x, hearts_top_y);



I get an error with "Number Syntax hearts_top_win_x":

any ideas?
Posted By: DJBMASTER

Re: window Dx problem - 06/07/11 04:45

You can't use variables in definitions, they have to be literals; the hardcoded value.

You'll have to use pan_setwindow() to change the window properties with variable values.
Posted By: DLively

Re: window Dx problem - 06/08/11 13:00

Thanks DJMaster, ill look into that too; however I figured out another solution to work with..
© 2024 lite-C Forums