Now lets get started.
1. download this action and put it on C:\Program Files\DS Game Maker\Actions downlaod this lib and save it somewhere on your computer
2. first we must init fat , include the wifi lib and also include the Downloadlib
Here is how you do it:
tick the "Perform Generic FAT Initialization"
tick the "Include Wifi lib"
on the "Include files" press the + button and select the Downloadlib.h
3. Make one room and one object.
4.On the new object add an event like "if button press A"
5. We add some text to show that wifi is being used
6.Now we have to init wifi so drag the "Execute code" action and type in " PA_InitWifi(); "
7.Just put some more text here
8.It's time to download our file now! drag the "Download file" action.
URL is the link for the file we will download (make sure it's a direct link like this one if you are downloading a photo : http://2.bp.blogspot.com/_dkZmbXOpiFE/S ... /mario.bmp
"File name" is the name of the file
"extension" is the extencion of your file (make sure not to use " . " )
"Success or not" is a variable that we need to declare to show if the download was Successfull or not
9. Now you can put something like this.This will not show the file on the sreen it will just show you if the download was successfull or not!!! : (click on the photo to view in full size)
After the file is downloaded it will be located in the root of your flash card
If you are downloading a photo you can view it using this:
Download this lib and this action (place the action at C:\Program Files\DS Game Maker\Actions and include the lib as seen on the top of the post)
Now drag the action after we have show the text and in the action you will see these
"Screen"(the screen that the photo will be viewed
"File" the file of the photo
And if you are downloading a .txt file you can do this:
Drag the execute code action after the text that shows that the download was success and add this
- Code: Select all
Dim FileContent As String
Draw_Text(Top_Screen, 1, 1, FileContent)
It will draw the "file.txt" on the top screen
you can change the "file.txt" to the name of your .txt and you can also change the "Top_screen" to "Buttom_screen
And that's it! If you have ANY problem just post it here
Thanks to YoshiInAVoid
here is a demo that download a .txt from mediafire direct link and views it on the bottom screen