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.

DarkBASIC Discussion / I need to ask a couple of questions........

Author
Message
Zeus
18
Years of Service
User Offline
Joined: 8th Jul 2006
Location: Atop Mount Olympus
Posted: 19th Jul 2006 22:46
How do I make it to where people can upload there own files to my game?

How Do I make to where when someone types in a number amount that will
create a variable?

Thanks For All Help!
I so Sorry about the Corporate World thread...

Zeus
18
Years of Service
User Offline
Joined: 8th Jul 2006
Location: Atop Mount Olympus
Posted: 20th Jul 2006 01:39
Also How Do I make a clickable image in a main menu?

Zotoaster
20
Years of Service
User Offline
Joined: 20th Dec 2004
Location: Scotland
Posted: 20th Jul 2006 02:11
I think the question you should me asking is how to edit a thread

1) Well, they can do that on they're own, they can simply repace any media. If you need to know some stuff about modding, then just ask.


2) input "num: "+num$ : num=val(num$) --- use the val() command.


3) Check the mouse coords, lets say the image is positioned at 100,100, and it's size is 100,50, then do: if mousex()>100 and mousex()<200 and mousey()>100 and mousey()<150 and mouseclick()=1 then clicked=1 else clicked=0

Zeus
18
Years of Service
User Offline
Joined: 8th Jul 2006
Location: Atop Mount Olympus
Posted: 21st Jul 2006 02:24
No, I need to make it to where they can upload it themselfs.

Zeus
18
Years of Service
User Offline
Joined: 8th Jul 2006
Location: Atop Mount Olympus
Posted: 21st Jul 2006 15:08
E.G.



Is it that?

UFO
19
Years of Service
User Offline
Joined: 11th Oct 2005
Location:
Posted: 21st Jul 2006 15:31 Edited at: 21st Jul 2006 15:34
no. You would use this:

Input "filename:", filename$
Open to read 1,filename$

or

Input "filename:", name$
Open to read 1,name$

or

Input "filename:", blahblah$
Open to read 1,blahblah$

You could use anything as the variable, as long as these two are the same:

Input "filename:", blahblah$
Open to read 1,blahblah$

Or else, it will try to load "" nothing! You need to use the same variable, so it could use the variable that the user typed in to chose the file to open.

For this:

Input "filename:", filename$
Open to read 1,name$

When, the user types in the filename, it goes into the filename$ variable. So you could use the filename$ variable for lots of stuff, like:

Print "This is the file that you chose:"
Print filename$

and

Open to read 1,filename$

as long as its spelled the same and is the exact same variable you're using. If you did this, and then you tried to do this:

Open to read 1,name$

It wouldn't load anything, because the name$ variable isn't storing anything.

Zeus
18
Years of Service
User Offline
Joined: 8th Jul 2006
Location: Atop Mount Olympus
Posted: 21st Jul 2006 16:11
Okay. But I need it saved to a certain directory to a sub in my game.

Zotoaster
20
Years of Service
User Offline
Joined: 20th Dec 2004
Location: Scotland
Posted: 21st Jul 2006 17:38
They can input the directory themselfs, but if you don't want that, try:



Zeus
18
Years of Service
User Offline
Joined: 8th Jul 2006
Location: Atop Mount Olympus
Posted: 21st Jul 2006 20:10
Thanks zotoaster, don't know what i would do with out ya! LOL!

Login to post a reply

Server time is: 2025-05-25 08:14:46
Your offset time is: 2025-05-25 08:14:46