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 / Can i print some words using variables

Author
Message
Outscape
16
Years of Service
User Offline
Joined: 23rd May 2008
Location:
Posted: 5th Jul 2008 19:13
basicly
at the top of my game is asks if you want to play music

-that also plays the music if you want it
theres also simalar ones to do with imagry and animation.

well after this i want it to do:
Print "You are Playing with music",then if muusic is 1 then print On.
can i do that
make a variable print as a word

Creators of Outscape

http://forum.thegamecreators.com/?m=forum_view&t=132472&b=8
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 5th Jul 2008 19:32
I think your after something like this.



Dark Physics makes any hot drink go cold.
Outscape
16
Years of Service
User Offline
Joined: 23rd May 2008
Location:
Posted: 5th Jul 2008 19:43 Edited at: 5th Jul 2008 19:43
oh so instead of like
cheese#=10
for numbers its
cheese$=hello
for letters?

Creators of Outscape

http://forum.thegamecreators.com/?m=forum_view&t=132472&b=8
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 5th Jul 2008 19:54
No.

You can put numbers into string and you can put string numbers into numbers.

eg
this put string number into integer cheese#
cheese#=val("10.9")

this put number 156.890 into string cheese$
cheese$=str$(156.890)

Dark Physics makes any hot drink go cold.
Outscape
16
Years of Service
User Offline
Joined: 23rd May 2008
Location:
Posted: 5th Jul 2008 20:01
so letters use strings

Creators of Outscape

http://forum.thegamecreators.com/?m=forum_view&t=132472&b=8
Outscape
16
Years of Service
User Offline
Joined: 23rd May 2008
Location:
Posted: 5th Jul 2008 20:36
it works thankyou


Creators of Outscape

http://forum.thegamecreators.com/?m=forum_view&t=132472&b=8

Login to post a reply

Server time is: 2024-11-25 21:36:59
Your offset time is: 2024-11-25 21:36:59