Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / Why can't I declare this as a variable?

Author
Message
SanBa Games
14
Years of Service
User Offline
Joined: 28th Nov 2009
Location: Silicon Valley
Posted: 8th Dec 2009 17:43
Hey, I found a workaround, so this isn't a pressing matter, but I'd like to know...

Why can't I declare this as a variable:

GLOBAL screen_location=(screen height()/4)*3

Sanba Games: Because We Can
=PRoF=
21
Years of Service
User Offline
Joined: 17th Mar 2003
Location: Milton Keynes, UK
Posted: 8th Dec 2009 18:11
DBPro prefers that you do it like this...



You don't need to use the "as integer" bit, as the default variable type of screen_location would be an integer.

Without Music or Love the world would be a very empty place... Thank god I still have music.. --'-<@
SanBa Games
14
Years of Service
User Offline
Joined: 28th Nov 2009
Location: Silicon Valley
Posted: 8th Dec 2009 18:36
ah, that works, thanks for clearing that up. It was just odd to me that my other mathematical declarations were going through and this wasn't.

Sanba Games: Because We Can

Login to post a reply

Server time is: 2024-11-24 23:25:58
Your offset time is: 2024-11-24 23:25:58